
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Version_tree * allocate_version_tree(Version_script_info * this) */

Version_tree * __thiscall
gold::Version_script_info::allocate_version_tree(Version_script_info *this)

{
}



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

undefined4 FUN_00340f50(int param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int *local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x340f57;
  local_10 = (int *)FUN_003ac4d0(0x24);
  *local_10 = (int)(local_10 + 2);
  puVar1 = *(undefined4 **)(param_1 + 0x1c);
  local_10[1] = 0;
  *(undefined1 *)(local_10 + 2) = 0;
  local_10[6] = 0;
  local_10[7] = 0;
  local_10[8] = 0;
  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {
    *puVar1 = local_10;
    uVar2 = *puVar1;
    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;
    return uVar2;
  }
  FUN_00345030(param_1 + 0x18,puVar1,&local_10);
  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);
}


PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x2a90a9
SUB ESP,0x20
MOV ESI,dword ptr [ESP + 0x2c]
PUSH 0x24
CALL 0x003ac4d0
LEA EDX,[EAX + 0x8]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [ESI + 0x1c]
MOV dword ptr [EAX + 0x4],0x0
MOV byte ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0x18],0x0
MOV dword ptr [EAX + 0x1c],0x0
MOV dword ptr [EAX + 0x20],0x0
CMP EDX,dword ptr [ESI + 0x20]
JZ 0x00340fb0
MOV dword ptr [EDX],EAX
ADD EDX,0x4
MOV EAX,dword ptr [EDX + -0x4]
MOV dword ptr [ESI + 0x1c],EDX
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[ESP + 0x10]
PUSH EAX
LEA EAX,[ESI + 0x18]
PUSH EDX
PUSH EAX
CALL 0x00345030
MOV EDX,dword ptr [ESI + 0x1c]
ADD ESP,0x10
MOV EAX,dword ptr [EDX + -0x4]
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00340f50(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}\n\n" comment (function_definition "undefined4 FUN_00340f50(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}" type_identifier (function_declarator "FUN_00340f50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x340f57;" (assignment_expression "uStack_c = 0x340f57" identifier = number_literal) ;) (expression_statement "local_10 = (int *)FUN_003ac4d0(0x24);" (assignment_expression "local_10 = (int *)FUN_003ac4d0(0x24)" identifier = (cast_expression "(int *)FUN_003ac4d0(0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "*local_10 = (int)(local_10 + 2);" (assignment_expression "*local_10 = (int)(local_10 + 2)" (pointer_expression "*local_10" * identifier) = (cast_expression "(int)(local_10 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_10 + 2)" ( (binary_expression "local_10 + 2" identifier + number_literal) )))) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x1c);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "local_10[1] = 0;" (assignment_expression "local_10[1] = 0" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(local_10 + 2) = 0;" (assignment_expression "*(undefined1 *)(local_10 + 2) = 0" (pointer_expression "*(undefined1 *)(local_10 + 2)" * (cast_expression "(undefined1 *)(local_10 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + 2)" ( (binary_expression "local_10 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_10[6] = 0;" (assignment_expression "local_10[6] = 0" (subscript_expression "local_10[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_10[7] = 0;" (assignment_expression "local_10[7] = 0" (subscript_expression "local_10[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_10[8] = 0;" (assignment_expression "local_10[8] = 0" (subscript_expression "local_10[8]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(param_1 + 0x20))" ( (binary_expression "puVar1 != *(undefined4 **)(param_1 + 0x20)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }" { (expression_statement "*puVar1 = local_10;" (assignment_expression "*puVar1 = local_10" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "FUN_00345030(param_1 + 0x18,puVar1,&local_10);" (call_expression "FUN_00345030(param_1 + 0x18,puVar1,&local_10)" identifier (argument_list "(param_1 + 0x18,puVar1,&local_10)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , identifier , (pointer_expression "&local_10" & identifier) ))) ;) (return_statement "return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);" return (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x1c) + -4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1c) + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1c) + -4)" ( (binary_expression "*(int *)(param_1 + 0x1c) + -4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + number_literal) )))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: Version_tree * allocate_version_tree(Version_script_info * this) */\n\nVersion_tree * __thiscall\ngold::Version_script_info::allocate_version_tree(Version_script_info *this)\n\n{\n}\n\n" comment comment (ERROR "Version_tree * __thiscall\ngold::Version_script_info::allocate_version_tree(Version_script_info *this)" (binary_expression "Version_tree * __thiscall\ngold::Version_script_info::allocate_version_tree(Version_script_info *this" (binary_expression "Version_tree * __thiscall" identifier * identifier) (ERROR "gold::Version_script_info::allocate_version_tree(Version_script_info" identifier : : identifier : : identifier ( identifier) * identifier) )) (compound_statement "{\n}" { }))
(translation_unit "undefined4 FUN_00340f50(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}\n\n" (function_definition "undefined4 FUN_00340f50(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}" type_identifier (function_declarator "FUN_00340f50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x340f57;" (assignment_expression "uStack_c = 0x340f57" identifier = number_literal) ;) (expression_statement "local_10 = (int *)FUN_003ac4d0(0x24);" (assignment_expression "local_10 = (int *)FUN_003ac4d0(0x24)" identifier = (cast_expression "(int *)FUN_003ac4d0(0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "*local_10 = (int)(local_10 + 2);" (assignment_expression "*local_10 = (int)(local_10 + 2)" (pointer_expression "*local_10" * identifier) = (cast_expression "(int)(local_10 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_10 + 2)" ( (binary_expression "local_10 + 2" identifier + number_literal) )))) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x1c);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "local_10[1] = 0;" (assignment_expression "local_10[1] = 0" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(local_10 + 2) = 0;" (assignment_expression "*(undefined1 *)(local_10 + 2) = 0" (pointer_expression "*(undefined1 *)(local_10 + 2)" * (cast_expression "(undefined1 *)(local_10 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + 2)" ( (binary_expression "local_10 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_10[6] = 0;" (assignment_expression "local_10[6] = 0" (subscript_expression "local_10[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_10[7] = 0;" (assignment_expression "local_10[7] = 0" (subscript_expression "local_10[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_10[8] = 0;" (assignment_expression "local_10[8] = 0" (subscript_expression "local_10[8]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(param_1 + 0x20))" ( (binary_expression "puVar1 != *(undefined4 **)(param_1 + 0x20)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }" { (expression_statement "*puVar1 = local_10;" (assignment_expression "*puVar1 = local_10" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "FUN_00345030(param_1 + 0x18,puVar1,&local_10);" (call_expression "FUN_00345030(param_1 + 0x18,puVar1,&local_10)" identifier (argument_list "(param_1 + 0x18,puVar1,&local_10)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , identifier , (pointer_expression "&local_10" & identifier) ))) ;) (return_statement "return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);" return (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x1c) + -4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1c) + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1c) + -4)" ( (binary_expression "*(int *)(param_1 + 0x1c) + -4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , (pointer_expression & IDENT) ))) ;) (return_statement return (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) )))) ;) })))
(function_definition "undefined4 FUN_00340f50(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}" (type_identifier "undefined4") (function_declarator "FUN_00340f50(int param_1)" (identifier "FUN_00340f50") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x340f57;\n  local_10 = (int *)FUN_003ac4d0(0x24);\n  *local_10 = (int)(local_10 + 2);\n  puVar1 = *(undefined4 **)(param_1 + 0x1c);\n  local_10[1] = 0;\n  *(undefined1 *)(local_10 + 2) = 0;\n  local_10[6] = 0;\n  local_10[7] = 0;\n  local_10[8] = 0;\n  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }\n  FUN_00345030(param_1 + 0x18,puVar1,&local_10);\n  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *local_10;" (primitive_type "int") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x340f57;" (assignment_expression "uStack_c = 0x340f57" (identifier "uStack_c") (= "=") (number_literal "0x340f57")) (; ";")) (expression_statement "local_10 = (int *)FUN_003ac4d0(0x24);" (assignment_expression "local_10 = (int *)FUN_003ac4d0(0x24)" (identifier "local_10") (= "=") (cast_expression "(int *)FUN_003ac4d0(0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac4d0(0x24)" (identifier "FUN_003ac4d0") (argument_list "(0x24)" (( "(") (number_literal "0x24") () ")"))))) (; ";")) (expression_statement "*local_10 = (int)(local_10 + 2);" (assignment_expression "*local_10 = (int)(local_10 + 2)" (pointer_expression "*local_10" (* "*") (identifier "local_10")) (= "=") (cast_expression "(int)(local_10 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(local_10 + 2)" (( "(") (binary_expression "local_10 + 2" (identifier "local_10") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x1c);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x1c)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "local_10[1] = 0;" (assignment_expression "local_10[1] = 0" (subscript_expression "local_10[1]" (identifier "local_10") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(local_10 + 2) = 0;" (assignment_expression "*(undefined1 *)(local_10 + 2) = 0" (pointer_expression "*(undefined1 *)(local_10 + 2)" (* "*") (cast_expression "(undefined1 *)(local_10 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_10 + 2)" (( "(") (binary_expression "local_10 + 2" (identifier "local_10") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10[6] = 0;" (assignment_expression "local_10[6] = 0" (subscript_expression "local_10[6]" (identifier "local_10") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10[7] = 0;" (assignment_expression "local_10[7] = 0" (subscript_expression "local_10[7]" (identifier "local_10") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10[8] = 0;" (assignment_expression "local_10[8] = 0" (subscript_expression "local_10[8]" (identifier "local_10") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(puVar1 != *(undefined4 **)(param_1 + 0x20))" (( "(") (binary_expression "puVar1 != *(undefined4 **)(param_1 + 0x20)" (identifier "puVar1") (!= "!=") (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (compound_statement "{\n    *puVar1 = local_10;\n    uVar2 = *puVar1;\n    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;\n    return uVar2;\n  }" ({ "{") (expression_statement "*puVar1 = local_10;" (assignment_expression "*puVar1 = local_10" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "local_10")) (; ";")) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "FUN_00345030(param_1 + 0x18,puVar1,&local_10);" (call_expression "FUN_00345030(param_1 + 0x18,puVar1,&local_10)" (identifier "FUN_00345030") (argument_list "(param_1 + 0x18,puVar1,&local_10)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) (, ",") (identifier "puVar1") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")"))) (; ";")) (return_statement "return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);" (return "return") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x1c) + -4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x1c) + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x1c) + -4)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) + -4" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "-4")) () ")")))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Version_tree * allocate_version_tree(Version_script_info * this) */

Version_tree * __thiscall
gold::Version_script_info::allocate_version_tree(Version_script_info *this)

{
}


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

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

undefined4 MASKED(int param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int *local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x340f57;
  local_10 = (int *)FUN_003ac4d0(0x24);
  *local_10 = (int)(local_10 + 2);
  puVar1 = *(undefined4 **)(param_1 + 0x1c);
  local_10[1] = 0;
  *(undefined1 *)(local_10 + 2) = 0;
  local_10[6] = 0;
  local_10[7] = 0;
  local_10[8] = 0;
  if (puVar1 != *(undefined4 **)(param_1 + 0x20)) {
    *puVar1 = local_10;
    uVar2 = *puVar1;
    *(undefined4 **)(param_1 + 0x1c) = puVar1 + 1;
    return uVar2;
  }
  FUN_00345030(param_1 + 0x18,puVar1,&local_10);
  return *(undefined4 *)(*(int *)(param_1 + 0x1c) + -4);
}

