
/* WARNING: Unknown calling convention */

int sqlite3_auto_extension(_func_void *xInit)

{
  int *pOld;
  int iVar1;
  int iVar2;
  int iVar3;
  void *pvVar4;
  int unaff_EDI;
  undefined4 in_stack_ffffffd4;
  
  __x86_get_pc_thunk_di();
  iVar1 = sqlite3_initialize();
  if (iVar1 == 0) {
    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {
      iVar2 = 0;
    }
    else {
      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);
      if (iVar2 != 0) {
        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);
      }
    }
    pOld = *(int **)(unaff_EDI + 0xa4471);
    if (*(int *)(unaff_EDI + 0xa446d) == 0) {
LAB_0011872d:
      iVar1 = sqlite3_initialize();
      if ((iVar1 == 0) &&
         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {
        iVar1 = *(int *)(unaff_EDI + 0xa446d);
        *(void **)(unaff_EDI + 0xa4471) = pvVar4;
        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;
        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;
        iVar1 = 0;
      }
      else {
        iVar1 = 7;
      }
    }
    else if (xInit != (_func_void *)*pOld) {
      iVar3 = 0;
      do {
        iVar3 = iVar3 + 1;
        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;
      } while (xInit != (_func_void *)pOld[iVar3]);
    }
    if (iVar2 != 0) {
      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);
    }
  }
  return iVar1;
}



int FUN_001186a0(int param_1)

{
  int iVar1;
  int iVar2;
  int unaff_EDI;
  int local_28;
  
  FUN_0003a401();
  iVar1 = FUN_00067fc0();
  if (iVar1 == 0) {
    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {
      local_28 = 0;
    }
    else {
      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);
      if (local_28 != 0) {
        (**(code **)(unaff_EDI + 0xa2d95))(local_28);
      }
    }
    if (*(int *)(unaff_EDI + 0xa446d) == 0) {
LAB_0011872d:
      iVar1 = FUN_00067fc0();
      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {
        iVar2 = *(int *)(unaff_EDI + 0xa446d);
        *(int *)(unaff_EDI + 0xa4471) = iVar1;
        *(int *)(iVar1 + iVar2 * 4) = param_1;
        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;
        iVar1 = 0;
      }
      else {
        iVar1 = 7;
      }
    }
    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {
      iVar2 = 0;
      do {
        iVar2 = iVar2 + 1;
        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;
      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);
    }
    if (local_28 != 0) {
      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);
    }
  }
  return iVar1;
}


PUSH EBP
PUSH EDI
CALL 0x0003a401
ADD EDI,0xa2781
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EBX,dword ptr [ESP + 0x30]
CALL 0x00067fc0
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x00118785
MOV EAX,dword ptr [EDI + 0x5bc]
TEST EAX,EAX
JZ 0x00118790
SUB ESP,0xc
PUSH 0x2
CALL dword ptr [EDI + 0x60c]
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001186f6
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDI + 0x614]
ADD ESP,0x10
MOV EDX,dword ptr [EDI + 0x1cec]
MOV ESI,dword ptr [EDI + 0x1cf0]
TEST EDX,EDX
JZ 0x001187a7
CMP EBX,dword ptr [ESI]
JZ 0x00118770
XOR EAX,EAX
JMP 0x0011871d
CMP EBX,dword ptr [ESI + EAX*0x4]
JZ 0x00118770
ADD EAX,0x1
CMP EAX,EDX
JNZ 0x00118718
LEA EDX,[EAX*0x4 + 0x4]
XOR ECX,ECX
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],ECX
CALL 0x00067fc0
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
MOV EBP,EAX
JNZ 0x001187a0
MOV EAX,ESI
CALL 0x00055930
TEST EAX,EAX
JZ 0x001187a0
MOV EDX,dword ptr [EDI + 0x1cec]
MOV dword ptr [EDI + 0x1cf0],EAX
MOV dword ptr [EAX + EDX*0x4],EBX
ADD EDX,0x1
MOV dword ptr [EDI + 0x1cec],EDX
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JZ 0x00118785
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDI + 0x61c]
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x4],0x0
JMP 0x001186f6
MOV EBP,0x7
JMP 0x00118770
MOV EDX,0x4
XOR ECX,ECX
JMP 0x0011872d
(translation_unit "int FUN_001186a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_001186a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_001186a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "FUN_0003a401();" (call_expression "FUN_0003a401()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = FUN_00067fc0();" (assignment_expression "iVar1 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }" { (if_statement "if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" if (parenthesized_expression "(*(int *)(unaff_EDI + 0xa2d3d) == 0)" ( (binary_expression "*(int *)(unaff_EDI + 0xa2d3d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa2d3d)" * (cast_expression "(int *)(unaff_EDI + 0xa2d3d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa2d3d)" ( (binary_expression "unaff_EDI + 0xa2d3d" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      local_28 = 0;\n    }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" else (compound_statement "{\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" { (expression_statement "local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);" (assignment_expression "local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2)" identifier = (call_expression "(**(code **)(unaff_EDI + 0xa2d8d))(2)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d8d))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d8d)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d8d)" * (cast_expression "(code **)(unaff_EDI + 0xa2d8d)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d8d)" ( (binary_expression "unaff_EDI + 0xa2d8d" identifier + number_literal) ))))) )) (argument_list "(2)" ( number_literal )))) ;) (if_statement "if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }" { (expression_statement "(**(code **)(unaff_EDI + 0xa2d95))(local_28);" (call_expression "(**(code **)(unaff_EDI + 0xa2d95))(local_28)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d95))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d95)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d95)" * (cast_expression "(code **)(unaff_EDI + 0xa2d95)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d95)" ( (binary_expression "unaff_EDI + 0xa2d95" identifier + number_literal) ))))) )) (argument_list "(local_28)" ( identifier ))) ;) })) }))) (if_statement "if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" if (parenthesized_expression "(*(int *)(unaff_EDI + 0xa446d) == 0)" ( (binary_expression "*(int *)(unaff_EDI + 0xa446d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }" { (labeled_statement "LAB_0011872d:\n      iVar1 = FUN_00067fc0();" statement_identifier : (expression_statement "iVar1 = FUN_00067fc0();" (assignment_expression "iVar1 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }" if (parenthesized_expression "((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0))" ( (binary_expression "(iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = FUN_00055930(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00055930(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00055930()" identifier = (call_expression "FUN_00055930()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }" { (expression_statement "iVar2 = *(int *)(unaff_EDI + 0xa446d);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0xa446d)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(unaff_EDI + 0xa4471) = iVar1;" (assignment_expression "*(int *)(unaff_EDI + 0xa4471) = iVar1" (pointer_expression "*(int *)(unaff_EDI + 0xa4471)" * (cast_expression "(int *)(unaff_EDI + 0xa4471)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + iVar2 * 4) = param_1;" (assignment_expression "*(int *)(iVar1 + iVar2 * 4) = param_1" (pointer_expression "*(int *)(iVar1 + iVar2 * 4)" * (cast_expression "(int *)(iVar1 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;" (assignment_expression "*(int *)(unaff_EDI + 0xa446d) = iVar2 + 1" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar1 = 7;\n      }" else (compound_statement "{\n        iVar1 = 7;\n      }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }))) }) (else_clause "else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" else (if_statement "if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" if (parenthesized_expression "(param_1 != **(int **)(unaff_EDI + 0xa4471))" ( (binary_expression "param_1 != **(int **)(unaff_EDI + 0xa4471)" identifier != (pointer_expression "**(int **)(unaff_EDI + 0xa4471)" * (pointer_expression "*(int **)(unaff_EDI + 0xa4471)" * (cast_expression "(int **)(unaff_EDI + 0xa4471)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);" do (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;" if (parenthesized_expression "(iVar2 == *(int *)(unaff_EDI + 0xa446d))" ( (binary_expression "iVar2 == *(int *)(unaff_EDI + 0xa446d)" identifier == (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) ))))) )) (goto_statement "goto LAB_0011872d;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2])" ( (binary_expression "param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]" identifier != (subscript_expression "(*(int **)(unaff_EDI + 0xa4471))[iVar2]" (parenthesized_expression "(*(int **)(unaff_EDI + 0xa4471))" ( (pointer_expression "*(int **)(unaff_EDI + 0xa4471)" * (cast_expression "(int **)(unaff_EDI + 0xa4471)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) )))) )) [ identifier ])) )) ;) })))) (if_statement "if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }" { (expression_statement "(**(code **)(unaff_EDI + 0xa2d9d))(local_28);" (call_expression "(**(code **)(unaff_EDI + 0xa2d9d))(local_28)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d9d))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d9d)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d9d)" * (cast_expression "(code **)(unaff_EDI + 0xa2d9d)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d9d)" ( (binary_expression "unaff_EDI + 0xa2d9d" identifier + number_literal) ))))) )) (argument_list "(local_28)" ( identifier ))) ;) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint sqlite3_auto_extension(_func_void *xInit)\n\n{\n  int *pOld;\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *pvVar4;\n  int unaff_EDI;\n  undefined4 in_stack_ffffffd4;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }\n    pOld = *(int **)(unaff_EDI + 0xa4471);\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = sqlite3_initialize();\n      if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }\n    if (iVar2 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);\n    }\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int sqlite3_auto_extension(_func_void *xInit)\n\n{\n  int *pOld;\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *pvVar4;\n  int unaff_EDI;\n  undefined4 in_stack_ffffffd4;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }\n    pOld = *(int **)(unaff_EDI + 0xa4471);\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = sqlite3_initialize();\n      if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }\n    if (iVar2 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_auto_extension(_func_void *xInit)" identifier (parameter_list "(_func_void *xInit)" ( (parameter_declaration "_func_void *xInit" type_identifier (pointer_declarator "*xInit" * identifier)) ))) (compound_statement "{\n  int *pOld;\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *pvVar4;\n  int unaff_EDI;\n  undefined4 in_stack_ffffffd4;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }\n    pOld = *(int **)(unaff_EDI + 0xa4471);\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = sqlite3_initialize();\n      if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }\n    if (iVar2 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);\n    }\n  }\n  return iVar1;\n}" { (declaration "int *pOld;" primitive_type (pointer_declarator "*pOld" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 in_stack_ffffffd4;" type_identifier identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }\n    pOld = *(int **)(unaff_EDI + 0xa4471);\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = sqlite3_initialize();\n      if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }\n    if (iVar2 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }\n    pOld = *(int **)(unaff_EDI + 0xa4471);\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = sqlite3_initialize();\n      if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }\n    if (iVar2 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);\n    }\n  }" { (if_statement "if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }" if (parenthesized_expression "(*(int *)(unaff_EDI + 0xa2d3d) == 0)" ( (binary_expression "*(int *)(unaff_EDI + 0xa2d3d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa2d3d)" * (cast_expression "(int *)(unaff_EDI + 0xa2d3d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa2d3d)" ( (binary_expression "unaff_EDI + 0xa2d3d" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar2 = 0;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0xa2d8d))(2)" identifier = (call_expression "(**(code **)(unaff_EDI + 0xa2d8d))(2)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d8d))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d8d)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d8d)" * (cast_expression "(code **)(unaff_EDI + 0xa2d8d)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d8d)" ( (binary_expression "unaff_EDI + 0xa2d8d" identifier + number_literal) ))))) )) (argument_list "(2)" ( number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(unaff_EDI + 0xa2d95))(iVar2);\n      }" { (expression_statement "(**(code **)(unaff_EDI + 0xa2d95))(iVar2);" (call_expression "(**(code **)(unaff_EDI + 0xa2d95))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d95))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d95)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d95)" * (cast_expression "(code **)(unaff_EDI + 0xa2d95)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d95)" ( (binary_expression "unaff_EDI + 0xa2d95" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) })) }))) (expression_statement "pOld = *(int **)(unaff_EDI + 0xa4471);" (assignment_expression "pOld = *(int **)(unaff_EDI + 0xa4471)" identifier = (pointer_expression "*(int **)(unaff_EDI + 0xa4471)" * (cast_expression "(int **)(unaff_EDI + 0xa4471)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = sqlite3_initialize();\n      if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }" if (parenthesized_expression "(*(int *)(unaff_EDI + 0xa446d) == 0)" ( (binary_expression "*(int *)(unaff_EDI + 0xa446d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_0011872d:\n      iVar1 = sqlite3_initialize();\n      if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }" { (labeled_statement "LAB_0011872d:\n      iVar1 = sqlite3_initialize();" statement_identifier : (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;)) (if_statement "if ((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)) {\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }" if (parenthesized_expression "((iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0))" ( (binary_expression "(iVar1 == 0) &&\n         (pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0)" ( (comma_expression "pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4)), pvVar4 != (void *)0x0" (assignment_expression "pvVar4 = sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4))" identifier = (call_expression "sqlite3Realloc(pOld,CONCAT44(iVar2,in_stack_ffffffd4))" identifier (argument_list "(pOld,CONCAT44(iVar2,in_stack_ffffffd4))" ( identifier , (call_expression "CONCAT44(iVar2,in_stack_ffffffd4)" identifier (argument_list "(iVar2,in_stack_ffffffd4)" ( identifier , identifier ))) )))) , (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        iVar1 = *(int *)(unaff_EDI + 0xa446d);\n        *(void **)(unaff_EDI + 0xa4471) = pvVar4;\n        *(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;\n        *(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;\n        iVar1 = 0;\n      }" { (expression_statement "iVar1 = *(int *)(unaff_EDI + 0xa446d);" (assignment_expression "iVar1 = *(int *)(unaff_EDI + 0xa446d)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) ))))) ;) (expression_statement "*(void **)(unaff_EDI + 0xa4471) = pvVar4;" (assignment_expression "*(void **)(unaff_EDI + 0xa4471) = pvVar4" (pointer_expression "*(void **)(unaff_EDI + 0xa4471)" * (cast_expression "(void **)(unaff_EDI + 0xa4471)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit;" (assignment_expression "*(_func_void **)((int)pvVar4 + iVar1 * 4) = xInit" (pointer_expression "*(_func_void **)((int)pvVar4 + iVar1 * 4)" * (cast_expression "(_func_void **)((int)pvVar4 + iVar1 * 4)" ( (type_descriptor "_func_void **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + iVar1 * 4)" ( (binary_expression "(int)pvVar4 + iVar1 * 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(unaff_EDI + 0xa446d) = iVar1 + 1;" (assignment_expression "*(int *)(unaff_EDI + 0xa446d) = iVar1 + 1" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar1 = 7;\n      }" else (compound_statement "{\n        iVar1 = 7;\n      }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }))) }) (else_clause "else if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }" else (if_statement "if (xInit != (_func_void *)*pOld) {\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }" if (parenthesized_expression "(xInit != (_func_void *)*pOld)" ( (binary_expression "xInit != (_func_void *)*pOld" identifier != (cast_expression "(_func_void *)*pOld" ( (type_descriptor "_func_void *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pOld" * identifier))) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (xInit != (_func_void *)pOld[iVar3]);" do (compound_statement "{\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;" if (parenthesized_expression "(iVar3 == *(int *)(unaff_EDI + 0xa446d))" ( (binary_expression "iVar3 == *(int *)(unaff_EDI + 0xa446d)" identifier == (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) ))))) )) (goto_statement "goto LAB_0011872d;" goto statement_identifier ;)) }) while (parenthesized_expression "(xInit != (_func_void *)pOld[iVar3])" ( (binary_expression "xInit != (_func_void *)pOld[iVar3]" identifier != (cast_expression "(_func_void *)pOld[iVar3]" ( (type_descriptor "_func_void *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pOld[iVar3]" identifier [ identifier ]))) )) ;) })))) (if_statement "if (iVar2 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)(unaff_EDI + 0xa2d9d))(iVar2);\n    }" { (expression_statement "(**(code **)(unaff_EDI + 0xa2d9d))(iVar2);" (call_expression "(**(code **)(unaff_EDI + 0xa2d9d))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d9d))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d9d)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d9d)" * (cast_expression "(code **)(unaff_EDI + 0xa2d9d)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d9d)" ( (binary_expression "unaff_EDI + 0xa2d9d" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_001186a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_001186a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_001186a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "FUN_0003a401();" (call_expression "FUN_0003a401()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = FUN_00067fc0();" (assignment_expression "iVar1 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }" { (if_statement "if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" if (parenthesized_expression "(*(int *)(unaff_EDI + 0xa2d3d) == 0)" ( (binary_expression "*(int *)(unaff_EDI + 0xa2d3d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa2d3d)" * (cast_expression "(int *)(unaff_EDI + 0xa2d3d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa2d3d)" ( (binary_expression "unaff_EDI + 0xa2d3d" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      local_28 = 0;\n    }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" else (compound_statement "{\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" { (expression_statement "local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);" (assignment_expression "local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2)" identifier = (call_expression "(**(code **)(unaff_EDI + 0xa2d8d))(2)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d8d))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d8d)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d8d)" * (cast_expression "(code **)(unaff_EDI + 0xa2d8d)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d8d)" ( (binary_expression "unaff_EDI + 0xa2d8d" identifier + number_literal) ))))) )) (argument_list "(2)" ( number_literal )))) ;) (if_statement "if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }" { (expression_statement "(**(code **)(unaff_EDI + 0xa2d95))(local_28);" (call_expression "(**(code **)(unaff_EDI + 0xa2d95))(local_28)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d95))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d95)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d95)" * (cast_expression "(code **)(unaff_EDI + 0xa2d95)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d95)" ( (binary_expression "unaff_EDI + 0xa2d95" identifier + number_literal) ))))) )) (argument_list "(local_28)" ( identifier ))) ;) })) }))) (if_statement "if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" if (parenthesized_expression "(*(int *)(unaff_EDI + 0xa446d) == 0)" ( (binary_expression "*(int *)(unaff_EDI + 0xa446d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }" { (labeled_statement "LAB_0011872d:\n      iVar1 = FUN_00067fc0();" statement_identifier : (expression_statement "iVar1 = FUN_00067fc0();" (assignment_expression "iVar1 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }" if (parenthesized_expression "((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0))" ( (binary_expression "(iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = FUN_00055930(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00055930(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00055930()" identifier = (call_expression "FUN_00055930()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }" { (expression_statement "iVar2 = *(int *)(unaff_EDI + 0xa446d);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0xa446d)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(unaff_EDI + 0xa4471) = iVar1;" (assignment_expression "*(int *)(unaff_EDI + 0xa4471) = iVar1" (pointer_expression "*(int *)(unaff_EDI + 0xa4471)" * (cast_expression "(int *)(unaff_EDI + 0xa4471)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + iVar2 * 4) = param_1;" (assignment_expression "*(int *)(iVar1 + iVar2 * 4) = param_1" (pointer_expression "*(int *)(iVar1 + iVar2 * 4)" * (cast_expression "(int *)(iVar1 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;" (assignment_expression "*(int *)(unaff_EDI + 0xa446d) = iVar2 + 1" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar1 = 7;\n      }" else (compound_statement "{\n        iVar1 = 7;\n      }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }))) }) (else_clause "else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" else (if_statement "if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" if (parenthesized_expression "(param_1 != **(int **)(unaff_EDI + 0xa4471))" ( (binary_expression "param_1 != **(int **)(unaff_EDI + 0xa4471)" identifier != (pointer_expression "**(int **)(unaff_EDI + 0xa4471)" * (pointer_expression "*(int **)(unaff_EDI + 0xa4471)" * (cast_expression "(int **)(unaff_EDI + 0xa4471)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);" do (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;" if (parenthesized_expression "(iVar2 == *(int *)(unaff_EDI + 0xa446d))" ( (binary_expression "iVar2 == *(int *)(unaff_EDI + 0xa446d)" identifier == (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" * (cast_expression "(int *)(unaff_EDI + 0xa446d)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa446d)" ( (binary_expression "unaff_EDI + 0xa446d" identifier + number_literal) ))))) )) (goto_statement "goto LAB_0011872d;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2])" ( (binary_expression "param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]" identifier != (subscript_expression "(*(int **)(unaff_EDI + 0xa4471))[iVar2]" (parenthesized_expression "(*(int **)(unaff_EDI + 0xa4471))" ( (pointer_expression "*(int **)(unaff_EDI + 0xa4471)" * (cast_expression "(int **)(unaff_EDI + 0xa4471)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa4471)" ( (binary_expression "unaff_EDI + 0xa4471" identifier + number_literal) )))) )) [ identifier ])) )) ;) })))) (if_statement "if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }" { (expression_statement "(**(code **)(unaff_EDI + 0xa2d9d))(local_28);" (call_expression "(**(code **)(unaff_EDI + 0xa2d9d))(local_28)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d9d))" ( (pointer_expression "**(code **)(unaff_EDI + 0xa2d9d)" * (pointer_expression "*(code **)(unaff_EDI + 0xa2d9d)" * (cast_expression "(code **)(unaff_EDI + 0xa2d9d)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0xa2d9d)" ( (binary_expression "unaff_EDI + 0xa2d9d" identifier + number_literal) ))))) )) (argument_list "(local_28)" ( identifier ))) ;) })) })) (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) }))) (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 { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ IDENT ])) )) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_001186a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_001186a0(int param_1)" (identifier "FUN_001186a0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0003a401();\n  iVar1 = FUN_00067fc0();\n  if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (expression_statement "FUN_0003a401();" (call_expression "FUN_0003a401()" (identifier "FUN_0003a401") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00067fc0();" (assignment_expression "iVar1 = FUN_00067fc0()" (identifier "iVar1") (= "=") (call_expression "FUN_00067fc0()" (identifier "FUN_00067fc0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }\n    if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }\n    if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }\n  }" ({ "{") (if_statement "if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {\n      local_28 = 0;\n    }\n    else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(unaff_EDI + 0xa2d3d) == 0)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0xa2d3d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa2d3d)" (* "*") (cast_expression "(int *)(unaff_EDI + 0xa2d3d)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xa2d3d)" (( "(") (binary_expression "unaff_EDI + 0xa2d3d" (identifier "unaff_EDI") (+ "+") (number_literal "0xa2d3d")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_28 = 0;\n    }" ({ "{") (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" (else "else") (compound_statement "{\n      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);\n      if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }\n    }" ({ "{") (expression_statement "local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);" (assignment_expression "local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2)" (identifier "local_28") (= "=") (call_expression "(**(code **)(unaff_EDI + 0xa2d8d))(2)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d8d))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0xa2d8d)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0xa2d8d)" (* "*") (cast_expression "(code **)(unaff_EDI + 0xa2d8d)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0xa2d8d)" (( "(") (binary_expression "unaff_EDI + 0xa2d8d" (identifier "unaff_EDI") (+ "+") (number_literal "0xa2d8d")) () ")"))))) () ")")) (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (; ";")) (if_statement "if (local_28 != 0) {\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }" (if "if") (parenthesized_expression "(local_28 != 0)" (( "(") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(unaff_EDI + 0xa2d95))(local_28);\n      }" ({ "{") (expression_statement "(**(code **)(unaff_EDI + 0xa2d95))(local_28);" (call_expression "(**(code **)(unaff_EDI + 0xa2d95))(local_28)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d95))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0xa2d95)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0xa2d95)" (* "*") (cast_expression "(code **)(unaff_EDI + 0xa2d95)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0xa2d95)" (( "(") (binary_expression "unaff_EDI + 0xa2d95" (identifier "unaff_EDI") (+ "+") (number_literal "0xa2d95")) () ")"))))) () ")")) (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (*(int *)(unaff_EDI + 0xa446d) == 0) {\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }\n    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" (if "if") (parenthesized_expression "(*(int *)(unaff_EDI + 0xa446d) == 0)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0xa446d) == 0" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" (* "*") (cast_expression "(int *)(unaff_EDI + 0xa446d)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xa446d)" (( "(") (binary_expression "unaff_EDI + 0xa446d" (identifier "unaff_EDI") (+ "+") (number_literal "0xa446d")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0011872d:\n      iVar1 = FUN_00067fc0();\n      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }\n    }" ({ "{") (labeled_statement "LAB_0011872d:\n      iVar1 = FUN_00067fc0();" (statement_identifier "LAB_0011872d") (: ":") (expression_statement "iVar1 = FUN_00067fc0();" (assignment_expression "iVar1 = FUN_00067fc0()" (identifier "iVar1") (= "=") (call_expression "FUN_00067fc0()" (identifier "FUN_00067fc0") (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }\n      else {\n        iVar1 = 7;\n      }" (if "if") (parenthesized_expression "((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0))" (( "(") (binary_expression "(iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00055930(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00055930(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00055930()" (identifier "iVar1") (= "=") (call_expression "FUN_00055930()" (identifier "FUN_00055930") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        iVar2 = *(int *)(unaff_EDI + 0xa446d);\n        *(int *)(unaff_EDI + 0xa4471) = iVar1;\n        *(int *)(iVar1 + iVar2 * 4) = param_1;\n        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;\n        iVar1 = 0;\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(unaff_EDI + 0xa446d);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0xa446d)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" (* "*") (cast_expression "(int *)(unaff_EDI + 0xa446d)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xa446d)" (( "(") (binary_expression "unaff_EDI + 0xa446d" (identifier "unaff_EDI") (+ "+") (number_literal "0xa446d")) () ")"))))) (; ";")) (expression_statement "*(int *)(unaff_EDI + 0xa4471) = iVar1;" (assignment_expression "*(int *)(unaff_EDI + 0xa4471) = iVar1" (pointer_expression "*(int *)(unaff_EDI + 0xa4471)" (* "*") (cast_expression "(int *)(unaff_EDI + 0xa4471)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xa4471)" (( "(") (binary_expression "unaff_EDI + 0xa4471" (identifier "unaff_EDI") (+ "+") (number_literal "0xa4471")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(iVar1 + iVar2 * 4) = param_1;" (assignment_expression "*(int *)(iVar1 + iVar2 * 4) = param_1" (pointer_expression "*(int *)(iVar1 + iVar2 * 4)" (* "*") (cast_expression "(int *)(iVar1 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar2 * 4)" (( "(") (binary_expression "iVar1 + iVar2 * 4" (identifier "iVar1") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;" (assignment_expression "*(int *)(unaff_EDI + 0xa446d) = iVar2 + 1" (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" (* "*") (cast_expression "(int *)(unaff_EDI + 0xa446d)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xa446d)" (( "(") (binary_expression "unaff_EDI + 0xa446d" (identifier "unaff_EDI") (+ "+") (number_literal "0xa446d")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        iVar1 = 7;\n      }" (else "else") (compound_statement "{\n        iVar1 = 7;\n      }" ({ "{") (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" (identifier "iVar1") (= "=") (number_literal "7")) (; ";")) (} "}")))) (} "}")) (else_clause "else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" (else "else") (if_statement "if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" (if "if") (parenthesized_expression "(param_1 != **(int **)(unaff_EDI + 0xa4471))" (( "(") (binary_expression "param_1 != **(int **)(unaff_EDI + 0xa4471)" (identifier "param_1") (!= "!=") (pointer_expression "**(int **)(unaff_EDI + 0xa4471)" (* "*") (pointer_expression "*(int **)(unaff_EDI + 0xa4471)" (* "*") (cast_expression "(int **)(unaff_EDI + 0xa4471)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0xa4471)" (( "(") (binary_expression "unaff_EDI + 0xa4471" (identifier "unaff_EDI") (+ "+") (number_literal "0xa4471")) () ")")))))) () ")")) (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);" (do "do") (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;\n      }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;" (if "if") (parenthesized_expression "(iVar2 == *(int *)(unaff_EDI + 0xa446d))" (( "(") (binary_expression "iVar2 == *(int *)(unaff_EDI + 0xa446d)" (identifier "iVar2") (== "==") (pointer_expression "*(int *)(unaff_EDI + 0xa446d)" (* "*") (cast_expression "(int *)(unaff_EDI + 0xa446d)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xa446d)" (( "(") (binary_expression "unaff_EDI + 0xa446d" (identifier "unaff_EDI") (+ "+") (number_literal "0xa446d")) () ")"))))) () ")")) (goto_statement "goto LAB_0011872d;" (goto "goto") (statement_identifier "LAB_0011872d") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2])" (( "(") (binary_expression "param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]" (identifier "param_1") (!= "!=") (subscript_expression "(*(int **)(unaff_EDI + 0xa4471))[iVar2]" (parenthesized_expression "(*(int **)(unaff_EDI + 0xa4471))" (( "(") (pointer_expression "*(int **)(unaff_EDI + 0xa4471)" (* "*") (cast_expression "(int **)(unaff_EDI + 0xa4471)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0xa4471)" (( "(") (binary_expression "unaff_EDI + 0xa4471" (identifier "unaff_EDI") (+ "+") (number_literal "0xa4471")) () ")")))) () ")")) ([ "[") (identifier "iVar2") (] "]"))) () ")")) (; ";")) (} "}"))))) (if_statement "if (local_28 != 0) {\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }" (if "if") (parenthesized_expression "(local_28 != 0)" (( "(") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);\n    }" ({ "{") (expression_statement "(**(code **)(unaff_EDI + 0xa2d9d))(local_28);" (call_expression "(**(code **)(unaff_EDI + 0xa2d9d))(local_28)" (parenthesized_expression "(**(code **)(unaff_EDI + 0xa2d9d))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0xa2d9d)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0xa2d9d)" (* "*") (cast_expression "(code **)(unaff_EDI + 0xa2d9d)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0xa2d9d)" (( "(") (binary_expression "unaff_EDI + 0xa2d9d" (identifier "unaff_EDI") (+ "+") (number_literal "0xa2d9d")) () ")"))))) () ")")) (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *var_9)

{
  int *pOld;
  int var_3;
  int var_5;
  int var_10;
  void *var_8;
  int var_4;
  type_2 in_stack_ffffffd4;
  
  var_1();
  var_3 = var_2();
  if (var_3 == 0) {
    if (*(int *)(var_4 + 0xa2d3d) == 0) {
      var_5 = 0;
    }
    else {
      var_5 = (**(type_3 **)(var_4 + 0xa2d8d))(2);
      if (var_5 != 0) {
        (**(type_3 **)(var_4 + 0xa2d95))(var_5);
      }
    }
    pOld = *(int **)(var_4 + 0xa4471);
    if (*(int *)(var_4 + 0xa446d) == 0) {
LAB_0011872d:
      var_3 = var_2();
      if ((var_3 == 0) &&
         (var_8 = var_6(pOld,var_7(var_5,in_stack_ffffffd4)), var_8 != (void *)0x0)) {
        var_3 = *(int *)(var_4 + 0xa446d);
        *(void **)(var_4 + 0xa4471) = var_8;
        *(type_1 **)((int)var_8 + var_3 * 4) = var_9;
        *(int *)(var_4 + 0xa446d) = var_3 + 1;
        var_3 = 0;
      }
      else {
        var_3 = 7;
      }
    }
    else if (var_9 != (type_1 *)*pOld) {
      var_10 = 0;
      do {
        var_10 = var_10 + 1;
        if (var_10 == *(int *)(var_4 + 0xa446d)) goto LAB_0011872d;
      } while (var_9 != (type_1 *)pOld[var_10]);
    }
    if (var_5 != 0) {
      (**(type_3 **)(var_4 + 0xa2d9d))(var_5);
    }
  }
  return var_3;
}


(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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))))))) (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: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (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))))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_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: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) index: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int unaff_EDI;
  int local_28;
  
  FUN_0003a401();
  iVar1 = FUN_00067fc0();
  if (iVar1 == 0) {
    if (*(int *)(unaff_EDI + 0xa2d3d) == 0) {
      local_28 = 0;
    }
    else {
      local_28 = (**(code **)(unaff_EDI + 0xa2d8d))(2);
      if (local_28 != 0) {
        (**(code **)(unaff_EDI + 0xa2d95))(local_28);
      }
    }
    if (*(int *)(unaff_EDI + 0xa446d) == 0) {
LAB_0011872d:
      iVar1 = FUN_00067fc0();
      if ((iVar1 == 0) && (iVar1 = FUN_00055930(), iVar1 != 0)) {
        iVar2 = *(int *)(unaff_EDI + 0xa446d);
        *(int *)(unaff_EDI + 0xa4471) = iVar1;
        *(int *)(iVar1 + iVar2 * 4) = param_1;
        *(int *)(unaff_EDI + 0xa446d) = iVar2 + 1;
        iVar1 = 0;
      }
      else {
        iVar1 = 7;
      }
    }
    else if (param_1 != **(int **)(unaff_EDI + 0xa4471)) {
      iVar2 = 0;
      do {
        iVar2 = iVar2 + 1;
        if (iVar2 == *(int *)(unaff_EDI + 0xa446d)) goto LAB_0011872d;
      } while (param_1 != (*(int **)(unaff_EDI + 0xa4471))[iVar2]);
    }
    if (local_28 != 0) {
      (**(code **)(unaff_EDI + 0xa2d9d))(local_28);
    }
  }
  return iVar1;
}

