
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write(Vendor_object_attributes * this,
   vector<unsigned_char,_std::allocator<unsigned_char>_> * buffer) */

ssize_t __thiscall
gold::Vendor_object_attributes::write
          (Vendor_object_attributes *this,int __fd,void *__buf,size_t __n)

{
}



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

void FUN_00226180(int *param_1,int param_2)

{
  undefined4 *puVar1;
  size_t sVar2;
  int iVar3;
  int *piVar4;
  char *__s;
  int iVar5;
  
  puVar1 = (undefined4 *)FUN_00225390(param_1);
  FUN_00226cd0(param_2);
  if (*param_1 == 0) {
    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {
      FUN_00225240();
      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);
      iVar5 = FUN_00225390(*puVar1);
      if (iVar5 != 0) {
        FUN_00226180(*puVar1,&__DT_PLTGOT);
      }
      iVar5 = FUN_00225390(puVar1[1]);
      if (iVar5 != 0) {
        FUN_00226180(puVar1[1],&__DT_PLTGOT);
        return;
      }
      return;
    }
    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);
    sVar2 = strlen(__s);
    iVar5 = sVar2 + 1;
  }
  else {
    iVar5 = 4;
    __s = "gnu";
  }
  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);
  FUN_000722e0(param_2);
  iVar5 = 4;
  FUN_00226cd0(param_2);
  do {
    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);
    if (piVar4 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_002446e0("../../gold/parameters.h");
    }
    iVar3 = iVar5;
    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {
      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);
    }
    iVar5 = iVar5 + 1;
    FUN_002256a0(param_1 + iVar3 * 8 + 1);
  } while (iVar5 != 0x47);
  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;
      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {
    FUN_002256a0(piVar4[5]);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x3c3e77
SUB ESP,0x38
MOV ESI,dword ptr [ESP + 0x4c]
MOV EDI,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x14],EBX
PUSH ESI
CALL 0x00225390
MOV dword ptr [ESP + 0x14],EAX
POP ECX
POP EBP
PUSH EAX
PUSH EDI
CALL 0x00226cd0
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x002261f1
LEA EBP,[EBX + 0x7c8]
MOV EAX,dword ptr [EBP]
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x002262f8
MOV EAX,dword ptr [EAX + 0x4]
SUB ESP,0xc
MOV EDX,dword ptr [EAX + 0x54]
PUSH EDX
MOV EBX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x00039330
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
LEA EBX,[EAX + 0x1]
JMP 0x00226206
MOV EAX,dword ptr [ESP + 0x8]
MOV EBX,0x4
LEA EBP,[EAX + 0x7c8]
LEA EDX,[EAX + 0xffe5e035]
SUB ESP,0xc
LEA EAX,[EDX + EBX*0x1]
PUSH 0x0
PUSH EAX
PUSH EDX
PUSH dword ptr [EDI + 0x4]
PUSH EDI
CALL 0x00226690
MOV byte ptr [ESP + 0x3f],0x1
ADD ESP,0x18
LEA EAX,[ESP + 0x27]
PUSH EAX
PUSH EDI
CALL 0x000722e0
POP EAX
POP EDX
MOV EAX,dword ptr [ESP + 0xc]
SUB EAX,0x4
SUB EAX,EBX
MOV EBX,0x4
PUSH EAX
PUSH EDI
CALL 0x00226cd0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
LEA EAX,[EAX + 0xffa86ca0]
MOV dword ptr [ESP + 0x4],EAX
JMP 0x0022627d
SUB ESP,0x4
ADD EBX,0x1
PUSH EDI
PUSH EAX
SHL EAX,0x5
LEA EAX,[ESI + EAX*0x1 + 0x4]
PUSH EAX
CALL 0x002256a0
ADD ESP,0x10
CMP EBX,0x47
JZ 0x002262a0
MOV EAX,dword ptr [EBP]
MOV EDX,dword ptr [EAX + 0xc]
TEST EDX,EDX
JZ 0x002262dc
MOV EAX,dword ptr [EDX]
MOV ECX,dword ptr [EAX + 0x7c]
MOV EAX,EBX
CMP ECX,dword ptr [ESP + 0x4]
JZ 0x00226260
SUB ESP,0x8
PUSH EBX
PUSH EDX
CALL ECX
ADD ESP,0x10
JMP 0x00226260
MOV EBX,dword ptr [ESI + 0x8f0]
ADD ESI,0x8e8
CMP EBX,ESI
JZ 0x002262d4
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [EBX + 0x10]
PUSH dword ptr [EBX + 0x14]
CALL 0x002256a0
MOV dword ptr [ESP],EBX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x003af6b0
ADD ESP,0x10
MOV EBX,EAX
CMP EAX,ESI
JNZ 0x002262b0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0xc]
LEA EAX,[EBX + 0xffe9b9a0]
PUSH EAX
LEA EAX,[EBX + 0xffe5e26d]
PUSH 0x69
PUSH EAX
CALL 0x002446e0
CALL 0x00225240
NOP
NOP
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00226180(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00226180(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00226180(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_00225390(param_1);" (assignment_expression "puVar1 = (undefined4 *)FUN_00225390(param_1)" identifier = (cast_expression "(undefined4 *)FUN_00225390(param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00225390(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "FUN_00226cd0(param_2);" (call_expression "FUN_00226cd0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }" { (if_statement "if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }" if (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) == 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }" { (expression_statement "FUN_00225240();" (call_expression "FUN_00225240()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);" (call_expression "FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7)" identifier (argument_list "(&__DT_PLTGOT,&stack0xffffffb7)" ( (pointer_expression "&__DT_PLTGOT" & identifier) , (pointer_expression "&stack0xffffffb7" & identifier) ))) ;) (expression_statement "iVar5 = FUN_00225390(*puVar1);" (assignment_expression "iVar5 = FUN_00225390(*puVar1)" identifier = (call_expression "FUN_00225390(*puVar1)" identifier (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) (if_statement "if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }" { (expression_statement "FUN_00226180(*puVar1,&__DT_PLTGOT);" (call_expression "FUN_00226180(*puVar1,&__DT_PLTGOT)" identifier (argument_list "(*puVar1,&__DT_PLTGOT)" ( (pointer_expression "*puVar1" * identifier) , (pointer_expression "&__DT_PLTGOT" & identifier) ))) ;) })) (expression_statement "iVar5 = FUN_00225390(puVar1[1]);" (assignment_expression "iVar5 = FUN_00225390(puVar1[1])" identifier = (call_expression "FUN_00225390(puVar1[1])" identifier (argument_list "(puVar1[1])" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }" { (expression_statement "FUN_00226180(puVar1[1],&__DT_PLTGOT);" (call_expression "FUN_00226180(puVar1[1],&__DT_PLTGOT)" identifier (argument_list "(puVar1[1],&__DT_PLTGOT)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , (pointer_expression "&__DT_PLTGOT" & identifier) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) (expression_statement "__s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);" (assignment_expression "__s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" identifier = (pointer_expression "*(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" * (cast_expression "(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" ( (binary_expression "*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54" (pointer_expression "*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar5 = sVar2 + 1;" (assignment_expression "iVar5 = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar5 = 4;\n    __s = "gnu";\n  }" else (compound_statement "{\n    iVar5 = 4;\n    __s = "gnu";\n  }" { (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "__s = "gnu";" (assignment_expression "__s = "gnu"" identifier = (string_literal ""gnu"" " string_content ")) ;) }))) (expression_statement "FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);" (call_expression "FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0)" identifier (argument_list "(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) , identifier , (binary_expression "__s + iVar5" identifier + identifier) , number_literal ))) ;) (expression_statement "FUN_000722e0(param_2);" (call_expression "FUN_000722e0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "FUN_00226cd0(param_2);" (call_expression "FUN_00226cd0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (do_statement "do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);" do (compound_statement "{\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  }" { (expression_statement "piVar4 = *(int **)(DAT_005ea7c8 + 0xc);" (assignment_expression "piVar4 = *(int **)(DAT_005ea7c8 + 0xc)" identifier = (pointer_expression "*(int **)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int **)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002446e0("../../gold/parameters.h");\n    }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_002446e0("../../gold/parameters.h");\n    }" { comment (expression_statement "FUN_002446e0("../../gold/parameters.h");" (call_expression "FUN_002446e0("../../gold/parameters.h")" identifier (argument_list "("../../gold/parameters.h")" ( (string_literal ""../../gold/parameters.h"" " string_content ") ))) ;) })) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }" if (parenthesized_expression "(*(code **)(*piVar4 + 0x7c) != FUN_00070ca0)" ( (binary_expression "*(code **)(*piVar4 + 0x7c) != FUN_00070ca0" (pointer_expression "*(code **)(*piVar4 + 0x7c)" * (cast_expression "(code **)(*piVar4 + 0x7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x7c)" ( (binary_expression "*piVar4 + 0x7c" (pointer_expression "*piVar4" * identifier) + number_literal) )))) != identifier) )) (compound_statement "{\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }" { (expression_statement "iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);" (assignment_expression "iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x7c))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x7c))" ( (pointer_expression "**(code **)(*piVar4 + 0x7c)" * (pointer_expression "*(code **)(*piVar4 + 0x7c)" * (cast_expression "(code **)(*piVar4 + 0x7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x7c)" ( (binary_expression "*piVar4 + 0x7c" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_002256a0(param_1 + iVar3 * 8 + 1);" (call_expression "FUN_002256a0(param_1 + iVar3 * 8 + 1)" identifier (argument_list "(param_1 + iVar3 * 8 + 1)" ( (binary_expression "param_1 + iVar3 * 8 + 1" (binary_expression "param_1 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) + number_literal) ))) ;) }) while (parenthesized_expression "(iVar5 != 0x47)" ( (binary_expression "iVar5 != 0x47" identifier != number_literal) )) ;) (for_statement "for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }" for ( (assignment_expression "piVar4 = (int *)param_1[0x23c]" identifier = (cast_expression "(int *)param_1[0x23c]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x23c]" identifier [ number_literal ]))) ; (binary_expression "piVar4 != param_1 + 0x23a" identifier != (binary_expression "param_1 + 0x23a" identifier + number_literal)) ; (assignment_expression "piVar4 = (int *)thunk_FUN_003af660(piVar4)" identifier = (cast_expression "(int *)thunk_FUN_003af660(piVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_003af660(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))))) ) (compound_statement "{\n    FUN_002256a0(piVar4[5]);\n  }" { (expression_statement "FUN_002256a0(piVar4[5]);" (call_expression "FUN_002256a0(piVar4[5])" identifier (argument_list "(piVar4[5])" ( (subscript_expression "piVar4[5]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void write(Vendor_object_attributes * this,\n   vector<unsigned_char,_std::allocator<unsigned_char>_> * buffer) */\n\nssize_t __thiscall\ngold::Vendor_object_attributes::write\n          (Vendor_object_attributes *this,int __fd,void *__buf,size_t __n)\n\n{\n}\n\n" comment comment (function_definition "ssize_t __thiscall\ngold::Vendor_object_attributes::write\n          (Vendor_object_attributes *this,int __fd,void *__buf,size_t __n)\n\n{\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Vendor_object_attributes::" identifier : : identifier : :) (function_declarator "write\n          (Vendor_object_attributes *this,int __fd,void *__buf,size_t __n)" identifier (parameter_list "(Vendor_object_attributes *this,int __fd,void *__buf,size_t __n)" ( (parameter_declaration "Vendor_object_attributes *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int __fd" primitive_type identifier) , (parameter_declaration "void *__buf" primitive_type (pointer_declarator "*__buf" * identifier)) , (parameter_declaration "size_t __n" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_00226180(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00226180(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00226180(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_00225390(param_1);" (assignment_expression "puVar1 = (undefined4 *)FUN_00225390(param_1)" identifier = (cast_expression "(undefined4 *)FUN_00225390(param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00225390(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "FUN_00226cd0(param_2);" (call_expression "FUN_00226cd0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }" { (if_statement "if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }" if (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) == 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }" { (expression_statement "FUN_00225240();" (call_expression "FUN_00225240()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);" (call_expression "FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7)" identifier (argument_list "(&__DT_PLTGOT,&stack0xffffffb7)" ( (pointer_expression "&__DT_PLTGOT" & identifier) , (pointer_expression "&stack0xffffffb7" & identifier) ))) ;) (expression_statement "iVar5 = FUN_00225390(*puVar1);" (assignment_expression "iVar5 = FUN_00225390(*puVar1)" identifier = (call_expression "FUN_00225390(*puVar1)" identifier (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) (if_statement "if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }" { (expression_statement "FUN_00226180(*puVar1,&__DT_PLTGOT);" (call_expression "FUN_00226180(*puVar1,&__DT_PLTGOT)" identifier (argument_list "(*puVar1,&__DT_PLTGOT)" ( (pointer_expression "*puVar1" * identifier) , (pointer_expression "&__DT_PLTGOT" & identifier) ))) ;) })) (expression_statement "iVar5 = FUN_00225390(puVar1[1]);" (assignment_expression "iVar5 = FUN_00225390(puVar1[1])" identifier = (call_expression "FUN_00225390(puVar1[1])" identifier (argument_list "(puVar1[1])" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }" { (expression_statement "FUN_00226180(puVar1[1],&__DT_PLTGOT);" (call_expression "FUN_00226180(puVar1[1],&__DT_PLTGOT)" identifier (argument_list "(puVar1[1],&__DT_PLTGOT)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , (pointer_expression "&__DT_PLTGOT" & identifier) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) (expression_statement "__s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);" (assignment_expression "__s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" identifier = (pointer_expression "*(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" * (cast_expression "(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" ( (binary_expression "*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54" (pointer_expression "*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar5 = sVar2 + 1;" (assignment_expression "iVar5 = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar5 = 4;\n    __s = "gnu";\n  }" else (compound_statement "{\n    iVar5 = 4;\n    __s = "gnu";\n  }" { (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "__s = "gnu";" (assignment_expression "__s = "gnu"" identifier = (string_literal ""gnu"" " string_content ")) ;) }))) (expression_statement "FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);" (call_expression "FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0)" identifier (argument_list "(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) , identifier , (binary_expression "__s + iVar5" identifier + identifier) , number_literal ))) ;) (expression_statement "FUN_000722e0(param_2);" (call_expression "FUN_000722e0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "FUN_00226cd0(param_2);" (call_expression "FUN_00226cd0(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (do_statement "do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);" do (compound_statement "{\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  }" { (expression_statement "piVar4 = *(int **)(DAT_005ea7c8 + 0xc);" (assignment_expression "piVar4 = *(int **)(DAT_005ea7c8 + 0xc)" identifier = (pointer_expression "*(int **)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int **)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }" { (expression_statement "FUN_002446e0("../../gold/parameters.h");" (call_expression "FUN_002446e0("../../gold/parameters.h")" identifier (argument_list "("../../gold/parameters.h")" ( (string_literal ""../../gold/parameters.h"" " string_content ") ))) ;) })) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }" if (parenthesized_expression "(*(code **)(*piVar4 + 0x7c) != FUN_00070ca0)" ( (binary_expression "*(code **)(*piVar4 + 0x7c) != FUN_00070ca0" (pointer_expression "*(code **)(*piVar4 + 0x7c)" * (cast_expression "(code **)(*piVar4 + 0x7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x7c)" ( (binary_expression "*piVar4 + 0x7c" (pointer_expression "*piVar4" * identifier) + number_literal) )))) != identifier) )) (compound_statement "{\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }" { (expression_statement "iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);" (assignment_expression "iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x7c))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x7c))" ( (pointer_expression "**(code **)(*piVar4 + 0x7c)" * (pointer_expression "*(code **)(*piVar4 + 0x7c)" * (cast_expression "(code **)(*piVar4 + 0x7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x7c)" ( (binary_expression "*piVar4 + 0x7c" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_002256a0(param_1 + iVar3 * 8 + 1);" (call_expression "FUN_002256a0(param_1 + iVar3 * 8 + 1)" identifier (argument_list "(param_1 + iVar3 * 8 + 1)" ( (binary_expression "param_1 + iVar3 * 8 + 1" (binary_expression "param_1 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) + number_literal) ))) ;) }) while (parenthesized_expression "(iVar5 != 0x47)" ( (binary_expression "iVar5 != 0x47" identifier != number_literal) )) ;) (for_statement "for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }" for ( (assignment_expression "piVar4 = (int *)param_1[0x23c]" identifier = (cast_expression "(int *)param_1[0x23c]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x23c]" identifier [ number_literal ]))) ; (binary_expression "piVar4 != param_1 + 0x23a" identifier != (binary_expression "param_1 + 0x23a" identifier + number_literal)) ; (assignment_expression "piVar4 = (int *)thunk_FUN_003af660(piVar4)" identifier = (cast_expression "(int *)thunk_FUN_003af660(piVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_003af660(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))))) ) (compound_statement "{\n    FUN_002256a0(piVar4[5]);\n  }" { (expression_statement "FUN_002256a0(piVar4[5]);" (call_expression "FUN_002256a0(piVar4[5])" identifier (argument_list "(piVar4[5])" ( (subscript_expression "piVar4[5]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) ))) ;) (return_statement return ;) })) (return_statement return ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ; (binary_expression IDENT != (binary_expression IDENT + LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00226180(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00226180(int *param_1,int param_2)" (identifier "FUN_00226180") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  int *piVar4;\n  char *__s;\n  int iVar5;\n  \n  puVar1 = (undefined4 *)FUN_00225390(param_1);\n  FUN_00226cd0(param_2);\n  if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }\n  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);\n  FUN_000722e0(param_2);\n  iVar5 = 4;\n  FUN_00226cd0(param_2);\n  do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);\n  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_00225390(param_1);" (assignment_expression "puVar1 = (undefined4 *)FUN_00225390(param_1)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_00225390(param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00225390(param_1)" (identifier "FUN_00225390") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "FUN_00226cd0(param_2);" (call_expression "FUN_00226cd0(param_2)" (identifier "FUN_00226cd0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*param_1 == 0) {\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }\n  else {\n    iVar5 = 4;\n    __s = "gnu";\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }\n    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);\n    sVar2 = strlen(__s);\n    iVar5 = sVar2 + 1;\n  }" ({ "{") (if_statement "if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) == 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" (* "*") (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_005ea7c8 + 0xc)" (( "(") (binary_expression "DAT_005ea7c8 + 0xc" (identifier "DAT_005ea7c8") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00225240();\n      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);\n      iVar5 = FUN_00225390(*puVar1);\n      if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }\n      iVar5 = FUN_00225390(puVar1[1]);\n      if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }\n      return;\n    }" ({ "{") (expression_statement "FUN_00225240();" (call_expression "FUN_00225240()" (identifier "FUN_00225240") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);" (call_expression "FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7)" (identifier "FUN_000722e0") (argument_list "(&__DT_PLTGOT,&stack0xffffffb7)" (( "(") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT")) (, ",") (pointer_expression "&stack0xffffffb7" (& "&") (identifier "stack0xffffffb7")) () ")"))) (; ";")) (expression_statement "iVar5 = FUN_00225390(*puVar1);" (assignment_expression "iVar5 = FUN_00225390(*puVar1)" (identifier "iVar5") (= "=") (call_expression "FUN_00225390(*puVar1)" (identifier "FUN_00225390") (argument_list "(*puVar1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00226180(*puVar1,&__DT_PLTGOT);\n      }" ({ "{") (expression_statement "FUN_00226180(*puVar1,&__DT_PLTGOT);" (call_expression "FUN_00226180(*puVar1,&__DT_PLTGOT)" (identifier "FUN_00226180") (argument_list "(*puVar1,&__DT_PLTGOT)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar5 = FUN_00225390(puVar1[1]);" (assignment_expression "iVar5 = FUN_00225390(puVar1[1])" (identifier "iVar5") (= "=") (call_expression "FUN_00225390(puVar1[1])" (identifier "FUN_00225390") (argument_list "(puVar1[1])" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00226180(puVar1[1],&__DT_PLTGOT);\n        return;\n      }" ({ "{") (expression_statement "FUN_00226180(puVar1[1],&__DT_PLTGOT);" (call_expression "FUN_00226180(puVar1[1],&__DT_PLTGOT)" (identifier "FUN_00226180") (argument_list "(puVar1[1],&__DT_PLTGOT)" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);" (assignment_expression "__s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" (identifier "__s") (= "=") (pointer_expression "*(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" (* "*") (cast_expression "(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54)" (( "(") (binary_expression "*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54" (pointer_expression "*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" (* "*") (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_005ea7c8 + 0xc)" (( "(") (binary_expression "DAT_005ea7c8 + 0xc" (identifier "DAT_005ea7c8") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" (identifier "sVar2") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "iVar5 = sVar2 + 1;" (assignment_expression "iVar5 = sVar2 + 1" (identifier "iVar5") (= "=") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    iVar5 = 4;\n    __s = "gnu";\n  }" (else "else") (compound_statement "{\n    iVar5 = 4;\n    __s = "gnu";\n  }" ({ "{") (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" (identifier "iVar5") (= "=") (number_literal "4")) (; ";")) (expression_statement "__s = "gnu";" (assignment_expression "__s = "gnu"" (identifier "__s") (= "=") (string_literal ""gnu"" (" """) (string_content "gnu") (" """))) (; ";")) (} "}")))) (expression_statement "FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);" (call_expression "FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0)" (identifier "FUN_00226690") (argument_list "(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "__s") (, ",") (binary_expression "__s + iVar5" (identifier "__s") (+ "+") (identifier "iVar5")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000722e0(param_2);" (call_expression "FUN_000722e0(param_2)" (identifier "FUN_000722e0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" (identifier "iVar5") (= "=") (number_literal "4")) (; ";")) (expression_statement "FUN_00226cd0(param_2);" (call_expression "FUN_00226cd0(param_2)" (identifier "FUN_00226cd0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (do_statement "do {\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  } while (iVar5 != 0x47);" (do "do") (compound_statement "{\n    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);\n    if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }\n    iVar3 = iVar5;\n    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }\n    iVar5 = iVar5 + 1;\n    FUN_002256a0(param_1 + iVar3 * 8 + 1);\n  }" ({ "{") (expression_statement "piVar4 = *(int **)(DAT_005ea7c8 + 0xc);" (assignment_expression "piVar4 = *(int **)(DAT_005ea7c8 + 0xc)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(DAT_005ea7c8 + 0xc)" (* "*") (cast_expression "(int **)(DAT_005ea7c8 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_005ea7c8 + 0xc)" (( "(") (binary_expression "DAT_005ea7c8 + 0xc" (identifier "DAT_005ea7c8") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) {\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      FUN_002446e0("../../gold/parameters.h");\n    }" ({ "{") (expression_statement "FUN_002446e0("../../gold/parameters.h");" (call_expression "FUN_002446e0("../../gold/parameters.h")" (identifier "FUN_002446e0") (argument_list "("../../gold/parameters.h")" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" (identifier "iVar3") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }" (if "if") (parenthesized_expression "(*(code **)(*piVar4 + 0x7c) != FUN_00070ca0)" (( "(") (binary_expression "*(code **)(*piVar4 + 0x7c) != FUN_00070ca0" (pointer_expression "*(code **)(*piVar4 + 0x7c)" (* "*") (cast_expression "(code **)(*piVar4 + 0x7c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x7c)" (( "(") (binary_expression "*piVar4 + 0x7c" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x7c")) () ")")))) (!= "!=") (identifier "FUN_00070ca0")) () ")")) (compound_statement "{\n      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);\n    }" ({ "{") (expression_statement "iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);" (assignment_expression "iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*piVar4 + 0x7c))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x7c))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x7c)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x7c)" (* "*") (cast_expression "(code **)(*piVar4 + 0x7c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x7c)" (( "(") (binary_expression "*piVar4 + 0x7c" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x7c")) () ")"))))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_002256a0(param_1 + iVar3 * 8 + 1);" (call_expression "FUN_002256a0(param_1 + iVar3 * 8 + 1)" (identifier "FUN_002256a0") (argument_list "(param_1 + iVar3 * 8 + 1)" (( "(") (binary_expression "param_1 + iVar3 * 8 + 1" (binary_expression "param_1 + iVar3 * 8" (identifier "param_1") (+ "+") (binary_expression "iVar3 * 8" (identifier "iVar3") (* "*") (number_literal "8"))) (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0x47)" (( "(") (binary_expression "iVar5 != 0x47" (identifier "iVar5") (!= "!=") (number_literal "0x47")) () ")")) (; ";")) (for_statement "for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;\n      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {\n    FUN_002256a0(piVar4[5]);\n  }" (for "for") (( "(") (assignment_expression "piVar4 = (int *)param_1[0x23c]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[0x23c]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x23c]" (identifier "param_1") ([ "[") (number_literal "0x23c") (] "]")))) (; ";") (binary_expression "piVar4 != param_1 + 0x23a" (identifier "piVar4") (!= "!=") (binary_expression "param_1 + 0x23a" (identifier "param_1") (+ "+") (number_literal "0x23a"))) (; ";") (assignment_expression "piVar4 = (int *)thunk_FUN_003af660(piVar4)" (identifier "piVar4") (= "=") (cast_expression "(int *)thunk_FUN_003af660(piVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_003af660(piVar4)" (identifier "thunk_FUN_003af660") (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")"))))) () ")") (compound_statement "{\n    FUN_002256a0(piVar4[5]);\n  }" ({ "{") (expression_statement "FUN_002256a0(piVar4[5]);" (call_expression "FUN_002256a0(piVar4[5])" (identifier "FUN_002256a0") (argument_list "(piVar4[5])" (( "(") (subscript_expression "piVar4[5]" (identifier "piVar4") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write(Vendor_object_attributes * this,
   vector<unsigned_char,_std::allocator<unsigned_char>_> * buffer) */

ssize_t __thiscall
gold::type_1::function_1
          (type_1 *this,int __fd,void *__buf,size_t __n)

{
}


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

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

void MASKED(int *param_1,int param_2)

{
  undefined4 *puVar1;
  size_t sVar2;
  int iVar3;
  int *piVar4;
  char *__s;
  int iVar5;
  
  puVar1 = (undefined4 *)FUN_00225390(param_1);
  FUN_00226cd0(param_2);
  if (*param_1 == 0) {
    if (*(int *)(DAT_005ea7c8 + 0xc) == 0) {
      FUN_00225240();
      FUN_000722e0(&__DT_PLTGOT,&stack0xffffffb7);
      iVar5 = FUN_00225390(*puVar1);
      if (iVar5 != 0) {
        MASKED(*puVar1,&__DT_PLTGOT);
      }
      iVar5 = FUN_00225390(puVar1[1]);
      if (iVar5 != 0) {
        MASKED(puVar1[1],&__DT_PLTGOT);
        return;
      }
      return;
    }
    __s = *(char **)(*(int *)(*(int *)(DAT_005ea7c8 + 0xc) + 4) + 0x54);
    sVar2 = strlen(__s);
    iVar5 = sVar2 + 1;
  }
  else {
    iVar5 = 4;
    __s = "gnu";
  }
  FUN_00226690(param_2,*(undefined4 *)(param_2 + 4),__s,__s + iVar5,0);
  FUN_000722e0(param_2);
  iVar5 = 4;
  FUN_00226cd0(param_2);
  do {
    piVar4 = *(int **)(DAT_005ea7c8 + 0xc);
    if (piVar4 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_002446e0("../../gold/parameters.h");
    }
    iVar3 = iVar5;
    if (*(code **)(*piVar4 + 0x7c) != FUN_00070ca0) {
      iVar3 = (**(code **)(*piVar4 + 0x7c))(piVar4);
    }
    iVar5 = iVar5 + 1;
    FUN_002256a0(param_1 + iVar3 * 8 + 1);
  } while (iVar5 != 0x47);
  for (piVar4 = (int *)param_1[0x23c]; piVar4 != param_1 + 0x23a;
      piVar4 = (int *)thunk_FUN_003af660(piVar4)) {
    FUN_002256a0(piVar4[5]);
  }
  return;
}

