
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

uint * find_cu_tu_set(void *file,uint shndx)

{
  int iVar1;
  bfd_boolean bVar2;
  uint *puVar3;
  uint uVar4;
  uint uVar5;
  
  bVar2 = load_cu_tu_indexes(file);
  if ((bVar2 == 0) || (shndx_pool_used == 0)) {
LAB_00062423:
    puVar3 = (uint *)0x0;
  }
  else {
    puVar3 = shndx_pool;
    uVar5 = 0;
    if (shndx != *shndx_pool) {
      do {
        uVar4 = uVar5;
        puVar3 = puVar3 + 1;
        uVar5 = uVar4 + 1;
        if (uVar5 == shndx_pool_used) goto LAB_00062423;
      } while (*puVar3 != shndx);
      if (shndx_pool[uVar4] != 0) {
        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {
          iVar1 = uVar5 - 2;
          uVar5 = uVar4;
          if (shndx_pool[iVar1] == 0) {
            return shndx_pool + uVar4;
          }
        }
      }
    }
  }
  return puVar3;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * FUN_000623d0(undefined4 param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  iVar2 = FUN_00062320();
  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {
LAB_00062423:
    piVar3 = (int *)0x0;
  }
  else {
    piVar3 = DAT_000b9d48;
    iVar2 = 0;
    if (param_2 != *DAT_000b9d48) {
      do {
        iVar4 = iVar2;
        piVar3 = piVar3 + 1;
        iVar2 = iVar4 + 1;
        if (iVar2 == DAT_000b9d40) goto LAB_00062423;
      } while (*piVar3 != param_2);
      if (DAT_000b9d48[iVar4] != 0) {
        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {
          iVar1 = iVar2 + -2;
          iVar2 = iVar4;
          if (DAT_000b9d48[iVar1] == 0) {
            return DAT_000b9d48 + iVar4;
          }
        }
      }
    }
  }
  return piVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x51c27
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x24]
CALL 0x00062320
TEST EAX,EAX
JZ 0x00062423
MOV ESI,dword ptr [EBX + 0x5d40]
TEST ESI,ESI
JZ 0x00062423
MOV EAX,dword ptr [EBX + 0x5d48]
XOR EBX,EBX
LEA ECX,[EAX + 0x4]
CMP EDI,dword ptr [EAX]
JNZ 0x0006241c
JMP 0x00062425
MOV EBP,ECX
ADD ECX,0x4
CMP dword ptr [ECX + -0x4],EDI
JZ 0x00062430
MOV EBX,EDX
LEA EDX,[EBX + 0x1]
CMP EDX,ESI
JNZ 0x00062410
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [EAX + EBX*0x4]
TEST EBX,EBX
JZ 0x00062458
LEA ESI,[ESI]
NOP
SUB EDX,0x1
JZ 0x00062425
MOV ECX,dword ptr [EAX + EDX*0x4 + -0x4]
TEST ECX,ECX
JNZ 0x00062440
ADD ESP,0xc
LEA EAX,[EAX + EDX*0x4]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EBP
JMP 0x00062425
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_000623d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}\n\n" comment (function_definition "int * FUN_000623d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_000623d0(undefined4 param_1,int param_2)" * (function_declarator "FUN_000623d0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00062320();" (assignment_expression "iVar2 = FUN_00062320()" identifier = (call_expression "FUN_00062320()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) || (DAT_000b9d40 == 0))" ( (binary_expression "(iVar2 == 0) || (DAT_000b9d40 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(DAT_000b9d40 == 0)" ( (binary_expression "DAT_000b9d40 == 0" identifier == number_literal) ))) )) (compound_statement "{\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }" { (labeled_statement "LAB_00062423:\n    piVar3 = (int *)0x0;" statement_identifier : (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" else (compound_statement "{\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "piVar3 = DAT_000b9d48;" (assignment_expression "piVar3 = DAT_000b9d48" identifier = identifier) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(param_2 != *DAT_000b9d48)" ( (binary_expression "param_2 != *DAT_000b9d48" identifier != (pointer_expression "*DAT_000b9d48" * identifier)) )) (compound_statement "{\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }" { (do_statement "do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);" do (compound_statement "{\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar4 + 1;" (assignment_expression "iVar2 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == DAT_000b9d40) goto LAB_00062423;" if (parenthesized_expression "(iVar2 == DAT_000b9d40)" ( (binary_expression "iVar2 == DAT_000b9d40" identifier == identifier) )) (goto_statement "goto LAB_00062423;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar3 != param_2)" ( (binary_expression "*piVar3 != param_2" (pointer_expression "*piVar3" * identifier) != identifier) )) ;) (if_statement "if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }" if (parenthesized_expression "(DAT_000b9d48[iVar4] != 0)" ( (binary_expression "DAT_000b9d48[iVar4] != 0" (subscript_expression "DAT_000b9d48[iVar4]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }" { (while_statement "while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }" while (parenthesized_expression "(iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0)" ( (comma_expression "iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) , (comma_expression "piVar3 = DAT_000b9d48, iVar4 != 0" (assignment_expression "piVar3 = DAT_000b9d48" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal))) )) (compound_statement "{\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }" { (expression_statement "iVar1 = iVar2 + -2;" (assignment_expression "iVar1 = iVar2 + -2" identifier = (binary_expression "iVar2 + -2" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (if_statement "if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }" if (parenthesized_expression "(DAT_000b9d48[iVar1] == 0)" ( (binary_expression "DAT_000b9d48[iVar1] == 0" (subscript_expression "DAT_000b9d48[iVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n            return DAT_000b9d48 + iVar4;\n          }" { (return_statement "return DAT_000b9d48 + iVar4;" return (binary_expression "DAT_000b9d48 + iVar4" identifier + identifier) ;) })) })) })) })) }))) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nuint * find_cu_tu_set(void *file,uint shndx)\n\n{\n  int iVar1;\n  bfd_boolean bVar2;\n  uint *puVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  bVar2 = load_cu_tu_indexes(file);\n  if ((bVar2 == 0) || (shndx_pool_used == 0)) {\nLAB_00062423:\n    puVar3 = (uint *)0x0;\n  }\n  else {\n    puVar3 = shndx_pool;\n    uVar5 = 0;\n    if (shndx != *shndx_pool) {\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }\n  }\n  return puVar3;\n}\n\n" comment comment (function_definition "uint * find_cu_tu_set(void *file,uint shndx)\n\n{\n  int iVar1;\n  bfd_boolean bVar2;\n  uint *puVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  bVar2 = load_cu_tu_indexes(file);\n  if ((bVar2 == 0) || (shndx_pool_used == 0)) {\nLAB_00062423:\n    puVar3 = (uint *)0x0;\n  }\n  else {\n    puVar3 = shndx_pool;\n    uVar5 = 0;\n    if (shndx != *shndx_pool) {\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* find_cu_tu_set(void *file,uint shndx)" * (function_declarator "find_cu_tu_set(void *file,uint shndx)" identifier (parameter_list "(void *file,uint shndx)" ( (parameter_declaration "void *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  bfd_boolean bVar2;\n  uint *puVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  bVar2 = load_cu_tu_indexes(file);\n  if ((bVar2 == 0) || (shndx_pool_used == 0)) {\nLAB_00062423:\n    puVar3 = (uint *)0x0;\n  }\n  else {\n    puVar3 = shndx_pool;\n    uVar5 = 0;\n    if (shndx != *shndx_pool) {\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }\n  }\n  return puVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "bVar2 = load_cu_tu_indexes(file);" (assignment_expression "bVar2 = load_cu_tu_indexes(file)" identifier = (call_expression "load_cu_tu_indexes(file)" identifier (argument_list "(file)" ( identifier )))) ;) (if_statement "if ((bVar2 == 0) || (shndx_pool_used == 0)) {\nLAB_00062423:\n    puVar3 = (uint *)0x0;\n  }\n  else {\n    puVar3 = shndx_pool;\n    uVar5 = 0;\n    if (shndx != *shndx_pool) {\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((bVar2 == 0) || (shndx_pool_used == 0))" ( (binary_expression "(bVar2 == 0) || (shndx_pool_used == 0)" (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(shndx_pool_used == 0)" ( (binary_expression "shndx_pool_used == 0" identifier == number_literal) ))) )) (compound_statement "{\nLAB_00062423:\n    puVar3 = (uint *)0x0;\n  }" { (labeled_statement "LAB_00062423:\n    puVar3 = (uint *)0x0;" statement_identifier : (expression_statement "puVar3 = (uint *)0x0;" (assignment_expression "puVar3 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    puVar3 = shndx_pool;\n    uVar5 = 0;\n    if (shndx != *shndx_pool) {\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }\n  }" else (compound_statement "{\n    puVar3 = shndx_pool;\n    uVar5 = 0;\n    if (shndx != *shndx_pool) {\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "puVar3 = shndx_pool;" (assignment_expression "puVar3 = shndx_pool" identifier = identifier) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (shndx != *shndx_pool) {\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(shndx != *shndx_pool)" ( (binary_expression "shndx != *shndx_pool" identifier != (pointer_expression "*shndx_pool" * identifier)) )) (compound_statement "{\n      do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);\n      if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }\n    }" { (do_statement "do {\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      } while (*puVar3 != shndx);" do (compound_statement "{\n        uVar4 = uVar5;\n        puVar3 = puVar3 + 1;\n        uVar5 = uVar4 + 1;\n        if (uVar5 == shndx_pool_used) goto LAB_00062423;\n      }" { (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar5 == shndx_pool_used) goto LAB_00062423;" if (parenthesized_expression "(uVar5 == shndx_pool_used)" ( (binary_expression "uVar5 == shndx_pool_used" identifier == identifier) )) (goto_statement "goto LAB_00062423;" goto statement_identifier ;)) }) while (parenthesized_expression "(*puVar3 != shndx)" ( (binary_expression "*puVar3 != shndx" (pointer_expression "*puVar3" * identifier) != identifier) )) ;) (if_statement "if (shndx_pool[uVar4] != 0) {\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }" if (parenthesized_expression "(shndx_pool[uVar4] != 0)" ( (binary_expression "shndx_pool[uVar4] != 0" (subscript_expression "shndx_pool[uVar4]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n        while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }\n      }" { (while_statement "while (uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0) {\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }" while (parenthesized_expression "(uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0)" ( (comma_expression "uVar4 = uVar5 - 1, puVar3 = shndx_pool, uVar4 != 0" (assignment_expression "uVar4 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) , (comma_expression "puVar3 = shndx_pool, uVar4 != 0" (assignment_expression "puVar3 = shndx_pool" identifier = identifier) , (binary_expression "uVar4 != 0" identifier != number_literal))) )) (compound_statement "{\n          iVar1 = uVar5 - 2;\n          uVar5 = uVar4;\n          if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }\n        }" { (expression_statement "iVar1 = uVar5 - 2;" (assignment_expression "iVar1 = uVar5 - 2" identifier = (binary_expression "uVar5 - 2" identifier - number_literal)) ;) (expression_statement "uVar5 = uVar4;" (assignment_expression "uVar5 = uVar4" identifier = identifier) ;) (if_statement "if (shndx_pool[iVar1] == 0) {\n            return shndx_pool + uVar4;\n          }" if (parenthesized_expression "(shndx_pool[iVar1] == 0)" ( (binary_expression "shndx_pool[iVar1] == 0" (subscript_expression "shndx_pool[iVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n            return shndx_pool + uVar4;\n          }" { (return_statement "return shndx_pool + uVar4;" return (binary_expression "shndx_pool + uVar4" identifier + identifier) ;) })) })) })) })) }))) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "int * FUN_000623d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}\n\n" (function_definition "int * FUN_000623d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_000623d0(undefined4 param_1,int param_2)" * (function_declarator "FUN_000623d0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00062320();" (assignment_expression "iVar2 = FUN_00062320()" identifier = (call_expression "FUN_00062320()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) || (DAT_000b9d40 == 0))" ( (binary_expression "(iVar2 == 0) || (DAT_000b9d40 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(DAT_000b9d40 == 0)" ( (binary_expression "DAT_000b9d40 == 0" identifier == number_literal) ))) )) (compound_statement "{\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }" { (labeled_statement "LAB_00062423:\n    piVar3 = (int *)0x0;" statement_identifier : (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" else (compound_statement "{\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "piVar3 = DAT_000b9d48;" (assignment_expression "piVar3 = DAT_000b9d48" identifier = identifier) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(param_2 != *DAT_000b9d48)" ( (binary_expression "param_2 != *DAT_000b9d48" identifier != (pointer_expression "*DAT_000b9d48" * identifier)) )) (compound_statement "{\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }" { (do_statement "do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);" do (compound_statement "{\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar4 + 1;" (assignment_expression "iVar2 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == DAT_000b9d40) goto LAB_00062423;" if (parenthesized_expression "(iVar2 == DAT_000b9d40)" ( (binary_expression "iVar2 == DAT_000b9d40" identifier == identifier) )) (goto_statement "goto LAB_00062423;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar3 != param_2)" ( (binary_expression "*piVar3 != param_2" (pointer_expression "*piVar3" * identifier) != identifier) )) ;) (if_statement "if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }" if (parenthesized_expression "(DAT_000b9d48[iVar4] != 0)" ( (binary_expression "DAT_000b9d48[iVar4] != 0" (subscript_expression "DAT_000b9d48[iVar4]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }" { (while_statement "while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }" while (parenthesized_expression "(iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0)" ( (comma_expression "iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) , (comma_expression "piVar3 = DAT_000b9d48, iVar4 != 0" (assignment_expression "piVar3 = DAT_000b9d48" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal))) )) (compound_statement "{\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }" { (expression_statement "iVar1 = iVar2 + -2;" (assignment_expression "iVar1 = iVar2 + -2" identifier = (binary_expression "iVar2 + -2" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (if_statement "if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }" if (parenthesized_expression "(DAT_000b9d48[iVar1] == 0)" ( (binary_expression "DAT_000b9d48[iVar1] == 0" (subscript_expression "DAT_000b9d48[iVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n            return DAT_000b9d48 + iVar4;\n          }" { (return_statement "return DAT_000b9d48 + iVar4;" return (binary_expression "DAT_000b9d48 + iVar4" identifier + identifier) ;) })) })) })) })) }))) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == LIT) )) (compound_statement { (return_statement return (binary_expression IDENT + IDENT) ;) })) })) })) })) }))) (return_statement return IDENT ;) })))
(function_definition "int * FUN_000623d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}" (primitive_type "int") (pointer_declarator "* FUN_000623d0(undefined4 param_1,int param_2)" (* "*") (function_declarator "FUN_000623d0(undefined4 param_1,int param_2)" (identifier "FUN_000623d0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar2 = FUN_00062320();\n  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }\n  return piVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar2 = FUN_00062320();" (assignment_expression "iVar2 = FUN_00062320()" (identifier "iVar2") (= "=") (call_expression "FUN_00062320()" (identifier "FUN_00062320") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }\n  else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 == 0) || (DAT_000b9d40 == 0))" (( "(") (binary_expression "(iVar2 == 0) || (DAT_000b9d40 == 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(DAT_000b9d40 == 0)" (( "(") (binary_expression "DAT_000b9d40 == 0" (identifier "DAT_000b9d40") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_00062423:\n    piVar3 = (int *)0x0;\n  }" ({ "{") (labeled_statement "LAB_00062423:\n    piVar3 = (int *)0x0;" (statement_identifier "LAB_00062423") (: ":") (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" (identifier "piVar3") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (} "}")) (else_clause "else {\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" (else "else") (compound_statement "{\n    piVar3 = DAT_000b9d48;\n    iVar2 = 0;\n    if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "piVar3 = DAT_000b9d48;" (assignment_expression "piVar3 = DAT_000b9d48" (identifier "piVar3") (= "=") (identifier "DAT_000b9d48")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 != *DAT_000b9d48) {\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }" (if "if") (parenthesized_expression "(param_2 != *DAT_000b9d48)" (( "(") (binary_expression "param_2 != *DAT_000b9d48" (identifier "param_2") (!= "!=") (pointer_expression "*DAT_000b9d48" (* "*") (identifier "DAT_000b9d48"))) () ")")) (compound_statement "{\n      do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);\n      if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }\n    }" ({ "{") (do_statement "do {\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      } while (*piVar3 != param_2);" (do "do") (compound_statement "{\n        iVar4 = iVar2;\n        piVar3 = piVar3 + 1;\n        iVar2 = iVar4 + 1;\n        if (iVar2 == DAT_000b9d40) goto LAB_00062423;\n      }" ({ "{") (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar4 + 1;" (assignment_expression "iVar2 = iVar4 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == DAT_000b9d40) goto LAB_00062423;" (if "if") (parenthesized_expression "(iVar2 == DAT_000b9d40)" (( "(") (binary_expression "iVar2 == DAT_000b9d40" (identifier "iVar2") (== "==") (identifier "DAT_000b9d40")) () ")")) (goto_statement "goto LAB_00062423;" (goto "goto") (statement_identifier "LAB_00062423") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*piVar3 != param_2)" (( "(") (binary_expression "*piVar3 != param_2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (identifier "param_2")) () ")")) (; ";")) (if_statement "if (DAT_000b9d48[iVar4] != 0) {\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(DAT_000b9d48[iVar4] != 0)" (( "(") (binary_expression "DAT_000b9d48[iVar4] != 0" (subscript_expression "DAT_000b9d48[iVar4]" (identifier "DAT_000b9d48") ([ "[") (identifier "iVar4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }\n      }" ({ "{") (while_statement "while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }" (while "while") (parenthesized_expression "(iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0)" (( "(") (comma_expression "iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0" (assignment_expression "iVar4 = iVar2 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (, ",") (comma_expression "piVar3 = DAT_000b9d48, iVar4 != 0" (assignment_expression "piVar3 = DAT_000b9d48" (identifier "piVar3") (= "=") (identifier "DAT_000b9d48")) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")))) () ")")) (compound_statement "{\n          iVar1 = iVar2 + -2;\n          iVar2 = iVar4;\n          if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }\n        }" ({ "{") (expression_statement "iVar1 = iVar2 + -2;" (assignment_expression "iVar1 = iVar2 + -2" (identifier "iVar1") (= "=") (binary_expression "iVar2 + -2" (identifier "iVar2") (+ "+") (number_literal "-2"))) (; ";")) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (DAT_000b9d48[iVar1] == 0) {\n            return DAT_000b9d48 + iVar4;\n          }" (if "if") (parenthesized_expression "(DAT_000b9d48[iVar1] == 0)" (( "(") (binary_expression "DAT_000b9d48[iVar1] == 0" (subscript_expression "DAT_000b9d48[iVar1]" (identifier "DAT_000b9d48") ([ "[") (identifier "iVar1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return DAT_000b9d48 + iVar4;\n          }" ({ "{") (return_statement "return DAT_000b9d48 + iVar4;" (return "return") (binary_expression "DAT_000b9d48 + iVar4" (identifier "DAT_000b9d48") (+ "+") (identifier "iVar4")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (} "}")))) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(void *file,type_1 var_4)

{
  int iVar1;
  type_2 var_2;
  type_1 *var_5;
  type_1 var_6;
  type_1 var_7;
  
  var_2 = var_1(file);
  if ((var_2 == 0) || (var_3 == 0)) {
LAB_00062423:
    var_5 = (type_1 *)0x0;
  }
  else {
    var_5 = var_8;
    var_7 = 0;
    if (var_4 != *var_8) {
      do {
        var_6 = var_7;
        var_5 = var_5 + 1;
        var_7 = var_6 + 1;
        if (var_7 == var_3) goto LAB_00062423;
      } while (*var_5 != var_4);
      if (var_8[var_6] != 0) {
        while (var_6 = var_7 - 1, var_5 = var_8, var_6 != 0) {
          iVar1 = var_7 - 2;
          var_7 = var_6;
          if (var_8[iVar1] == 0) {
            return var_8 + var_6;
          }
        }
      }
    }
  }
  return var_5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (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 (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (identifier) right: (identifier)))))))))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  iVar2 = FUN_00062320();
  if ((iVar2 == 0) || (DAT_000b9d40 == 0)) {
LAB_00062423:
    piVar3 = (int *)0x0;
  }
  else {
    piVar3 = DAT_000b9d48;
    iVar2 = 0;
    if (param_2 != *DAT_000b9d48) {
      do {
        iVar4 = iVar2;
        piVar3 = piVar3 + 1;
        iVar2 = iVar4 + 1;
        if (iVar2 == DAT_000b9d40) goto LAB_00062423;
      } while (*piVar3 != param_2);
      if (DAT_000b9d48[iVar4] != 0) {
        while (iVar4 = iVar2 + -1, piVar3 = DAT_000b9d48, iVar4 != 0) {
          iVar1 = iVar2 + -2;
          iVar2 = iVar4;
          if (DAT_000b9d48[iVar1] == 0) {
            return DAT_000b9d48 + iVar4;
          }
        }
      }
    }
  }
  return piVar3;
}

