
int __regparm3 findLeafNode(Rtree *pRtree,i64 iRowid,RtreeNode **ppLeaf,sqlite3_int64 *piNode)

{
  int iVar1;
  int rc;
  sqlite_int64 sVar2;
  
  *(undefined4 *)iRowid = 0;
  sqlite3_bind_int64(pRtree->pReadRowid,1,CONCAT44(piNode,ppLeaf));
  iVar1 = sqlite3_step(pRtree->pReadRowid);
  if (iVar1 != 100) {
    iVar1 = sqlite3_reset(pRtree->pReadRowid);
    return iVar1;
  }
  sVar2 = sqlite3_column_int64(pRtree->pReadRowid,0);
  if (iRowid._4_4_ != (sqlite_int64 *)0x0) {
    *iRowid._4_4_ = sVar2;
  }
  iVar1 = nodeAcquire(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf);
  sqlite3_reset(pRtree->pReadRowid);
  return iVar1;
}



undefined4 __regparm3
FUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,
            undefined8 *param_5)

{
  int iVar1;
  undefined4 uVar2;
  undefined8 uVar3;
  
  *param_4 = 0;
  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);
  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));
  if (iVar1 != 100) {
    uVar2 = FUN_000ac730();
    return uVar2;
  }
  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);
  if (param_5 != (undefined8 *)0x0) {
    *param_5 = uVar3;
  }
  uVar2 = FUN_000f92d0(0,param_4);
  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));
  return uVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
MOV EBX,EAX
MOV EDI,dword ptr [ESP + 0x14]
MOV dword ptr [ESI],0x0
PUSH ECX
PUSH EDX
PUSH 0x1
PUSH dword ptr [EAX + 0x54]
CALL 0x000739f0
POP EDX
PUSH dword ptr [EBX + 0x54]
CALL 0x000ccd70
ADD ESP,0x10
CMP EAX,0x64
JZ 0x000f9610
MOV EAX,dword ptr [EBX + 0x54]
MOV dword ptr [ESP + 0x10],EAX
POP EBX
POP ESI
POP EDI
JMP 0x000ac730
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [EBX + 0x54]
CALL 0x000561a0
ADD ESP,0x10
TEST EDI,EDI
JZ 0x000f9629
MOV dword ptr [EDI],EAX
MOV dword ptr [EDI + 0x4],EDX
SUB ESP,0x8
MOV ECX,EDX
MOV EDX,EAX
MOV EAX,EBX
PUSH ESI
PUSH 0x0
CALL 0x000f92d0
MOV ESI,EAX
POP EAX
PUSH dword ptr [EBX + 0x54]
CALL 0x000ac730
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "undefined4 __regparm3\nFUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);" (call_expression "FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) (expression_statement "iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));" (assignment_expression "iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54))" identifier = (call_expression "FUN_000ccd70(*(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 100)" ( (binary_expression "iVar1 != 100" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_000ac730();" (assignment_expression "uVar2 = FUN_000ac730()" identifier = (call_expression "FUN_000ac730()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);" (assignment_expression "uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0)" identifier = (call_expression "FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }" if (parenthesized_expression "(param_5 != (undefined8 *)0x0)" ( (binary_expression "param_5 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = uVar3;\n  }" { (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) })) (expression_statement "uVar2 = FUN_000f92d0(0,param_4);" (assignment_expression "uVar2 = FUN_000f92d0(0,param_4)" identifier = (call_expression "FUN_000f92d0(0,param_4)" identifier (argument_list "(0,param_4)" ( number_literal , identifier )))) ;) (expression_statement "FUN_000ac730(*(undefined4 *)(param_1 + 0x54));" (call_expression "FUN_000ac730(*(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int __regparm3 findLeafNode(Rtree *pRtree,i64 iRowid,RtreeNode **ppLeaf,sqlite3_int64 *piNode)\n\n{\n  int iVar1;\n  int rc;\n  sqlite_int64 sVar2;\n  \n  *(undefined4 *)iRowid = 0;\n  sqlite3_bind_int64(pRtree->pReadRowid,1,CONCAT44(piNode,ppLeaf));\n  iVar1 = sqlite3_step(pRtree->pReadRowid);\n  if (iVar1 != 100) {\n    iVar1 = sqlite3_reset(pRtree->pReadRowid);\n    return iVar1;\n  }\n  sVar2 = sqlite3_column_int64(pRtree->pReadRowid,0);\n  if (iRowid._4_4_ != (sqlite_int64 *)0x0) {\n    *iRowid._4_4_ = sVar2;\n  }\n  iVar1 = nodeAcquire(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf);\n  sqlite3_reset(pRtree->pReadRowid);\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 findLeafNode(Rtree *pRtree,i64 iRowid,RtreeNode **ppLeaf,sqlite3_int64 *piNode)\n\n{\n  int iVar1;\n  int rc;\n  sqlite_int64 sVar2;\n  \n  *(undefined4 *)iRowid = 0;\n  sqlite3_bind_int64(pRtree->pReadRowid,1,CONCAT44(piNode,ppLeaf));\n  iVar1 = sqlite3_step(pRtree->pReadRowid);\n  if (iVar1 != 100) {\n    iVar1 = sqlite3_reset(pRtree->pReadRowid);\n    return iVar1;\n  }\n  sVar2 = sqlite3_column_int64(pRtree->pReadRowid,0);\n  if (iRowid._4_4_ != (sqlite_int64 *)0x0) {\n    *iRowid._4_4_ = sVar2;\n  }\n  iVar1 = nodeAcquire(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf);\n  sqlite3_reset(pRtree->pReadRowid);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "findLeafNode(Rtree *pRtree,i64 iRowid,RtreeNode **ppLeaf,sqlite3_int64 *piNode)" identifier (parameter_list "(Rtree *pRtree,i64 iRowid,RtreeNode **ppLeaf,sqlite3_int64 *piNode)" ( (parameter_declaration "Rtree *pRtree" type_identifier (pointer_declarator "*pRtree" * identifier)) , (parameter_declaration "i64 iRowid" type_identifier identifier) , (parameter_declaration "RtreeNode **ppLeaf" type_identifier (pointer_declarator "**ppLeaf" * (pointer_declarator "*ppLeaf" * identifier))) , (parameter_declaration "sqlite3_int64 *piNode" type_identifier (pointer_declarator "*piNode" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int rc;\n  sqlite_int64 sVar2;\n  \n  *(undefined4 *)iRowid = 0;\n  sqlite3_bind_int64(pRtree->pReadRowid,1,CONCAT44(piNode,ppLeaf));\n  iVar1 = sqlite3_step(pRtree->pReadRowid);\n  if (iVar1 != 100) {\n    iVar1 = sqlite3_reset(pRtree->pReadRowid);\n    return iVar1;\n  }\n  sVar2 = sqlite3_column_int64(pRtree->pReadRowid,0);\n  if (iRowid._4_4_ != (sqlite_int64 *)0x0) {\n    *iRowid._4_4_ = sVar2;\n  }\n  iVar1 = nodeAcquire(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf);\n  sqlite3_reset(pRtree->pReadRowid);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int rc;" primitive_type identifier ;) (declaration "sqlite_int64 sVar2;" type_identifier identifier ;) (expression_statement "*(undefined4 *)iRowid = 0;" (assignment_expression "*(undefined4 *)iRowid = 0" (pointer_expression "*(undefined4 *)iRowid" * (cast_expression "(undefined4 *)iRowid" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "sqlite3_bind_int64(pRtree->pReadRowid,1,CONCAT44(piNode,ppLeaf));" (call_expression "sqlite3_bind_int64(pRtree->pReadRowid,1,CONCAT44(piNode,ppLeaf))" identifier (argument_list "(pRtree->pReadRowid,1,CONCAT44(piNode,ppLeaf))" ( (field_expression "pRtree->pReadRowid" identifier -> field_identifier) , number_literal , (call_expression "CONCAT44(piNode,ppLeaf)" identifier (argument_list "(piNode,ppLeaf)" ( identifier , identifier ))) ))) ;) (expression_statement "iVar1 = sqlite3_step(pRtree->pReadRowid);" (assignment_expression "iVar1 = sqlite3_step(pRtree->pReadRowid)" identifier = (call_expression "sqlite3_step(pRtree->pReadRowid)" identifier (argument_list "(pRtree->pReadRowid)" ( (field_expression "pRtree->pReadRowid" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 != 100) {\n    iVar1 = sqlite3_reset(pRtree->pReadRowid);\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 100)" ( (binary_expression "iVar1 != 100" identifier != number_literal) )) (compound_statement "{\n    iVar1 = sqlite3_reset(pRtree->pReadRowid);\n    return iVar1;\n  }" { (expression_statement "iVar1 = sqlite3_reset(pRtree->pReadRowid);" (assignment_expression "iVar1 = sqlite3_reset(pRtree->pReadRowid)" identifier = (call_expression "sqlite3_reset(pRtree->pReadRowid)" identifier (argument_list "(pRtree->pReadRowid)" ( (field_expression "pRtree->pReadRowid" identifier -> field_identifier) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "sVar2 = sqlite3_column_int64(pRtree->pReadRowid,0);" (assignment_expression "sVar2 = sqlite3_column_int64(pRtree->pReadRowid,0)" identifier = (call_expression "sqlite3_column_int64(pRtree->pReadRowid,0)" identifier (argument_list "(pRtree->pReadRowid,0)" ( (field_expression "pRtree->pReadRowid" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (iRowid._4_4_ != (sqlite_int64 *)0x0) {\n    *iRowid._4_4_ = sVar2;\n  }" if (parenthesized_expression "(iRowid._4_4_ != (sqlite_int64 *)0x0)" ( (binary_expression "iRowid._4_4_ != (sqlite_int64 *)0x0" (field_expression "iRowid._4_4_" identifier . field_identifier) != (cast_expression "(sqlite_int64 *)0x0" ( (type_descriptor "sqlite_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *iRowid._4_4_ = sVar2;\n  }" { (expression_statement "*iRowid._4_4_ = sVar2;" (assignment_expression "*iRowid._4_4_ = sVar2" (pointer_expression "*iRowid._4_4_" * (field_expression "iRowid._4_4_" identifier . field_identifier)) = identifier) ;) })) (expression_statement "iVar1 = nodeAcquire(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf);" (assignment_expression "iVar1 = nodeAcquire(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf)" identifier = (call_expression "nodeAcquire(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf)" identifier (argument_list "(pRtree,iRowid << 0x20,(RtreeNode *)sVar2,ppLeaf)" ( identifier , (binary_expression "iRowid << 0x20" identifier << number_literal) , (cast_expression "(RtreeNode *)sVar2" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "sqlite3_reset(pRtree->pReadRowid);" (call_expression "sqlite3_reset(pRtree->pReadRowid)" identifier (argument_list "(pRtree->pReadRowid)" ( (field_expression "pRtree->pReadRowid" identifier -> field_identifier) ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 __regparm3\nFUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);" (call_expression "FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) (expression_statement "iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));" (assignment_expression "iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54))" identifier = (call_expression "FUN_000ccd70(*(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 100)" ( (binary_expression "iVar1 != 100" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_000ac730();" (assignment_expression "uVar2 = FUN_000ac730()" identifier = (call_expression "FUN_000ac730()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);" (assignment_expression "uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0)" identifier = (call_expression "FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }" if (parenthesized_expression "(param_5 != (undefined8 *)0x0)" ( (binary_expression "param_5 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = uVar3;\n  }" { (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) })) (expression_statement "uVar2 = FUN_000f92d0(0,param_4);" (assignment_expression "uVar2 = FUN_000f92d0(0,param_4)" identifier = (call_expression "FUN_000f92d0(0,param_4)" identifier (argument_list "(0,param_4)" ( number_literal , identifier )))) ;) (expression_statement "FUN_000ac730(*(undefined4 *)(param_1 + 0x54));" (call_expression "FUN_000ac730(*(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x54))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3\nFUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000f95d0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)" (identifier "FUN_000f95d0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,\n            undefined8 *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined8 *param_5" (type_identifier "undefined8") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  \n  *param_4 = 0;\n  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);\n  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));\n  if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }\n  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);\n  if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }\n  uVar2 = FUN_000f92d0(0,param_4);\n  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);" (call_expression "FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3)" (identifier "FUN_000739f0") (argument_list "(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));" (assignment_expression "iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54))" (identifier "iVar1") (= "=") (call_expression "FUN_000ccd70(*(undefined4 *)(param_1 + 0x54))" (identifier "FUN_000ccd70") (argument_list "(*(undefined4 *)(param_1 + 0x54))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 != 100) {\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 100)" (( "(") (binary_expression "iVar1 != 100" (identifier "iVar1") (!= "!=") (number_literal "100")) () ")")) (compound_statement "{\n    uVar2 = FUN_000ac730();\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_000ac730();" (assignment_expression "uVar2 = FUN_000ac730()" (identifier "uVar2") (= "=") (call_expression "FUN_000ac730()" (identifier "FUN_000ac730") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);" (assignment_expression "uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0)" (identifier "uVar3") (= "=") (call_expression "FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0)" (identifier "FUN_000561a0") (argument_list "(*(undefined4 *)(param_1 + 0x54),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (param_5 != (undefined8 *)0x0) {\n    *param_5 = uVar3;\n  }" (if "if") (parenthesized_expression "(param_5 != (undefined8 *)0x0)" (( "(") (binary_expression "param_5 != (undefined8 *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_5 = uVar3;\n  }" ({ "{") (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_000f92d0(0,param_4);" (assignment_expression "uVar2 = FUN_000f92d0(0,param_4)" (identifier "uVar2") (= "=") (call_expression "FUN_000f92d0(0,param_4)" (identifier "FUN_000f92d0") (argument_list "(0,param_4)" (( "(") (number_literal "0") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "FUN_000ac730(*(undefined4 *)(param_1 + 0x54));" (call_expression "FUN_000ac730(*(undefined4 *)(param_1 + 0x54))" (identifier "FUN_000ac730") (argument_list "(*(undefined4 *)(param_1 + 0x54))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pRtree,type_2 var_8,type_3 **ppLeaf,type_4 *piNode)

{
  int var_4;
  int rc;
  type_5 sVar2;
  
  *(type_6 *)var_8 = 0;
  var_1(pRtree->pReadRowid,1,var_2(piNode,ppLeaf));
  var_4 = var_3(pRtree->pReadRowid);
  if (var_4 != 100) {
    var_4 = var_5(pRtree->pReadRowid);
    return var_4;
  }
  sVar2 = var_6(pRtree->pReadRowid,0);
  if (var_8._4_4_ != (type_5 *)0x0) {
    *var_8._4_4_ = sVar2;
  }
  var_4 = var_7(pRtree,var_8 << 0x20,(type_3 *)sVar2,ppLeaf);
  var_5(pRtree->pReadRowid);
  return var_4;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))))

undefined4 __regparm3
MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,
            undefined8 *param_5)

{
  int iVar1;
  undefined4 uVar2;
  undefined8 uVar3;
  
  *param_4 = 0;
  FUN_000739f0(*(undefined4 *)(param_1 + 0x54),1,param_2,param_3);
  iVar1 = FUN_000ccd70(*(undefined4 *)(param_1 + 0x54));
  if (iVar1 != 100) {
    uVar2 = FUN_000ac730();
    return uVar2;
  }
  uVar3 = FUN_000561a0(*(undefined4 *)(param_1 + 0x54),0);
  if (param_5 != (undefined8 *)0x0) {
    *param_5 = uVar3;
  }
  uVar2 = FUN_000f92d0(0,param_4);
  FUN_000ac730(*(undefined4 *)(param_1 + 0x54));
  return uVar2;
}

