
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void put_headers_in_phdrs(Script_sections * this, Output_data *
   file_header, Output_data * segment_headers) */

void __thiscall
gold::Script_sections::put_headers_in_phdrs
          (Script_sections *this,Output_data *file_header,Output_data *segment_headers)

{
}



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

void FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)

{
  char cVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  
  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");
  }
  piVar4 = (int *)*piVar2;
  if (piVar4 != (int *)piVar2[1]) {
    do {
      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {
        if (*(char *)(iVar3 + 0x1d) == '\0') {
          cVar1 = *(char *)(iVar3 + 0x1c);
        }
        else {
          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);
          iVar3 = *piVar4;
          cVar1 = *(char *)(iVar3 + 0x1c);
        }
        if (cVar1 == '\0') break;
        piVar4 = piVar4 + 1;
        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);
        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {
          return;
        }
      }
      piVar4 = piVar4 + 1;
    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00050b50
ADD EBX,0x2b7094
CMP byte ptr [EDI],0x0
JZ 0x00332ff0
MOV EAX,dword ptr [EDI + 0x10]
TEST EAX,EAX
JZ 0x00332ff0
MOV ESI,dword ptr [EAX]
CMP ESI,dword ptr [EAX + 0x4]
JNZ 0x00332fa1
JMP 0x00332fe6
CMP byte ptr [EAX + 0x1c],0x0
JNZ 0x00332fc9
MOV EAX,dword ptr [EDI + 0x10]
ADD ESI,0x4
CMP dword ptr [EAX + 0x4],ESI
JZ 0x00332fe6
MOV EAX,dword ptr [ESI]
CMP dword ptr [EAX + 0x18],0x1
JZ 0x00332f96
CMP byte ptr [EAX + 0x1d],0x0
JZ 0x00332f90
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [EAX + 0x30]
CALL 0x002ca4a0
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
CMP byte ptr [EAX + 0x1c],0x0
JZ 0x00332f96
SUB ESP,0x8
ADD ESI,0x4
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX + 0x30]
CALL 0x002ca4a0
MOV EAX,dword ptr [EDI + 0x10]
ADD ESP,0x10
CMP dword ptr [EAX + 0x4],ESI
JNZ 0x00332fa1
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffead314]
PUSH EAX
LEA EAX,[EBX + 0xffeacb6b]
PUSH 0x1198
PUSH EAX
CALL 0x002446e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }" if (parenthesized_expression "((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0))" ( (binary_expression "(*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)" (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)" ( (comma_expression "piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0" (assignment_expression "piVar2 = *(int **)(param_1 + 0x10)" identifier = (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) , (binary_expression "piVar2 == (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/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }" { comment (expression_statement "FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");" (call_expression "FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs")" identifier (argument_list "("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs")" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""put_headers_in_phdrs"" " string_content ") ))) ;) })) (expression_statement "piVar4 = (int *)*piVar2;" (assignment_expression "piVar4 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }" if (parenthesized_expression "(piVar4 != (int *)piVar2[1])" ( (binary_expression "piVar4 != (int *)piVar2[1]" identifier != (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }" { (do_statement "do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);" do (compound_statement "{\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    }" { (while_statement "while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }" while (parenthesized_expression "(iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1)" ( (comma_expression "iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) , (binary_expression "*(int *)(iVar3 + 0x18) != 1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }" { (if_statement "if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" if (parenthesized_expression "(*(char *)(iVar3 + 0x1d) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x1d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x1d)" * (cast_expression "(char *)(iVar3 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1d)" ( (binary_expression "iVar3 + 0x1d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" { (expression_statement "cVar1 = *(char *)(iVar3 + 0x1c);" (assignment_expression "cVar1 = *(char *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(char *)(iVar3 + 0x1c)" * (cast_expression "(char *)(iVar3 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" else (compound_statement "{\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" { (expression_statement "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);" (call_expression "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3)" identifier (argument_list "(*(undefined4 *)(iVar3 + 0x30),param_3)" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" * (cast_expression "(undefined4 *)(iVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "cVar1 = *(char *)(iVar3 + 0x1c);" (assignment_expression "cVar1 = *(char *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(char *)(iVar3 + 0x1c)" * (cast_expression "(char *)(iVar3 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);" (call_expression "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2)" identifier (argument_list "(*(undefined4 *)(iVar3 + 0x30),param_2)" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" * (cast_expression "(undefined4 *)(iVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }" if (parenthesized_expression "(*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4)" ( (binary_expression "*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4" (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + 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) )))) + number_literal) )))) == identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) })) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4)" ( (binary_expression "*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4" (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + 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) )))) + number_literal) )))) != identifier) )) ;) })) (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 put_headers_in_phdrs(Script_sections * this, Output_data *\n   file_header, Output_data * segment_headers) */\n\nvoid __thiscall\ngold::Script_sections::put_headers_in_phdrs\n          (Script_sections *this,Output_data *file_header,Output_data *segment_headers)\n\n{\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Script_sections::put_headers_in_phdrs\n          (Script_sections *this,Output_data *file_header,Output_data *segment_headers)\n\n{\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "put_headers_in_phdrs\n          (Script_sections *this,Output_data *file_header,Output_data *segment_headers)" identifier (parameter_list "(Script_sections *this,Output_data *file_header,Output_data *segment_headers)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_data *file_header" type_identifier (pointer_declarator "*file_header" * identifier)) , (parameter_declaration "Output_data *segment_headers" type_identifier (pointer_declarator "*segment_headers" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }" if (parenthesized_expression "((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0))" ( (binary_expression "(*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)" (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)" ( (comma_expression "piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0" (assignment_expression "piVar2 = *(int **)(param_1 + 0x10)" identifier = (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) , (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }" { (expression_statement "FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");" (call_expression "FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs")" identifier (argument_list "("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs")" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""put_headers_in_phdrs"" " string_content ") ))) ;) })) (expression_statement "piVar4 = (int *)*piVar2;" (assignment_expression "piVar4 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }" if (parenthesized_expression "(piVar4 != (int *)piVar2[1])" ( (binary_expression "piVar4 != (int *)piVar2[1]" identifier != (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }" { (do_statement "do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);" do (compound_statement "{\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    }" { (while_statement "while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }" while (parenthesized_expression "(iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1)" ( (comma_expression "iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) , (binary_expression "*(int *)(iVar3 + 0x18) != 1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }" { (if_statement "if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" if (parenthesized_expression "(*(char *)(iVar3 + 0x1d) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x1d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x1d)" * (cast_expression "(char *)(iVar3 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1d)" ( (binary_expression "iVar3 + 0x1d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" { (expression_statement "cVar1 = *(char *)(iVar3 + 0x1c);" (assignment_expression "cVar1 = *(char *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(char *)(iVar3 + 0x1c)" * (cast_expression "(char *)(iVar3 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" else (compound_statement "{\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" { (expression_statement "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);" (call_expression "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3)" identifier (argument_list "(*(undefined4 *)(iVar3 + 0x30),param_3)" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" * (cast_expression "(undefined4 *)(iVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "cVar1 = *(char *)(iVar3 + 0x1c);" (assignment_expression "cVar1 = *(char *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(char *)(iVar3 + 0x1c)" * (cast_expression "(char *)(iVar3 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);" (call_expression "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2)" identifier (argument_list "(*(undefined4 *)(iVar3 + 0x30),param_2)" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" * (cast_expression "(undefined4 *)(iVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }" if (parenthesized_expression "(*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4)" ( (binary_expression "*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4" (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + 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) )))) + number_literal) )))) == identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) })) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4)" ( (binary_expression "*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4" (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + 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) )))) + number_literal) )))) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (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 ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != 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) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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 == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == IDENT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (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) )))) + LIT) )))) != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00332f60(char *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00332f60") (parameter_list "(char *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (if_statement "if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }" (if "if") (parenthesized_expression "((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0))" (( "(") (binary_expression "(*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)" (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)" (( "(") (comma_expression "piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0" (assignment_expression "piVar2 = *(int **)(param_1 + 0x10)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x10)" (* "*") (cast_expression "(int **)(param_1 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (, ",") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");\n  }" ({ "{") (expression_statement "FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");" (call_expression "FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs")" (identifier "FUN_002446e0") (argument_list "("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs")" (( "(") (string_literal ""../../gold/script-sections.cc"" (" """) (string_content "../../gold/script-sections.cc") (" """)) (, ",") (number_literal "0x1198") (, ",") (string_literal ""put_headers_in_phdrs"" (" """) (string_content "put_headers_in_phdrs") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)*piVar2;" (assignment_expression "piVar4 = (int *)*piVar2" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (if_statement "if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }" (if "if") (parenthesized_expression "(piVar4 != (int *)piVar2[1])" (( "(") (binary_expression "piVar4 != (int *)piVar2[1]" (identifier "piVar4") (!= "!=") (cast_expression "(int *)piVar2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);\n  }" ({ "{") (do_statement "do {\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);" (do "do") (compound_statement "{\n      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }\n      piVar4 = piVar4 + 1;\n    }" ({ "{") (while_statement "while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }" (while "while") (parenthesized_expression "(iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1)" (( "(") (comma_expression "iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1" (assignment_expression "iVar3 = *piVar4" (identifier "iVar3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (, ",") (binary_expression "*(int *)(iVar3 + 0x18) != 1" (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "1"))) () ")")) (compound_statement "{\n        if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        if (cVar1 == '\0') break;\n        piVar4 = piVar4 + 1;\n        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);\n        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }\n      }" ({ "{") (if_statement "if (*(char *)(iVar3 + 0x1d) == '\0') {\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }\n        else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" (if "if") (parenthesized_expression "(*(char *)(iVar3 + 0x1d) == '\0')" (( "(") (binary_expression "*(char *)(iVar3 + 0x1d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x1d)" (* "*") (cast_expression "(char *)(iVar3 + 0x1d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1d)" (( "(") (binary_expression "iVar3 + 0x1d" (identifier "iVar3") (+ "+") (number_literal "0x1d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" ({ "{") (expression_statement "cVar1 = *(char *)(iVar3 + 0x1c);" (assignment_expression "cVar1 = *(char *)(iVar3 + 0x1c)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + 0x1c)" (* "*") (cast_expression "(char *)(iVar3 + 0x1c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" (else "else") (compound_statement "{\n          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);\n          iVar3 = *piVar4;\n          cVar1 = *(char *)(iVar3 + 0x1c);\n        }" ({ "{") (expression_statement "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);" (call_expression "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3)" (identifier "FUN_002ca4a0") (argument_list "(*(undefined4 *)(iVar3 + 0x30),param_3)" (( "(") (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x30)" (( "(") (binary_expression "iVar3 + 0x30" (identifier "iVar3") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" (identifier "iVar3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "cVar1 = *(char *)(iVar3 + 0x1c);" (assignment_expression "cVar1 = *(char *)(iVar3 + 0x1c)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + 0x1c)" (* "*") (cast_expression "(char *)(iVar3 + 0x1c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') break;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);" (call_expression "FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2)" (identifier "FUN_002ca4a0") (argument_list "(*(undefined4 *)(iVar3 + 0x30),param_2)" (( "(") (pointer_expression "*(undefined4 *)(iVar3 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x30)" (( "(") (binary_expression "iVar3 + 0x30" (identifier "iVar3") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {\n          return;\n        }" (if "if") (parenthesized_expression "(*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4)" (( "(") (binary_expression "*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4" (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + 4)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x10) + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 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")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "piVar4")) () ")")) (compound_statement "{\n          return;\n        }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4)" (( "(") (binary_expression "*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4" (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + 4)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x10) + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 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")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (!= "!=") (identifier "piVar4")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void put_headers_in_phdrs(Script_sections * this, Output_data *
   file_header, Output_data * segment_headers) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 *file_header,type_2 *segment_headers)

{
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (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)))))) right: (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)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (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)))) body: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (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: (number_literal))))) right: (identifier)))))) (return_statement))))

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

void MASKED(char *param_1,undefined4 param_2,undefined4 param_3)

{
  char cVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  
  if ((*param_1 == '\0') || (piVar2 = *(int **)(param_1 + 0x10), piVar2 == (int *)0x0)) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/script-sections.cc",0x1198,"put_headers_in_phdrs");
  }
  piVar4 = (int *)*piVar2;
  if (piVar4 != (int *)piVar2[1]) {
    do {
      while (iVar3 = *piVar4, *(int *)(iVar3 + 0x18) != 1) {
        if (*(char *)(iVar3 + 0x1d) == '\0') {
          cVar1 = *(char *)(iVar3 + 0x1c);
        }
        else {
          FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_3);
          iVar3 = *piVar4;
          cVar1 = *(char *)(iVar3 + 0x1c);
        }
        if (cVar1 == '\0') break;
        piVar4 = piVar4 + 1;
        FUN_002ca4a0(*(undefined4 *)(iVar3 + 0x30),param_2);
        if (*(int **)(*(int *)(param_1 + 0x10) + 4) == piVar4) {
          return;
        }
      }
      piVar4 = piVar4 + 1;
    } while (*(int **)(*(int *)(param_1 + 0x10) + 4) != piVar4);
  }
  return;
}

