
int __regparm3 moveToLeftmost(BtCursor *pCur)

{
  MemPage *pMVar1;
  uint uVar2;
  int iVar3;
  
  do {
    pMVar1 = pCur->pPage;
    if (pMVar1->leaf != '\0') {
      return 0;
    }
    uVar2 = *(uint *)(pMVar1->aData +
                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |
                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage));
    iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |
                             uVar2 << 0x18);
  } while (iVar3 == 0);
  return iVar3;
}



int __regparm3 FUN_00051e30(int param_1)

{
  int iVar1;
  
  do {
    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {
      return 0;
    }
    iVar1 = FUN_00051d70();
  } while (iVar1 == 0);
  return iVar1;
}


PUSH EBX
MOV EBX,EAX
SUB ESP,0x8
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EDX,dword ptr [EBX + 0x6c]
CMP byte ptr [EDX + 0x8],0x0
JNZ 0x00051e80
MOV EAX,dword ptr [EDX + 0x40]
MOVZX ECX,word ptr [EBX + 0x3e]
MOVZX EAX,word ptr [EAX + ECX*0x2]
ROL AX,0x8
AND AX,word ptr [EDX + 0x18]
MOV EDX,dword ptr [EDX + 0x38]
MOVZX EAX,AX
MOV EDX,dword ptr [EDX + EAX*0x1]
MOV EAX,EBX
BSWAP EDX
CALL 0x00051d70
TEST EAX,EAX
JZ 0x00051e40
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
(translation_unit "int __regparm3 FUN_00051e30(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_00051e30(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00051e30(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);" do (compound_statement "{\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  }" { (if_statement "if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x6c) + 8)" * (cast_expression "(char *)(*(int *)(param_1 + 0x6c) + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x6c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x6c) + 8" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00051d70();" (assignment_expression "iVar1 = FUN_00051d70()" identifier = (call_expression "FUN_00051d70()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int __regparm3 moveToLeftmost(BtCursor *pCur)\n\n{\n  MemPage *pMVar1;\n  uint uVar2;\n  int iVar3;\n  \n  do {\n    pMVar1 = pCur->pPage;\n    if (pMVar1->leaf != '\0') {\n      return 0;\n    }\n    uVar2 = *(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage));\n    iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18);\n  } while (iVar3 == 0);\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 moveToLeftmost(BtCursor *pCur)\n\n{\n  MemPage *pMVar1;\n  uint uVar2;\n  int iVar3;\n  \n  do {\n    pMVar1 = pCur->pPage;\n    if (pMVar1->leaf != '\0') {\n      return 0;\n    }\n    uVar2 = *(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage));\n    iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18);\n  } while (iVar3 == 0);\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "moveToLeftmost(BtCursor *pCur)" identifier (parameter_list "(BtCursor *pCur)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) ))) (compound_statement "{\n  MemPage *pMVar1;\n  uint uVar2;\n  int iVar3;\n  \n  do {\n    pMVar1 = pCur->pPage;\n    if (pMVar1->leaf != '\0') {\n      return 0;\n    }\n    uVar2 = *(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage));\n    iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18);\n  } while (iVar3 == 0);\n  return iVar3;\n}" { (declaration "MemPage *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (do_statement "do {\n    pMVar1 = pCur->pPage;\n    if (pMVar1->leaf != '\0') {\n      return 0;\n    }\n    uVar2 = *(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage));\n    iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18);\n  } while (iVar3 == 0);" do (compound_statement "{\n    pMVar1 = pCur->pPage;\n    if (pMVar1->leaf != '\0') {\n      return 0;\n    }\n    uVar2 = *(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage));\n    iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18);\n  }" { (expression_statement "pMVar1 = pCur->pPage;" (assignment_expression "pMVar1 = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (if_statement "if (pMVar1->leaf != '\0') {\n      return 0;\n    }" if (parenthesized_expression "(pMVar1->leaf != '\0')" ( (binary_expression "pMVar1->leaf != '\0'" (field_expression "pMVar1->leaf" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = *(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage));" (assignment_expression "uVar2 = *(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage))" identifier = (pointer_expression "*(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage))" * (cast_expression "(uint *)(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage))" ( (binary_expression "pMVar1->aData +\n                     ((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage)" (field_expression "pMVar1->aData" identifier -> field_identifier) + (parenthesized_expression "((*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage)" ( (binary_expression "(*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8) & pMVar1->maskPage" (parenthesized_expression "(*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8)" ( (binary_expression "*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8 |\n                      *(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8" (binary_expression "*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) << 8" (pointer_expression "*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2)" * (cast_expression "(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar1->aCellIdx + (uint)pCur->ix * 2)" ( (binary_expression "pMVar1->aCellIdx + (uint)pCur->ix * 2" (field_expression "pMVar1->aCellIdx" identifier -> field_identifier) + (binary_expression "(uint)pCur->ix * 2" (cast_expression "(uint)pCur->ix" ( (type_descriptor "uint" type_identifier) ) (field_expression "pCur->ix" identifier -> field_identifier)) * number_literal)) )))) << number_literal) | (binary_expression "*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2) >> 8" (pointer_expression "*(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2)" * (cast_expression "(ushort *)(pMVar1->aCellIdx + (uint)pCur->ix * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar1->aCellIdx + (uint)pCur->ix * 2)" ( (binary_expression "pMVar1->aCellIdx + (uint)pCur->ix * 2" (field_expression "pMVar1->aCellIdx" identifier -> field_identifier) + (binary_expression "(uint)pCur->ix * 2" (cast_expression "(uint)pCur->ix" ( (type_descriptor "uint" type_identifier) ) (field_expression "pCur->ix" identifier -> field_identifier)) * number_literal)) )))) >> number_literal)) )) & (field_expression "pMVar1->maskPage" identifier -> field_identifier)) ))) ))))) ;) (expression_statement "iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18);" (assignment_expression "iVar3 = moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18)" identifier = (call_expression "moveToChild(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18)" identifier (argument_list "(pCur,uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18)" ( identifier , (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                             uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) )))) ;) }) while (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00051e30(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_00051e30(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00051e30(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);" do (compound_statement "{\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  }" { (if_statement "if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x6c) + 8)" * (cast_expression "(char *)(*(int *)(param_1 + 0x6c) + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x6c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x6c) + 8" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00051d70();" (assignment_expression "iVar1 = FUN_00051d70()" identifier = (call_expression "FUN_00051d70()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00051e30(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00051e30(int param_1)" (identifier "FUN_00051e30") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (do_statement "do {\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  } while (iVar1 == 0);" (do "do") (compound_statement "{\n    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_00051d70();\n  }" ({ "{") (if_statement "if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x6c) + 8)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 0x6c) + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x6c) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x6c) + 8" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00051d70();" (assignment_expression "iVar1 = FUN_00051d70()" (identifier "iVar1") (= "=") (call_expression "FUN_00051d70()" (identifier "FUN_00051d70") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pCur)

{
  type_2 *pMVar1;
  type_3 var_2;
  int var_3;
  
  do {
    pMVar1 = pCur->pPage;
    if (pMVar1->leaf != '\0') {
      return 0;
    }
    var_2 = *(type_3 *)(pMVar1->aData +
                     ((*(type_4 *)(pMVar1->aCellIdx + (type_3)pCur->ix * 2) << 8 |
                      *(type_4 *)(pMVar1->aCellIdx + (type_3)pCur->ix * 2) >> 8) & pMVar1->maskPage));
    var_3 = var_1(pCur,var_2 >> 0x18 | (var_2 & 0xff0000) >> 8 | (var_2 & 0xff00) << 8 |
                             var_2 << 0x18);
  } while (var_3 == 0);
  return var_3;
}


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

int __regparm3 MASKED(int param_1)

{
  int iVar1;
  
  do {
    if (*(char *)(*(int *)(param_1 + 0x6c) + 8) != '\0') {
      return 0;
    }
    iVar1 = FUN_00051d70();
  } while (iVar1 == 0);
  return iVar1;
}

