
int __regparm3 setChildPtrmaps(MemPage *pPage)

{
  BtShared *pBt;
  int *piVar1;
  int in_GS_OFFSET;
  u8 in_stack_ffffffbc;
  Pgno in_stack_ffffffc0;
  int *in_stack_ffffffc4;
  int rc;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pBt = (BtShared *)pPage->pgno;
  if (pPage->isInit == '\0') {
    in_stack_ffffffc0 = 0x7f8df;
    rc = btreeInitPage(pPage);
    if (rc != 0) goto LAB_0007f88e;
  }
  else {
    rc = 0;
  }
  if (pPage->nCell != 0) {
    in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2);
    piVar1 = (int *)0x0;
    do {
      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,
                              pPage->aData +
                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |
                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),
                              &rc), pPage->leaf == '\0') {
        piVar1 = (int *)((int)piVar1 + 2);
        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);
        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;
      }
      piVar1 = (int *)((int)piVar1 + 2);
    } while (in_stack_ffffffc4 != piVar1);
  }
LAB_0007f884:
  if (pPage->leaf == '\0') {
    ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);
  }
LAB_0007f88e:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return rc;
}



int __regparm3 FUN_0007f7d0(char *param_1)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(undefined4 *)(param_1 + 4);
  if (*param_1 == '\0') {
    local_24 = FUN_00052d70();
    if (local_24 != 0) goto LAB_0007f88e;
  }
  else {
    local_24 = 0;
  }
  if (*(ushort *)(param_1 + 0x16) != 0) {
    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;
    iVar3 = 0;
    do {
      while (FUN_0007f730(&local_24), param_1[8] == '\0') {
        iVar3 = iVar3 + 2;
        FUN_0007f5d0(uVar1,&local_24);
        if (iVar2 == iVar3) goto LAB_0007f884;
      }
      iVar3 = iVar3 + 2;
    } while (iVar2 != iVar3);
  }
LAB_0007f884:
  if (param_1[8] == '\0') {
    FUN_0007f5d0(uVar1,&local_24);
  }
LAB_0007f88e:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return local_24;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESI + 0x34]
CMP byte ptr [ESI],0x0
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0xc],EAX
JZ 0x0007f8d8
MOV dword ptr [ESP + 0x18],0x0
MOVZX EAX,word ptr [ESI + 0x16]
TEST AX,AX
JZ 0x0007f884
LEA ECX,[ESI + 0x3c]
ADD EAX,EAX
LEA EBP,[ESP + 0x18]
XOR EDI,EDI
MOV dword ptr [ESP + 0x4],ECX
MOV dword ptr [ESP],EAX
JMP 0x0007f830
ADD EDI,0x2
CMP dword ptr [ESP],EDI
JZ 0x0007f884
MOV EAX,dword ptr [ESI + 0x40]
SUB ESP,0xc
MOVZX EBX,word ptr [EAX + EDI*0x1]
PUSH EBP
MOV EAX,ESI
MOV EDX,dword ptr [ESP + 0x14]
ROL BX,0x8
AND BX,word ptr [ESI + 0x18]
MOVZX EBX,BX
ADD EBX,dword ptr [ESI + 0x38]
MOV ECX,EBX
CALL 0x0007f730
ADD ESP,0x10
CMP byte ptr [ESI + 0x8],0x0
JNZ 0x0007f828
SUB ESP,0x8
MOV EDX,dword ptr [EBX]
MOV ECX,0x5
ADD EDI,0x2
PUSH EBP
PUSH dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x18]
BSWAP EDX
CALL 0x0007f5d0
ADD ESP,0x10
CMP dword ptr [ESP],EDI
JNZ 0x0007f830
CMP byte ptr [ESI + 0x8],0x0
JZ 0x0007f8a8
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0007f8ec
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [ESI + 0x9]
MOV EDX,dword ptr [ESI + 0x38]
SUB ESP,0x8
MOV ECX,0x5
MOV EDX,dword ptr [EDX + EAX*0x1 + 0x8]
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x18]
BSWAP EDX
CALL 0x0007f5d0
ADD ESP,0x10
JMP 0x0007f88a
MOV EAX,ESI
CALL 0x00052d70
MOV dword ptr [ESP + 0x18],EAX
TEST EAX,EAX
JNZ 0x0007f88e
JMP 0x0007f804
CALL 0x000f6410
(translation_unit "int __regparm3 FUN_0007f7d0(char *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return local_24;\n}\n\n" (function_definition "int __regparm3 FUN_0007f7d0(char *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return local_24;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0007f7d0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return local_24;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }" { (expression_statement "local_24 = FUN_00052d70();" (assignment_expression "local_24 = FUN_00052d70()" identifier = (call_expression "FUN_00052d70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_24 != 0) goto LAB_0007f88e;" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0007f88e;" goto statement_identifier ;)) }) (else_clause "else {\n    local_24 = 0;\n  }" else (compound_statement "{\n    local_24 = 0;\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }))) (if_statement "if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x16) != 0)" ( (binary_expression "*(ushort *)(param_1 + 0x16) != 0" (pointer_expression "*(ushort *)(param_1 + 0x16)" * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }" { (expression_statement "iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;" (assignment_expression "iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) * number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);" do (compound_statement "{\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    }" { (while_statement "while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }" while (parenthesized_expression "(FUN_0007f730(&local_24), param_1[8] == '\0')" ( (comma_expression "FUN_0007f730(&local_24), param_1[8] == '\0'" (call_expression "FUN_0007f730(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) , (binary_expression "param_1[8] == '\0'" (subscript_expression "param_1[8]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }" { (expression_statement "iVar3 = iVar3 + 2;" (assignment_expression "iVar3 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) (expression_statement "FUN_0007f5d0(uVar1,&local_24);" (call_expression "FUN_0007f5d0(uVar1,&local_24)" identifier (argument_list "(uVar1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if (iVar2 == iVar3) goto LAB_0007f884;" if (parenthesized_expression "(iVar2 == iVar3)" ( (binary_expression "iVar2 == iVar3" identifier == identifier) )) (goto_statement "goto LAB_0007f884;" goto statement_identifier ;)) })) (expression_statement "iVar3 = iVar3 + 2;" (assignment_expression "iVar3 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) ;) })) (labeled_statement "LAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }" statement_identifier : (if_statement "if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }" if (parenthesized_expression "(param_1[8] == '\0')" ( (binary_expression "param_1[8] == '\0'" (subscript_expression "param_1[8]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0007f5d0(uVar1,&local_24);\n  }" { (expression_statement "FUN_0007f5d0(uVar1,&local_24);" (call_expression "FUN_0007f5d0(uVar1,&local_24)" identifier (argument_list "(uVar1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) }))) (labeled_statement "LAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" { comment (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_24;" return identifier ;) })))
(translation_unit "int __regparm3 setChildPtrmaps(MemPage *pPage)\n\n{\n  BtShared *pBt;\n  int *piVar1;\n  int in_GS_OFFSET;\n  u8 in_stack_ffffffbc;\n  Pgno in_stack_ffffffc0;\n  int *in_stack_ffffffc4;\n  int rc;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pBt = (BtShared *)pPage->pgno;\n  if (pPage->isInit == '\0') {\n    in_stack_ffffffc0 = 0x7f8df;\n    rc = btreeInitPage(pPage);\n    if (rc != 0) goto LAB_0007f88e;\n  }\n  else {\n    rc = 0;\n  }\n  if (pPage->nCell != 0) {\n    in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2);\n    piVar1 = (int *)0x0;\n    do {\n      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }\n      piVar1 = (int *)((int)piVar1 + 2);\n    } while (in_stack_ffffffc4 != piVar1);\n  }\nLAB_0007f884:\n  if (pPage->leaf == '\0') {\n    ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return rc;\n}\n\n" (function_definition "int __regparm3 setChildPtrmaps(MemPage *pPage)\n\n{\n  BtShared *pBt;\n  int *piVar1;\n  int in_GS_OFFSET;\n  u8 in_stack_ffffffbc;\n  Pgno in_stack_ffffffc0;\n  int *in_stack_ffffffc4;\n  int rc;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pBt = (BtShared *)pPage->pgno;\n  if (pPage->isInit == '\0') {\n    in_stack_ffffffc0 = 0x7f8df;\n    rc = btreeInitPage(pPage);\n    if (rc != 0) goto LAB_0007f88e;\n  }\n  else {\n    rc = 0;\n  }\n  if (pPage->nCell != 0) {\n    in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2);\n    piVar1 = (int *)0x0;\n    do {\n      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }\n      piVar1 = (int *)((int)piVar1 + 2);\n    } while (in_stack_ffffffc4 != piVar1);\n  }\nLAB_0007f884:\n  if (pPage->leaf == '\0') {\n    ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return rc;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "setChildPtrmaps(MemPage *pPage)" identifier (parameter_list "(MemPage *pPage)" ( (parameter_declaration "MemPage *pPage" type_identifier (pointer_declarator "*pPage" * identifier)) ))) (compound_statement "{\n  BtShared *pBt;\n  int *piVar1;\n  int in_GS_OFFSET;\n  u8 in_stack_ffffffbc;\n  Pgno in_stack_ffffffc0;\n  int *in_stack_ffffffc4;\n  int rc;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pBt = (BtShared *)pPage->pgno;\n  if (pPage->isInit == '\0') {\n    in_stack_ffffffc0 = 0x7f8df;\n    rc = btreeInitPage(pPage);\n    if (rc != 0) goto LAB_0007f88e;\n  }\n  else {\n    rc = 0;\n  }\n  if (pPage->nCell != 0) {\n    in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2);\n    piVar1 = (int *)0x0;\n    do {\n      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }\n      piVar1 = (int *)((int)piVar1 + 2);\n    } while (in_stack_ffffffc4 != piVar1);\n  }\nLAB_0007f884:\n  if (pPage->leaf == '\0') {\n    ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return rc;\n}" { (declaration "BtShared *pBt;" type_identifier (pointer_declarator "*pBt" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "u8 in_stack_ffffffbc;" type_identifier identifier ;) (declaration "Pgno in_stack_ffffffc0;" type_identifier identifier ;) (declaration "int *in_stack_ffffffc4;" primitive_type (pointer_declarator "*in_stack_ffffffc4" * identifier) ;) (declaration "int rc;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pBt = (BtShared *)pPage->pgno;" (assignment_expression "pBt = (BtShared *)pPage->pgno" identifier = (cast_expression "(BtShared *)pPage->pgno" ( (type_descriptor "BtShared *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPage->pgno" identifier -> field_identifier))) ;) (if_statement "if (pPage->isInit == '\0') {\n    in_stack_ffffffc0 = 0x7f8df;\n    rc = btreeInitPage(pPage);\n    if (rc != 0) goto LAB_0007f88e;\n  }\n  else {\n    rc = 0;\n  }" if (parenthesized_expression "(pPage->isInit == '\0')" ( (binary_expression "pPage->isInit == '\0'" (field_expression "pPage->isInit" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    in_stack_ffffffc0 = 0x7f8df;\n    rc = btreeInitPage(pPage);\n    if (rc != 0) goto LAB_0007f88e;\n  }" { (expression_statement "in_stack_ffffffc0 = 0x7f8df;" (assignment_expression "in_stack_ffffffc0 = 0x7f8df" identifier = number_literal) ;) (expression_statement "rc = btreeInitPage(pPage);" (assignment_expression "rc = btreeInitPage(pPage)" identifier = (call_expression "btreeInitPage(pPage)" identifier (argument_list "(pPage)" ( identifier )))) ;) (if_statement "if (rc != 0) goto LAB_0007f88e;" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (goto_statement "goto LAB_0007f88e;" goto statement_identifier ;)) }) (else_clause "else {\n    rc = 0;\n  }" else (compound_statement "{\n    rc = 0;\n  }" { (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) }))) (if_statement "if (pPage->nCell != 0) {\n    in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2);\n    piVar1 = (int *)0x0;\n    do {\n      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }\n      piVar1 = (int *)((int)piVar1 + 2);\n    } while (in_stack_ffffffc4 != piVar1);\n  }" if (parenthesized_expression "(pPage->nCell != 0)" ( (binary_expression "pPage->nCell != 0" (field_expression "pPage->nCell" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2);\n    piVar1 = (int *)0x0;\n    do {\n      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }\n      piVar1 = (int *)((int)piVar1 + 2);\n    } while (in_stack_ffffffc4 != piVar1);\n  }" { (expression_statement "in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2);" (assignment_expression "in_stack_ffffffc4 = (int *)((uint)pPage->nCell * 2)" identifier = (cast_expression "(int *)((uint)pPage->nCell * 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)pPage->nCell * 2)" ( (binary_expression "(uint)pPage->nCell * 2" (cast_expression "(uint)pPage->nCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pPage->nCell" identifier -> field_identifier)) * number_literal) )))) ;) (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }\n      piVar1 = (int *)((int)piVar1 + 2);\n    } while (in_stack_ffffffc4 != piVar1);" do (compound_statement "{\n      while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }\n      piVar1 = (int *)((int)piVar1 + 2);\n    }" { (while_statement "while (ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0') {\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }" while (parenthesized_expression "(ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0')" ( (comma_expression "ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc), pPage->leaf == '\0'" (call_expression "ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc)" identifier (argument_list "(pPage,(MemPage *)&pPage->aDataEnd,\n                              pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage),\n                              &rc)" ( identifier , (cast_expression "(MemPage *)&pPage->aDataEnd" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPage->aDataEnd" & (field_expression "pPage->aDataEnd" identifier -> field_identifier))) , (binary_expression "pPage->aData +\n                              ((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage)" (field_expression "pPage->aData" identifier -> field_identifier) + (parenthesized_expression "((*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage)" ( (binary_expression "(*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8) & pPage->maskPage" (parenthesized_expression "(*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8)" ( (binary_expression "*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8 |\n                               *(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8" (binary_expression "*(ushort *)(pPage->aCellIdx + (int)piVar1) << 8" (pointer_expression "*(ushort *)(pPage->aCellIdx + (int)piVar1)" * (cast_expression "(ushort *)(pPage->aCellIdx + (int)piVar1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pPage->aCellIdx + (int)piVar1)" ( (binary_expression "pPage->aCellIdx + (int)piVar1" (field_expression "pPage->aCellIdx" identifier -> field_identifier) + (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) << number_literal) | (binary_expression "*(ushort *)(pPage->aCellIdx + (int)piVar1) >> 8" (pointer_expression "*(ushort *)(pPage->aCellIdx + (int)piVar1)" * (cast_expression "(ushort *)(pPage->aCellIdx + (int)piVar1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pPage->aCellIdx + (int)piVar1)" ( (binary_expression "pPage->aCellIdx + (int)piVar1" (field_expression "pPage->aCellIdx" identifier -> field_identifier) + (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) >> number_literal)) )) & (field_expression "pPage->maskPage" identifier -> field_identifier)) ))) , (pointer_expression "&rc" & identifier) ))) , (binary_expression "pPage->leaf == '\0'" (field_expression "pPage->leaf" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        piVar1 = (int *)((int)piVar1 + 2);\n        ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n        if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;\n      }" { (expression_statement "piVar1 = (int *)((int)piVar1 + 2);" (assignment_expression "piVar1 = (int *)((int)piVar1 + 2)" identifier = (cast_expression "(int *)((int)piVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 2)" ( (binary_expression "(int)piVar1 + 2" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);" (call_expression "ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4)" identifier (argument_list "(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4)" ( identifier , (binary_expression "(Pgno)&rc" (parenthesized_expression "(Pgno)" ( identifier )) & identifier) , identifier , identifier , identifier ))) ;) (if_statement "if (in_stack_ffffffc4 == piVar1) goto LAB_0007f884;" if (parenthesized_expression "(in_stack_ffffffc4 == piVar1)" ( (binary_expression "in_stack_ffffffc4 == piVar1" identifier == identifier) )) (goto_statement "goto LAB_0007f884;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)((int)piVar1 + 2);" (assignment_expression "piVar1 = (int *)((int)piVar1 + 2)" identifier = (cast_expression "(int *)((int)piVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 2)" ( (binary_expression "(int)piVar1 + 2" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(in_stack_ffffffc4 != piVar1)" ( (binary_expression "in_stack_ffffffc4 != piVar1" identifier != identifier) )) ;) })) (labeled_statement "LAB_0007f884:\n  if (pPage->leaf == '\0') {\n    ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n  }" statement_identifier : (if_statement "if (pPage->leaf == '\0') {\n    ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n  }" if (parenthesized_expression "(pPage->leaf == '\0')" ( (binary_expression "pPage->leaf == '\0'" (field_expression "pPage->leaf" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);\n  }" { (expression_statement "ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4);" (call_expression "ptrmapPut(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4)" identifier (argument_list "(pBt,(Pgno)&rc,in_stack_ffffffbc,in_stack_ffffffc0,in_stack_ffffffc4)" ( identifier , (binary_expression "(Pgno)&rc" (parenthesized_expression "(Pgno)" ( identifier )) & identifier) , identifier , identifier , identifier ))) ;) }))) (labeled_statement "LAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return rc;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0007f7d0(char *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_24;\n}\n\n" (function_definition "int __regparm3 FUN_0007f7d0(char *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_24;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0007f7d0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_24;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }" { (expression_statement "local_24 = FUN_00052d70();" (assignment_expression "local_24 = FUN_00052d70()" identifier = (call_expression "FUN_00052d70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_24 != 0) goto LAB_0007f88e;" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0007f88e;" goto statement_identifier ;)) }) (else_clause "else {\n    local_24 = 0;\n  }" else (compound_statement "{\n    local_24 = 0;\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }))) (if_statement "if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x16) != 0)" ( (binary_expression "*(ushort *)(param_1 + 0x16) != 0" (pointer_expression "*(ushort *)(param_1 + 0x16)" * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }" { (expression_statement "iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;" (assignment_expression "iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) * number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);" do (compound_statement "{\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    }" { (while_statement "while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }" while (parenthesized_expression "(FUN_0007f730(&local_24), param_1[8] == '\0')" ( (comma_expression "FUN_0007f730(&local_24), param_1[8] == '\0'" (call_expression "FUN_0007f730(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) , (binary_expression "param_1[8] == '\0'" (subscript_expression "param_1[8]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }" { (expression_statement "iVar3 = iVar3 + 2;" (assignment_expression "iVar3 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) (expression_statement "FUN_0007f5d0(uVar1,&local_24);" (call_expression "FUN_0007f5d0(uVar1,&local_24)" identifier (argument_list "(uVar1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if (iVar2 == iVar3) goto LAB_0007f884;" if (parenthesized_expression "(iVar2 == iVar3)" ( (binary_expression "iVar2 == iVar3" identifier == identifier) )) (goto_statement "goto LAB_0007f884;" goto statement_identifier ;)) })) (expression_statement "iVar3 = iVar3 + 2;" (assignment_expression "iVar3 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) ;) })) (labeled_statement "LAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }" statement_identifier : (if_statement "if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }" if (parenthesized_expression "(param_1[8] == '\0')" ( (binary_expression "param_1[8] == '\0'" (subscript_expression "param_1[8]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0007f5d0(uVar1,&local_24);\n  }" { (expression_statement "FUN_0007f5d0(uVar1,&local_24);" (call_expression "FUN_0007f5d0(uVar1,&local_24)" identifier (argument_list "(uVar1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) }))) (labeled_statement "LAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000f6410();\n  }" { (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_24;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_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) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) , (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence '))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0007f7d0(char *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_24;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0007f7d0(char *param_1)" (identifier "FUN_0007f7d0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 4);\n  if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }\n  if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }\nLAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }\nLAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_24;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*param_1 == '\0') {\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }\n  else {\n    local_24 = 0;\n  }" (if "if") (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_24 = FUN_00052d70();\n    if (local_24 != 0) goto LAB_0007f88e;\n  }" ({ "{") (expression_statement "local_24 = FUN_00052d70();" (assignment_expression "local_24 = FUN_00052d70()" (identifier "local_24") (= "=") (call_expression "FUN_00052d70()" (identifier "FUN_00052d70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (local_24 != 0) goto LAB_0007f88e;" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007f88e;" (goto "goto") (statement_identifier "LAB_0007f88e") (; ";"))) (} "}")) (else_clause "else {\n    local_24 = 0;\n  }" (else "else") (compound_statement "{\n    local_24 = 0;\n  }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (*(ushort *)(param_1 + 0x16) != 0) {\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }" (if "if") (parenthesized_expression "(*(ushort *)(param_1 + 0x16) != 0)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x16) != 0" (pointer_expression "*(ushort *)(param_1 + 0x16)" (* "*") (cast_expression "(ushort *)(param_1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16)" (( "(") (binary_expression "param_1 + 0x16" (identifier "param_1") (+ "+") (number_literal "0x16")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;\n    iVar3 = 0;\n    do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);\n  }" ({ "{") (expression_statement "iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;" (assignment_expression "iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2" (identifier "iVar2") (= "=") (binary_expression "(uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16)" (( "(") (binary_expression "param_1 + 0x16" (identifier "param_1") (+ "+") (number_literal "0x16")) () ")")))) (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    } while (iVar2 != iVar3);" (do "do") (compound_statement "{\n      while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }\n      iVar3 = iVar3 + 2;\n    }" ({ "{") (while_statement "while (FUN_0007f730(&local_24), param_1[8] == '\0') {\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }" (while "while") (parenthesized_expression "(FUN_0007f730(&local_24), param_1[8] == '\0')" (( "(") (comma_expression "FUN_0007f730(&local_24), param_1[8] == '\0'" (call_expression "FUN_0007f730(&local_24)" (identifier "FUN_0007f730") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (, ",") (binary_expression "param_1[8] == '\0'" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n        iVar3 = iVar3 + 2;\n        FUN_0007f5d0(uVar1,&local_24);\n        if (iVar2 == iVar3) goto LAB_0007f884;\n      }" ({ "{") (expression_statement "iVar3 = iVar3 + 2;" (assignment_expression "iVar3 = iVar3 + 2" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 2" (identifier "iVar3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "FUN_0007f5d0(uVar1,&local_24);" (call_expression "FUN_0007f5d0(uVar1,&local_24)" (identifier "FUN_0007f5d0") (argument_list "(uVar1,&local_24)" (( "(") (identifier "uVar1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (if_statement "if (iVar2 == iVar3) goto LAB_0007f884;" (if "if") (parenthesized_expression "(iVar2 == iVar3)" (( "(") (binary_expression "iVar2 == iVar3" (identifier "iVar2") (== "==") (identifier "iVar3")) () ")")) (goto_statement "goto LAB_0007f884;" (goto "goto") (statement_identifier "LAB_0007f884") (; ";"))) (} "}"))) (expression_statement "iVar3 = iVar3 + 2;" (assignment_expression "iVar3 = iVar3 + 2" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 2" (identifier "iVar3") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != iVar3)" (( "(") (binary_expression "iVar2 != iVar3" (identifier "iVar2") (!= "!=") (identifier "iVar3")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0007f884:\n  if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }" (statement_identifier "LAB_0007f884") (: ":") (if_statement "if (param_1[8] == '\0') {\n    FUN_0007f5d0(uVar1,&local_24);\n  }" (if "if") (parenthesized_expression "(param_1[8] == '\0')" (( "(") (binary_expression "param_1[8] == '\0'" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0007f5d0(uVar1,&local_24);\n  }" ({ "{") (expression_statement "FUN_0007f5d0(uVar1,&local_24);" (call_expression "FUN_0007f5d0(uVar1,&local_24)" (identifier "FUN_0007f5d0") (argument_list "(uVar1,&local_24)" (( "(") (identifier "uVar1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_0007f88e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" (statement_identifier "LAB_0007f88e") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000f6410();\n  }" ({ "{") (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" (identifier "FUN_000f6410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return local_24;" (return "return") (identifier "local_24") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pPage)

{
  type_2 *pBt;
  int *var_7;
  int var_1;
  type_3 in_stack_ffffffbc;
  type_4 in_stack_ffffffc0;
  int *var_6;
  int var_3;
  int var_8;
  
  var_8 = *(int *)(var_1 + 0x14);
  pBt = (type_2 *)pPage->pgno;
  if (pPage->isInit == '\0') {
    in_stack_ffffffc0 = 0x7f8df;
    var_3 = var_2(pPage);
    if (var_3 != 0) goto LAB_0007f88e;
  }
  else {
    var_3 = 0;
  }
  if (pPage->nCell != 0) {
    var_6 = (int *)((type_5)pPage->nCell * 2);
    var_7 = (int *)0x0;
    do {
      while (var_4(pPage,(type_1 *)&pPage->aDataEnd,
                              pPage->aData +
                              ((*(type_6 *)(pPage->aCellIdx + (int)var_7) << 8 |
                               *(type_6 *)(pPage->aCellIdx + (int)var_7) >> 8) & pPage->maskPage),
                              &var_3), pPage->leaf == '\0') {
        var_7 = (int *)((int)var_7 + 2);
        var_5(pBt,(type_4)&var_3,in_stack_ffffffbc,in_stack_ffffffc0,var_6);
        if (var_6 == var_7) goto LAB_0007f884;
      }
      var_7 = (int *)((int)var_7 + 2);
    } while (var_6 != var_7);
  }
LAB_0007f884:
  if (pPage->leaf == '\0') {
    var_5(pBt,(type_4)&var_3,in_stack_ffffffbc,in_stack_ffffffc0,var_6);
  }
LAB_0007f88e:
  if (var_8 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_9();
  }
  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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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))))))) (expression_statement (assignment_expression left: (identifier) 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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) 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)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

int __regparm3 MASKED(char *param_1)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(undefined4 *)(param_1 + 4);
  if (*param_1 == '\0') {
    local_24 = FUN_00052d70();
    if (local_24 != 0) goto LAB_0007f88e;
  }
  else {
    local_24 = 0;
  }
  if (*(ushort *)(param_1 + 0x16) != 0) {
    iVar2 = (uint)*(ushort *)(param_1 + 0x16) * 2;
    iVar3 = 0;
    do {
      while (FUN_0007f730(&local_24), param_1[8] == '\0') {
        iVar3 = iVar3 + 2;
        FUN_0007f5d0(uVar1,&local_24);
        if (iVar2 == iVar3) goto LAB_0007f884;
      }
      iVar3 = iVar3 + 2;
    } while (iVar2 != iVar3);
  }
LAB_0007f884:
  if (param_1[8] == '\0') {
    FUN_0007f5d0(uVar1,&local_24);
  }
LAB_0007f88e:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return local_24;
}

