
int moveToLeftmost(BtCursor *pCur)

{
  int iVar1;
  MemPage *pMVar2;
  
  do {
    pMVar2 = pCur->pPage;
    if (pMVar2->leaf != '\0') {
      return 0;
    }
    iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +
                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &
                                     pMVar2->maskPage)));
  } while (iVar1 == 0);
  return iVar1;
}



int FUN_0008dd28(int param_1)

{
  int iVar1;
  
  do {
    iVar1 = *(int *)(param_1 + 0x74);
    if (*(char *)(iVar1 + 8) != '\0') {
      return 0;
    }
    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)
                                  (*(int *)(iVar1 + 0x38) +
                                  (uint)(*(ushort *)
                                          (*(int *)(iVar1 + 0x40) +
                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &
                                        *(ushort *)(iVar1 + 0x18))));
  } while (iVar1 == 0);
  return iVar1;
}


lui gp,0x11
addiu gp,gp,-0x5408
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x1c(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
lw s0,-0x7d44(gp)
addiu s0,s0,-0x243c
lw v1,0x74(s1)
lbu v0,0x8(v1)
bne v0,zero,0x0008ddbc
_or a0,s1,zero
lhu a2,0x46(s1)
or t9,s0,zero
lw a1,0x40(v1)
lhu a3,0x18(v1)
sll a2,a2,0x1
lw v1,0x38(v1)
addu a1,a1,a2
lbu v0,0x0(a1)
lbu a1,0x1(a1)
sll v0,v0,0x8
or v0,v0,a1
and v0,v0,a3
addu v0,v1,v0
lwl a1,0x0(v0)
bal 0x0008dbc4
_lwr a1,0x3(v0)
beq v0,zero,0x0008dd54
_lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or v0,zero,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int FUN_0008dd28(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}\n\n" (function_definition "int FUN_0008dd28(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0008dd28(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    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);" do (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(iVar1 + 8) != '\0')" ( (binary_expression "*(char *)(iVar1 + 8) != '\0'" (pointer_expression "*(char *)(iVar1 + 8)" * (cast_expression "(char *)(iVar1 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));" (assignment_expression "iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" identifier = (call_expression "FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" identifier (argument_list "(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" ( identifier , (pointer_expression "*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" * (cast_expression "(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" ( (binary_expression "*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) + (call_expression "(uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" ( (binary_expression "*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)" (pointer_expression "*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" * (cast_expression "(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" ( (binary_expression "*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) + (binary_expression "(uint)*(ushort *)(param_1 + 0x46) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x46)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x46)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x46)" ( (binary_expression "param_1 + 0x46" identifier + number_literal) )))) * number_literal)) )))) & (pointer_expression "*(ushort *)(iVar1 + 0x18)" * (cast_expression "(ushort *)(iVar1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) )))) )))) )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int moveToLeftmost(BtCursor *pCur)\n\n{\n  int iVar1;\n  MemPage *pMVar2;\n  \n  do {\n    pMVar2 = pCur->pPage;\n    if (pMVar2->leaf != '\0') {\n      return 0;\n    }\n    iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)));\n  } while (iVar1 == 0);\n  return iVar1;\n}\n\n" (function_definition "int moveToLeftmost(BtCursor *pCur)\n\n{\n  int iVar1;\n  MemPage *pMVar2;\n  \n  do {\n    pMVar2 = pCur->pPage;\n    if (pMVar2->leaf != '\0') {\n      return 0;\n    }\n    iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)));\n  } while (iVar1 == 0);\n  return iVar1;\n}" primitive_type (function_declarator "moveToLeftmost(BtCursor *pCur)" identifier (parameter_list "(BtCursor *pCur)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  MemPage *pMVar2;\n  \n  do {\n    pMVar2 = pCur->pPage;\n    if (pMVar2->leaf != '\0') {\n      return 0;\n    }\n    iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)));\n  } while (iVar1 == 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "MemPage *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (do_statement "do {\n    pMVar2 = pCur->pPage;\n    if (pMVar2->leaf != '\0') {\n      return 0;\n    }\n    iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)));\n  } while (iVar1 == 0);" do (compound_statement "{\n    pMVar2 = pCur->pPage;\n    if (pMVar2->leaf != '\0') {\n      return 0;\n    }\n    iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)));\n  }" { (expression_statement "pMVar2 = pCur->pPage;" (assignment_expression "pMVar2 = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (if_statement "if (pMVar2->leaf != '\0') {\n      return 0;\n    }" if (parenthesized_expression "(pMVar2->leaf != '\0')" ( (binary_expression "pMVar2->leaf != '\0'" (field_expression "pMVar2->leaf" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)));" (assignment_expression "iVar1 = moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)))" identifier = (call_expression "moveToChild(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)))" identifier (argument_list "(pCur,*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)))" ( identifier , (pointer_expression "*(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage))" * (cast_expression "(u32 *)(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage))" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage))" ( (binary_expression "pMVar2->aData +\n                                     (*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)" (field_expression "pMVar2->aData" identifier -> field_identifier) + (parenthesized_expression "(*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage)" ( (binary_expression "*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2) &\n                                     pMVar2->maskPage" (pointer_expression "*(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2)" * (cast_expression "(ushort *)(pMVar2->aCellIdx + (uint)pCur->ix * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar2->aCellIdx + (uint)pCur->ix * 2)" ( (binary_expression "pMVar2->aCellIdx + (uint)pCur->ix * 2" (field_expression "pMVar2->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)) )))) & (field_expression "pMVar2->maskPage" identifier -> field_identifier)) ))) )))) )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0008dd28(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}\n\n" (function_definition "int FUN_0008dd28(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0008dd28(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    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);" do (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(iVar1 + 8) != '\0')" ( (binary_expression "*(char *)(iVar1 + 8) != '\0'" (pointer_expression "*(char *)(iVar1 + 8)" * (cast_expression "(char *)(iVar1 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));" (assignment_expression "iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" identifier = (call_expression "FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" identifier (argument_list "(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" ( identifier , (pointer_expression "*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" * (cast_expression "(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" ( (binary_expression "*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) + (call_expression "(uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" ( (binary_expression "*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)" (pointer_expression "*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" * (cast_expression "(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" ( (binary_expression "*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) + (binary_expression "(uint)*(ushort *)(param_1 + 0x46) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x46)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x46)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x46)" ( (binary_expression "param_1 + 0x46" identifier + number_literal) )))) * number_literal)) )))) & (pointer_expression "*(ushort *)(iVar1 + 0x18)" * (cast_expression "(ushort *)(iVar1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) )))) )))) )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (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) )))) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (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) )))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) )))) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0008dd28(int param_1)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0008dd28(int param_1)" (identifier "FUN_0008dd28") (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    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (do_statement "do {\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  } while (iVar1 == 0);" (do "do") (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x74);\n    if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }\n    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x74)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (if_statement "if (*(char *)(iVar1 + 8) != '\0') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 8) != '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 8) != '\0'" (pointer_expression "*(char *)(iVar1 + 8)" (* "*") (cast_expression "(char *)(iVar1 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (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_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))));" (assignment_expression "iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" (identifier "iVar1") (= "=") (call_expression "FUN_0008dbc4(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" (identifier "FUN_0008dbc4") (argument_list "(param_1,*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" (* "*") (cast_expression "(undefined4 *)\n                                  (*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)))" (( "(") (binary_expression "*(int *)(iVar1 + 0x38) +\n                                  (uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (call_expression "(uint)(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18))" (( "(") (binary_expression "*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &\n                                        *(ushort *)(iVar1 + 0x18)" (pointer_expression "*(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" (* "*") (cast_expression "(ushort *)\n                                          (*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2)" (( "(") (binary_expression "*(int *)(iVar1 + 0x40) +\n                                          (uint)*(ushort *)(param_1 + 0x46) * 2" (pointer_expression "*(int *)(iVar1 + 0x40)" (* "*") (cast_expression "(int *)(iVar1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (+ "+") (binary_expression "(uint)*(ushort *)(param_1 + 0x46) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x46)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x46)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x46)" (( "(") (binary_expression "param_1 + 0x46" (identifier "param_1") (+ "+") (number_literal "0x46")) () ")")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (pointer_expression "*(ushort *)(iVar1 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar1 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")))) () ")")))) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) 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 (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (identifier) 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 (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) right: (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))))))))))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  
  do {
    iVar1 = *(int *)(param_1 + 0x74);
    if (*(char *)(iVar1 + 8) != '\0') {
      return 0;
    }
    iVar1 = FUN_0008dbc4(param_1,*(undefined4 *)
                                  (*(int *)(iVar1 + 0x38) +
                                  (uint)(*(ushort *)
                                          (*(int *)(iVar1 + 0x40) +
                                          (uint)*(ushort *)(param_1 + 0x46) * 2) &
                                        *(ushort *)(iVar1 + 0x18))));
  } while (iVar1 == 0);
  return iVar1;
}

