
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: ld_plugin_status get_input_file(Plugin_manager * this, uint handle,
   ld_plugin_input_file * file) */

ld_plugin_status __thiscall
gold::Plugin_manager::get_input_file(Plugin_manager *this,uint handle,ld_plugin_input_file *file)

{
  pointer ppOVar1;
  Object *pOVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  code *pcVar6;
  int iVar7;
  
  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.
            _M_impl._M_start;
  if ((uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>
                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= handle) {
                    /* WARNING: Does not return */
    pcVar6 = (code *)invalidInstructionException();
    (*pcVar6)();
  }
  pOVar2 = ppOVar1[handle];
  iVar7 = (*pOVar2->_vptr_Object[5])(pOVar2);
  if (iVar7 == 0) {
    return LDPS_BAD_HANDLE;
  }
  if (*(int *)(iVar7 + 0x1c) != 0) {
    File_read::lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);
    iVar3 = *(int *)(iVar7 + 0x1c);
    if (iVar3 != 0) {
      file->name = *(char **)(iVar3 + 0x1c);
      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));
      uVar4 = *(undefined4 *)(iVar7 + 0x24);
      file->fd = *(int *)(iVar3 + 0x34);
      uVar5 = *(undefined4 *)(iVar7 + 0x20);
      *(undefined4 *)((int)&file->offset + 4) = uVar4;
      uVar4 = *(undefined4 *)(iVar7 + 0x50);
      *(undefined4 *)&file->offset = uVar5;
      uVar5 = *(undefined4 *)(iVar7 + 0x4c);
      *(undefined4 *)((int)&file->filesize + 4) = uVar4;
      *(undefined4 *)&file->filesize = uVar5;
      file->handle = (void *)handle;
      return LDPS_OK;
    }
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/object.h",0x1ea,"input_file");
}



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

undefined4 FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  code *pcVar5;
  int iVar6;
  
  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {
                    /* WARNING: Does not return */
    pcVar5 = (code *)invalidInstructionException();
    (*pcVar5)();
  }
  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);
  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);
  if (iVar6 == 0) {
    return 2;
  }
  if (*(int *)(iVar6 + 0x1c) != 0) {
    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));
    iVar2 = *(int *)(iVar6 + 0x1c);
    if (iVar2 != 0) {
      *param_3 = *(undefined4 *)(iVar2 + 0x1c);
      FUN_0005bce0(iVar2 + 0x1c);
      uVar3 = *(undefined4 *)(iVar6 + 0x24);
      param_3[1] = *(undefined4 *)(iVar2 + 0x34);
      uVar4 = *(undefined4 *)(iVar6 + 0x20);
      param_3[3] = uVar3;
      uVar3 = *(undefined4 *)(iVar6 + 0x50);
      param_3[2] = uVar4;
      uVar4 = *(undefined4 *)(iVar6 + 0x4c);
      param_3[5] = uVar3;
      param_3[4] = uVar4;
      param_3[6] = param_2;
      return 0;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x2120f7
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x28]
MOV ECX,dword ptr [EDI + 0x10]
MOV EAX,dword ptr [EDI + 0x14]
SUB EAX,ECX
SAR EAX,0x2
CMP dword ptr [ESP + 0x24],EAX
JNC 0x0002c8d8
MOV EAX,dword ptr [ESP + 0x24]
SUB ESP,0xc
MOV EAX,dword ptr [ECX + EAX*0x4]
MOV ECX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [ECX + 0x14]
MOV EBP,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000effd0
MOV EAX,dword ptr [EAX + 0x1c]
MOV EDX,dword ptr [EDI + 0x6c]
TEST EAX,EAX
JZ 0x000effb0
SUB ESP,0x8
ADD EAX,0x1c
PUSH EDX
PUSH EAX
CALL 0x0005bd50
MOV EDI,dword ptr [EBP + 0x1c]
ADD ESP,0x10
TEST EDI,EDI
JZ 0x000effb0
MOV EDX,dword ptr [EDI + 0x1c]
SUB ESP,0xc
MOV dword ptr [ESI],EDX
LEA EDX,[EDI + 0x1c]
PUSH EDX
CALL 0x0005bce0
MOV EAX,dword ptr [EDI + 0x34]
MOV EDX,dword ptr [EBP + 0x24]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EBP + 0x20]
MOV dword ptr [ESI + 0xc],EDX
MOV EDX,dword ptr [EBP + 0x50]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBP + 0x4c]
MOV dword ptr [ESI + 0x14],EDX
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x10
MOV dword ptr [ESI + 0x18],EAX
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfff2a950]
PUSH EAX
LEA EAX,[EBX + 0xfff1801a]
PUSH 0x1ea
PUSH EAX
CALL 0x0005f0b0
MOV EAX,0x2
JMP 0x000effa8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    /* WARNING: Does not return */\n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}\n\n" comment (function_definition "undefined4 FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    /* WARNING: Does not return */\n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}" type_identifier (function_declarator "FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,uint param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    /* WARNING: Does not return */\n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    /* WARNING: Does not return */\n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2)" ( (binary_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2" (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" ( (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) >> number_literal) ))) <= identifier) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }" { comment (expression_statement "pcVar5 = (code *)invalidInstructionException();" (assignment_expression "pcVar5 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar5)();" (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" ( (pointer_expression "**(code **)(*piVar1 + 0x14)" * (pointer_expression "*(code **)(*piVar1 + 0x14)" * (cast_expression "(code **)(*piVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x14)" ( (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar6 == 0) {\n    return 2;\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return 2;\n  }" { (return_statement "return 2;" return number_literal ;) })) (if_statement "if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar6 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x1c) != 0" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }" { (expression_statement "FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));" (call_expression "FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" identifier (argument_list "(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" ( (binary_expression "*(int *)(iVar6 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = *(int *)(iVar6 + 0x1c);" (assignment_expression "iVar2 = *(int *)(iVar6 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }" { (expression_statement "*param_3 = *(undefined4 *)(iVar2 + 0x1c);" (assignment_expression "*param_3 = *(undefined4 *)(iVar2 + 0x1c)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005bce0(iVar2 + 0x1c);" (call_expression "FUN_0005bce0(iVar2 + 0x1c)" identifier (argument_list "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) ))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar6 + 0x24);" (assignment_expression "uVar3 = *(undefined4 *)(iVar6 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x24)" * (cast_expression "(undefined4 *)(iVar6 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x24)" ( (binary_expression "iVar6 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "param_3[1] = *(undefined4 *)(iVar2 + 0x34);" (assignment_expression "param_3[1] = *(undefined4 *)(iVar2 + 0x34)" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar2 + 0x34)" * (cast_expression "(undefined4 *)(iVar2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar6 + 0x20);" (assignment_expression "uVar4 = *(undefined4 *)(iVar6 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x20)" * (cast_expression "(undefined4 *)(iVar6 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x20)" ( (binary_expression "iVar6 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "param_3[3] = uVar3;" (assignment_expression "param_3[3] = uVar3" (subscript_expression "param_3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar6 + 0x50);" (assignment_expression "uVar3 = *(undefined4 *)(iVar6 + 0x50)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x50)" * (cast_expression "(undefined4 *)(iVar6 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x50)" ( (binary_expression "iVar6 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "param_3[2] = uVar4;" (assignment_expression "param_3[2] = uVar4" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar6 + 0x4c);" (assignment_expression "uVar4 = *(undefined4 *)(iVar6 + 0x4c)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x4c)" * (cast_expression "(undefined4 *)(iVar6 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x4c)" ( (binary_expression "iVar6 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "param_3[5] = uVar3;" (assignment_expression "param_3[5] = uVar3" (subscript_expression "param_3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[4] = uVar4;" (assignment_expression "param_3[4] = uVar4" (subscript_expression "param_3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[6] = param_2;" (assignment_expression "param_3[6] = param_2" (subscript_expression "param_3[6]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) })) comment (expression_statement "FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");" (call_expression "FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file")" identifier (argument_list "("../../gold/object.h",0x1ea,"input_file")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""input_file"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: ld_plugin_status get_input_file(Plugin_manager * this, uint handle,\n   ld_plugin_input_file * file) */\n\nld_plugin_status __thiscall\ngold::Plugin_manager::get_input_file(Plugin_manager *this,uint handle,ld_plugin_input_file *file)\n\n{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int iVar7;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= handle) {\n                    /* WARNING: Does not return */\n    pcVar6 = (code *)invalidInstructionException();\n    (*pcVar6)();\n  }\n  pOVar2 = ppOVar1[handle];\n  iVar7 = (*pOVar2->_vptr_Object[5])(pOVar2);\n  if (iVar7 == 0) {\n    return LDPS_BAD_HANDLE;\n  }\n  if (*(int *)(iVar7 + 0x1c) != 0) {\n    File_read::lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);\n    iVar3 = *(int *)(iVar7 + 0x1c);\n    if (iVar3 != 0) {\n      file->name = *(char **)(iVar3 + 0x1c);\n      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));\n      uVar4 = *(undefined4 *)(iVar7 + 0x24);\n      file->fd = *(int *)(iVar3 + 0x34);\n      uVar5 = *(undefined4 *)(iVar7 + 0x20);\n      *(undefined4 *)((int)&file->offset + 4) = uVar4;\n      uVar4 = *(undefined4 *)(iVar7 + 0x50);\n      *(undefined4 *)&file->offset = uVar5;\n      uVar5 = *(undefined4 *)(iVar7 + 0x4c);\n      *(undefined4 *)((int)&file->filesize + 4) = uVar4;\n      *(undefined4 *)&file->filesize = uVar5;\n      file->handle = (void *)handle;\n      return LDPS_OK;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/object.h",0x1ea,"input_file");\n}\n\n" comment comment comment (function_definition "ld_plugin_status __thiscall\ngold::Plugin_manager::get_input_file(Plugin_manager *this,uint handle,ld_plugin_input_file *file)\n\n{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int iVar7;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= handle) {\n                    /* WARNING: Does not return */\n    pcVar6 = (code *)invalidInstructionException();\n    (*pcVar6)();\n  }\n  pOVar2 = ppOVar1[handle];\n  iVar7 = (*pOVar2->_vptr_Object[5])(pOVar2);\n  if (iVar7 == 0) {\n    return LDPS_BAD_HANDLE;\n  }\n  if (*(int *)(iVar7 + 0x1c) != 0) {\n    File_read::lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);\n    iVar3 = *(int *)(iVar7 + 0x1c);\n    if (iVar3 != 0) {\n      file->name = *(char **)(iVar3 + 0x1c);\n      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));\n      uVar4 = *(undefined4 *)(iVar7 + 0x24);\n      file->fd = *(int *)(iVar3 + 0x34);\n      uVar5 = *(undefined4 *)(iVar7 + 0x20);\n      *(undefined4 *)((int)&file->offset + 4) = uVar4;\n      uVar4 = *(undefined4 *)(iVar7 + 0x50);\n      *(undefined4 *)&file->offset = uVar5;\n      uVar5 = *(undefined4 *)(iVar7 + 0x4c);\n      *(undefined4 *)((int)&file->filesize + 4) = uVar4;\n      *(undefined4 *)&file->filesize = uVar5;\n      file->handle = (void *)handle;\n      return LDPS_OK;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/object.h",0x1ea,"input_file");\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Plugin_manager::" identifier : : identifier : :) (function_declarator "get_input_file(Plugin_manager *this,uint handle,ld_plugin_input_file *file)" identifier (parameter_list "(Plugin_manager *this,uint handle,ld_plugin_input_file *file)" ( (parameter_declaration "Plugin_manager *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint handle" type_identifier identifier) , (parameter_declaration "ld_plugin_input_file *file" type_identifier (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  int iVar7;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= handle) {\n                    /* WARNING: Does not return */\n    pcVar6 = (code *)invalidInstructionException();\n    (*pcVar6)();\n  }\n  pOVar2 = ppOVar1[handle];\n  iVar7 = (*pOVar2->_vptr_Object[5])(pOVar2);\n  if (iVar7 == 0) {\n    return LDPS_BAD_HANDLE;\n  }\n  if (*(int *)(iVar7 + 0x1c) != 0) {\n    File_read::lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);\n    iVar3 = *(int *)(iVar7 + 0x1c);\n    if (iVar3 != 0) {\n      file->name = *(char **)(iVar3 + 0x1c);\n      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));\n      uVar4 = *(undefined4 *)(iVar7 + 0x24);\n      file->fd = *(int *)(iVar3 + 0x34);\n      uVar5 = *(undefined4 *)(iVar7 + 0x20);\n      *(undefined4 *)((int)&file->offset + 4) = uVar4;\n      uVar4 = *(undefined4 *)(iVar7 + 0x50);\n      *(undefined4 *)&file->offset = uVar5;\n      uVar5 = *(undefined4 *)(iVar7 + 0x4c);\n      *(undefined4 *)((int)&file->filesize + 4) = uVar4;\n      *(undefined4 *)&file->filesize = uVar5;\n      file->handle = (void *)handle;\n      return LDPS_OK;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/object.h",0x1ea,"input_file");\n}" { (declaration "pointer ppOVar1;" type_identifier identifier ;) (declaration "Object *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start" (field_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std" (assignment_expression "ppOVar1 = (this->objects_).super__Vector_base<gold" identifier = (binary_expression "(this->objects_).super__Vector_base<gold" (field_expression "(this->objects_).super__Vector_base" (parenthesized_expression "(this->objects_)" ( (field_expression "this->objects_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if ((uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= handle) {\n                    /* WARNING: Does not return */\n    pcVar6 = (code *)invalidInstructionException();\n    (*pcVar6)();\n  }" if (parenthesized_expression "((uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= handle)" ( (binary_expression "(uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= handle" (call_expression "(uint)((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2)" ( (binary_expression "(int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1 >> 2" (binary_expression "(int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish - (int)ppOVar1" (field_expression "(int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl._M_finish" (field_expression "(int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>\n                  ._M_impl" (binary_expression "(int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "(int)(this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "(int)(this->objects_).super__Vector_base<gold::Object*,_std" (binary_expression "(int)(this->objects_).super__Vector_base<gold" (cast_expression "(int)(this->objects_).super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->objects_).super__Vector_base" (parenthesized_expression "(this->objects_)" ( (field_expression "this->objects_" identifier -> field_identifier) )) . field_identifier)) < identifier) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(int)ppOVar1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) ))) <= identifier) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar6 = (code *)invalidInstructionException();\n    (*pcVar6)();\n  }" { comment (expression_statement "pcVar6 = (code *)invalidInstructionException();" (assignment_expression "pcVar6 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "pOVar2 = ppOVar1[handle];" (assignment_expression "pOVar2 = ppOVar1[handle]" identifier = (subscript_expression "ppOVar1[handle]" identifier [ identifier ])) ;) (expression_statement "iVar7 = (*pOVar2->_vptr_Object[5])(pOVar2);" (assignment_expression "iVar7 = (*pOVar2->_vptr_Object[5])(pOVar2)" identifier = (call_expression "(*pOVar2->_vptr_Object[5])(pOVar2)" (parenthesized_expression "(*pOVar2->_vptr_Object[5])" ( (pointer_expression "*pOVar2->_vptr_Object[5]" * (subscript_expression "pOVar2->_vptr_Object[5]" (field_expression "pOVar2->_vptr_Object" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pOVar2)" ( identifier )))) ;) (if_statement "if (iVar7 == 0) {\n    return LDPS_BAD_HANDLE;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    return LDPS_BAD_HANDLE;\n  }" { (return_statement "return LDPS_BAD_HANDLE;" return identifier ;) })) (if_statement "if (*(int *)(iVar7 + 0x1c) != 0) {\n    File_read::lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);\n    iVar3 = *(int *)(iVar7 + 0x1c);\n    if (iVar3 != 0) {\n      file->name = *(char **)(iVar3 + 0x1c);\n      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));\n      uVar4 = *(undefined4 *)(iVar7 + 0x24);\n      file->fd = *(int *)(iVar3 + 0x34);\n      uVar5 = *(undefined4 *)(iVar7 + 0x20);\n      *(undefined4 *)((int)&file->offset + 4) = uVar4;\n      uVar4 = *(undefined4 *)(iVar7 + 0x50);\n      *(undefined4 *)&file->offset = uVar5;\n      uVar5 = *(undefined4 *)(iVar7 + 0x4c);\n      *(undefined4 *)((int)&file->filesize + 4) = uVar4;\n      *(undefined4 *)&file->filesize = uVar5;\n      file->handle = (void *)handle;\n      return LDPS_OK;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar7 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar7 + 0x1c) != 0" (pointer_expression "*(int *)(iVar7 + 0x1c)" * (cast_expression "(int *)(iVar7 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    File_read::lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);\n    iVar3 = *(int *)(iVar7 + 0x1c);\n    if (iVar3 != 0) {\n      file->name = *(char **)(iVar3 + 0x1c);\n      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));\n      uVar4 = *(undefined4 *)(iVar7 + 0x24);\n      file->fd = *(int *)(iVar3 + 0x34);\n      uVar5 = *(undefined4 *)(iVar7 + 0x20);\n      *(undefined4 *)((int)&file->offset + 4) = uVar4;\n      uVar4 = *(undefined4 *)(iVar7 + 0x50);\n      *(undefined4 *)&file->offset = uVar5;\n      uVar5 = *(undefined4 *)(iVar7 + 0x4c);\n      *(undefined4 *)((int)&file->filesize + 4) = uVar4;\n      *(undefined4 *)&file->filesize = uVar5;\n      file->handle = (void *)handle;\n      return LDPS_OK;\n    }\n  }" { (labeled_statement "File_read::lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);" statement_identifier : (ERROR ":" :) (expression_statement "lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_);" (call_expression "lock((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_)" identifier (argument_list "((File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c),this->task_)" ( (cast_expression "(File_read *)(*(int *)(iVar7 + 0x1c) + 0x1c)" ( (type_descriptor "File_read *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x1c) + 0x1c)" ( (binary_expression "*(int *)(iVar7 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar7 + 0x1c)" * (cast_expression "(int *)(iVar7 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) + number_literal) ))) , (field_expression "this->task_" identifier -> field_identifier) ))) ;)) (expression_statement "iVar3 = *(int *)(iVar7 + 0x1c);" (assignment_expression "iVar3 = *(int *)(iVar7 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar7 + 0x1c)" * (cast_expression "(int *)(iVar7 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n      file->name = *(char **)(iVar3 + 0x1c);\n      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));\n      uVar4 = *(undefined4 *)(iVar7 + 0x24);\n      file->fd = *(int *)(iVar3 + 0x34);\n      uVar5 = *(undefined4 *)(iVar7 + 0x20);\n      *(undefined4 *)((int)&file->offset + 4) = uVar4;\n      uVar4 = *(undefined4 *)(iVar7 + 0x50);\n      *(undefined4 *)&file->offset = uVar5;\n      uVar5 = *(undefined4 *)(iVar7 + 0x4c);\n      *(undefined4 *)((int)&file->filesize + 4) = uVar4;\n      *(undefined4 *)&file->filesize = uVar5;\n      file->handle = (void *)handle;\n      return LDPS_OK;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      file->name = *(char **)(iVar3 + 0x1c);\n      File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));\n      uVar4 = *(undefined4 *)(iVar7 + 0x24);\n      file->fd = *(int *)(iVar3 + 0x34);\n      uVar5 = *(undefined4 *)(iVar7 + 0x20);\n      *(undefined4 *)((int)&file->offset + 4) = uVar4;\n      uVar4 = *(undefined4 *)(iVar7 + 0x50);\n      *(undefined4 *)&file->offset = uVar5;\n      uVar5 = *(undefined4 *)(iVar7 + 0x4c);\n      *(undefined4 *)((int)&file->filesize + 4) = uVar4;\n      *(undefined4 *)&file->filesize = uVar5;\n      file->handle = (void *)handle;\n      return LDPS_OK;\n    }" { (expression_statement "file->name = *(char **)(iVar3 + 0x1c);" (assignment_expression "file->name = *(char **)(iVar3 + 0x1c)" (field_expression "file->name" identifier -> field_identifier) = (pointer_expression "*(char **)(iVar3 + 0x1c)" * (cast_expression "(char **)(iVar3 + 0x1c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) (labeled_statement "File_read::reopen_descriptor((File_read *)(iVar3 + 0x1c));" statement_identifier : (ERROR ":" :) (expression_statement "reopen_descriptor((File_read *)(iVar3 + 0x1c));" (call_expression "reopen_descriptor((File_read *)(iVar3 + 0x1c))" identifier (argument_list "((File_read *)(iVar3 + 0x1c))" ( (cast_expression "(File_read *)(iVar3 + 0x1c)" ( (type_descriptor "File_read *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))) ))) ;)) (expression_statement "uVar4 = *(undefined4 *)(iVar7 + 0x24);" (assignment_expression "uVar4 = *(undefined4 *)(iVar7 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x24)" * (cast_expression "(undefined4 *)(iVar7 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "file->fd = *(int *)(iVar3 + 0x34);" (assignment_expression "file->fd = *(int *)(iVar3 + 0x34)" (field_expression "file->fd" identifier -> field_identifier) = (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar7 + 0x20);" (assignment_expression "uVar5 = *(undefined4 *)(iVar7 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x20)" * (cast_expression "(undefined4 *)(iVar7 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x20)" ( (binary_expression "iVar7 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)&file->offset + 4) = uVar4;" (assignment_expression "*(undefined4 *)((int)&file->offset + 4) = uVar4" (pointer_expression "*(undefined4 *)((int)&file->offset + 4)" * (cast_expression "(undefined4 *)((int)&file->offset + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&file->offset + 4)" ( (binary_expression "(int)&file->offset + 4" (cast_expression "(int)&file->offset" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&file->offset" & (field_expression "file->offset" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar7 + 0x50);" (assignment_expression "uVar4 = *(undefined4 *)(iVar7 + 0x50)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x50)" * (cast_expression "(undefined4 *)(iVar7 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x50)" ( (binary_expression "iVar7 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)&file->offset = uVar5;" (assignment_expression "*(undefined4 *)&file->offset = uVar5" (pointer_expression "*(undefined4 *)&file->offset" * (cast_expression "(undefined4 *)&file->offset" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file->offset" & (field_expression "file->offset" identifier -> field_identifier)))) = identifier) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar7 + 0x4c);" (assignment_expression "uVar5 = *(undefined4 *)(iVar7 + 0x4c)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x4c)" * (cast_expression "(undefined4 *)(iVar7 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4c)" ( (binary_expression "iVar7 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)&file->filesize + 4) = uVar4;" (assignment_expression "*(undefined4 *)((int)&file->filesize + 4) = uVar4" (pointer_expression "*(undefined4 *)((int)&file->filesize + 4)" * (cast_expression "(undefined4 *)((int)&file->filesize + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&file->filesize + 4)" ( (binary_expression "(int)&file->filesize + 4" (cast_expression "(int)&file->filesize" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&file->filesize" & (field_expression "file->filesize" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)&file->filesize = uVar5;" (assignment_expression "*(undefined4 *)&file->filesize = uVar5" (pointer_expression "*(undefined4 *)&file->filesize" * (cast_expression "(undefined4 *)&file->filesize" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file->filesize" & (field_expression "file->filesize" identifier -> field_identifier)))) = identifier) ;) (expression_statement "file->handle = (void *)handle;" (assignment_expression "file->handle = (void *)handle" (field_expression "file->handle" identifier -> field_identifier) = (cast_expression "(void *)handle" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return LDPS_OK;" return identifier ;) })) })) comment (expression_statement "do_gold_unreachable("../../gold/object.h",0x1ea,"input_file");" (call_expression "do_gold_unreachable("../../gold/object.h",0x1ea,"input_file")" identifier (argument_list "("../../gold/object.h",0x1ea,"input_file")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""input_file"" " string_content ") ))) ;) })))
(translation_unit "undefined4 FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}\n\n" (function_definition "undefined4 FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}" type_identifier (function_declarator "FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,uint param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2)" ( (binary_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2" (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" ( (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) >> number_literal) ))) <= identifier) )) (compound_statement "{\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }" { (expression_statement "pcVar5 = (code *)invalidInstructionException();" (assignment_expression "pcVar5 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar5)();" (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" ( (pointer_expression "**(code **)(*piVar1 + 0x14)" * (pointer_expression "*(code **)(*piVar1 + 0x14)" * (cast_expression "(code **)(*piVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x14)" ( (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar6 == 0) {\n    return 2;\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return 2;\n  }" { (return_statement "return 2;" return number_literal ;) })) (if_statement "if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar6 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x1c) != 0" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }" { (expression_statement "FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));" (call_expression "FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" identifier (argument_list "(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" ( (binary_expression "*(int *)(iVar6 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = *(int *)(iVar6 + 0x1c);" (assignment_expression "iVar2 = *(int *)(iVar6 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }" { (expression_statement "*param_3 = *(undefined4 *)(iVar2 + 0x1c);" (assignment_expression "*param_3 = *(undefined4 *)(iVar2 + 0x1c)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005bce0(iVar2 + 0x1c);" (call_expression "FUN_0005bce0(iVar2 + 0x1c)" identifier (argument_list "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) ))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar6 + 0x24);" (assignment_expression "uVar3 = *(undefined4 *)(iVar6 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x24)" * (cast_expression "(undefined4 *)(iVar6 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x24)" ( (binary_expression "iVar6 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "param_3[1] = *(undefined4 *)(iVar2 + 0x34);" (assignment_expression "param_3[1] = *(undefined4 *)(iVar2 + 0x34)" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar2 + 0x34)" * (cast_expression "(undefined4 *)(iVar2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar6 + 0x20);" (assignment_expression "uVar4 = *(undefined4 *)(iVar6 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x20)" * (cast_expression "(undefined4 *)(iVar6 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x20)" ( (binary_expression "iVar6 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "param_3[3] = uVar3;" (assignment_expression "param_3[3] = uVar3" (subscript_expression "param_3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar6 + 0x50);" (assignment_expression "uVar3 = *(undefined4 *)(iVar6 + 0x50)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x50)" * (cast_expression "(undefined4 *)(iVar6 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x50)" ( (binary_expression "iVar6 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "param_3[2] = uVar4;" (assignment_expression "param_3[2] = uVar4" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar6 + 0x4c);" (assignment_expression "uVar4 = *(undefined4 *)(iVar6 + 0x4c)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x4c)" * (cast_expression "(undefined4 *)(iVar6 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x4c)" ( (binary_expression "iVar6 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "param_3[5] = uVar3;" (assignment_expression "param_3[5] = uVar3" (subscript_expression "param_3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[4] = uVar4;" (assignment_expression "param_3[4] = uVar4" (subscript_expression "param_3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[6] = param_2;" (assignment_expression "param_3[6] = param_2" (subscript_expression "param_3[6]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");" (call_expression "FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file")" identifier (argument_list "("../../gold/object.h",0x1ea,"input_file")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""input_file"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT) ))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return LIT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}" (type_identifier "undefined4") (function_declarator "FUN_000eff00(int param_1,uint param_2,undefined4 *param_3)" (identifier "FUN_000eff00") (parameter_list "(int param_1,uint param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  code *pcVar5;\n  int iVar6;\n  \n  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }\n  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);\n  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);\n  if (iVar6 == 0) {\n    return 2;\n  }\n  if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (if_statement "if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }" (if "if") (parenthesized_expression "((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2)" (( "(") (binary_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2" (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (- "-") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (>> ">>") (number_literal "2")) () ")"))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n    pcVar5 = (code *)invalidInstructionException();\n    (*pcVar5)();\n  }" ({ "{") (expression_statement "pcVar5 = (code *)invalidInstructionException();" (assignment_expression "pcVar5 = (code *)invalidInstructionException()" (identifier "pcVar5") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar5)();" (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" (( "(") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1)" (identifier "iVar6") (= "=") (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x14)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x14)" (* "*") (cast_expression "(code **)(*piVar1 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x14)" (( "(") (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n    return 2;\n  }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 2;\n  }" ({ "{") (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar6 + 0x1c) != 0) {\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(iVar6 + 0x1c) != 0" (pointer_expression "*(int *)(iVar6 + 0x1c)" (* "*") (cast_expression "(int *)(iVar6 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));\n    iVar2 = *(int *)(iVar6 + 0x1c);\n    if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }\n  }" ({ "{") (expression_statement "FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));" (call_expression "FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" (identifier "FUN_0005bd50") (argument_list "(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c))" (( "(") (binary_expression "*(int *)(iVar6 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar6 + 0x1c)" (* "*") (cast_expression "(int *)(iVar6 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "0x1c")) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar6 + 0x1c);" (assignment_expression "iVar2 = *(int *)(iVar6 + 0x1c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar6 + 0x1c)" (* "*") (cast_expression "(int *)(iVar6 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *param_3 = *(undefined4 *)(iVar2 + 0x1c);\n      FUN_0005bce0(iVar2 + 0x1c);\n      uVar3 = *(undefined4 *)(iVar6 + 0x24);\n      param_3[1] = *(undefined4 *)(iVar2 + 0x34);\n      uVar4 = *(undefined4 *)(iVar6 + 0x20);\n      param_3[3] = uVar3;\n      uVar3 = *(undefined4 *)(iVar6 + 0x50);\n      param_3[2] = uVar4;\n      uVar4 = *(undefined4 *)(iVar6 + 0x4c);\n      param_3[5] = uVar3;\n      param_3[4] = uVar4;\n      param_3[6] = param_2;\n      return 0;\n    }" ({ "{") (expression_statement "*param_3 = *(undefined4 *)(iVar2 + 0x1c);" (assignment_expression "*param_3 = *(undefined4 *)(iVar2 + 0x1c)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "FUN_0005bce0(iVar2 + 0x1c);" (call_expression "FUN_0005bce0(iVar2 + 0x1c)" (identifier "FUN_0005bce0") (argument_list "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")"))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(iVar6 + 0x24);" (assignment_expression "uVar3 = *(undefined4 *)(iVar6 + 0x24)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x24)" (( "(") (binary_expression "iVar6 + 0x24" (identifier "iVar6") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "param_3[1] = *(undefined4 *)(iVar2 + 0x34);" (assignment_expression "param_3[1] = *(undefined4 *)(iVar2 + 0x34)" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(iVar6 + 0x20);" (assignment_expression "uVar4 = *(undefined4 *)(iVar6 + 0x20)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x20)" (( "(") (binary_expression "iVar6 + 0x20" (identifier "iVar6") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "param_3[3] = uVar3;" (assignment_expression "param_3[3] = uVar3" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(iVar6 + 0x50);" (assignment_expression "uVar3 = *(undefined4 *)(iVar6 + 0x50)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x50)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x50)" (( "(") (binary_expression "iVar6 + 0x50" (identifier "iVar6") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (expression_statement "param_3[2] = uVar4;" (assignment_expression "param_3[2] = uVar4" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(iVar6 + 0x4c);" (assignment_expression "uVar4 = *(undefined4 *)(iVar6 + 0x4c)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x4c)" (( "(") (binary_expression "iVar6 + 0x4c" (identifier "iVar6") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (expression_statement "param_3[5] = uVar3;" (assignment_expression "param_3[5] = uVar3" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_3[4] = uVar4;" (assignment_expression "param_3[4] = uVar4" (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "param_3[6] = param_2;" (assignment_expression "param_3[6] = param_2" (subscript_expression "param_3[6]" (identifier "param_3") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");" (call_expression "FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file")" (identifier "FUN_0005f0b0") (argument_list "("../../gold/object.h",0x1ea,"input_file")" (( "(") (string_literal ""../../gold/object.h"" (" """) (string_content "../../gold/object.h") (" """)) (, ",") (number_literal "0x1ea") (, ",") (string_literal ""input_file"" (" """) (string_content "input_file") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: ld_plugin_status get_input_file(Plugin_manager * this, uint handle,
   ld_plugin_input_file * file) */

type_1 __thiscall
var_1::type_2::function_1(type_2 *this,type_3 var_4,type_4 *file)

{
  type_5 ppOVar1;
  type_6 *pOVar2;
  int var_8;
  type_7 uVar4;
  type_7 uVar5;
  type_8 *pcVar6;
  int var_6;
  
  ppOVar1 = (this->objects_).super__Vector_base<var_1::type_6*,var_2::allocator<var_1::type_6*>var_3>.
            _M_impl._M_start;
  if ((type_3)((int)(this->objects_).super__Vector_base<var_1::type_6*,var_2::allocator<var_1::type_6*>var_3>
                  ._M_impl._M_finish - (int)ppOVar1 >> 2) <= var_4) {
                    /* WARNING: Does not return */
    pcVar6 = (type_8 *)var_5();
    (*pcVar6)();
  }
  pOVar2 = ppOVar1[var_4];
  var_6 = (*pOVar2->_vptr_Object[5])(pOVar2);
  if (var_6 == 0) {
    return LDPS_BAD_HANDLE;
  }
  if (*(int *)(var_6 + 0x1c) != 0) {
    File_read::var_7((type_9 *)(*(int *)(var_6 + 0x1c) + 0x1c),this->task_);
    var_8 = *(int *)(var_6 + 0x1c);
    if (var_8 != 0) {
      file->name = *(char **)(var_8 + 0x1c);
      File_read::var_9((type_9 *)(var_8 + 0x1c));
      uVar4 = *(type_7 *)(var_6 + 0x24);
      file->fd = *(int *)(var_8 + 0x34);
      uVar5 = *(type_7 *)(var_6 + 0x20);
      *(type_7 *)((int)&file->offset + 4) = uVar4;
      uVar4 = *(type_7 *)(var_6 + 0x50);
      *(type_7 *)&file->offset = uVar5;
      uVar5 = *(type_7 *)(var_6 + 0x4c);
      *(type_7 *)((int)&file->filesize + 4) = uVar4;
      *(type_7 *)&file->filesize = uVar5;
      file->var_4 = (void *)var_4;
      return LDPS_OK;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_10("../../gold/object.h",0x1ea,"input_file");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (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: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

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

undefined4 MASKED(int param_1,uint param_2,undefined4 *param_3)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  code *pcVar5;
  int iVar6;
  
  if ((uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2) <= param_2) {
                    /* WARNING: Does not return */
    pcVar5 = (code *)invalidInstructionException();
    (*pcVar5)();
  }
  piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4);
  iVar6 = (**(code **)(*piVar1 + 0x14))(piVar1);
  if (iVar6 == 0) {
    return 2;
  }
  if (*(int *)(iVar6 + 0x1c) != 0) {
    FUN_0005bd50(*(int *)(iVar6 + 0x1c) + 0x1c,*(undefined4 *)(param_1 + 0x6c));
    iVar2 = *(int *)(iVar6 + 0x1c);
    if (iVar2 != 0) {
      *param_3 = *(undefined4 *)(iVar2 + 0x1c);
      FUN_0005bce0(iVar2 + 0x1c);
      uVar3 = *(undefined4 *)(iVar6 + 0x24);
      param_3[1] = *(undefined4 *)(iVar2 + 0x34);
      uVar4 = *(undefined4 *)(iVar6 + 0x20);
      param_3[3] = uVar3;
      uVar3 = *(undefined4 *)(iVar6 + 0x50);
      param_3[2] = uVar4;
      uVar4 = *(undefined4 *)(iVar6 + 0x4c);
      param_3[5] = uVar3;
      param_3[4] = uVar4;
      param_3[6] = param_2;
      return 0;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/object.h",0x1ea,"input_file");
}

