
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void reserve_tlsdesc_entries(Target_x86_64<64> * this, Symbol_table *
   symtab, Layout * layout) */

void __thiscall
anon_unknown.dwarf_32964f::Target_x86_64<64>::reserve_tlsdesc_entries
          (Target_x86_64<64> *this,Symbol_table *symtab,Layout *layout)

{
  Got_entry got_entry;
  int in_EAX;
  int iVar1;
  Output_data_got<64,_false> *this_00;
  uint uVar2;
  Target_x86_64<64> *in_stack_ffffffc4;
  Symbol_table *in_stack_ffffffc8;
  Layout *in_stack_ffffffcc;
  undefined4 local_24;
  undefined4 local_20;
  
  iVar1 = *(int *)(in_EAX + 0x18);
  if (iVar1 == 0) {
    make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
    iVar1 = *(int *)(in_EAX + 0x18);
  }
  if (*(int *)(iVar1 + 0x4c) != -1) {
    return;
  }
  this_00 = got_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  got_entry.addend_._0_4_ = local_24;
  got_entry._0_12_ = ZEXT412(0x7ffffffe) << 0x40;
  got_entry.addend_._4_4_ = local_20;
  uVar2 = gold::Output_data_got<64,_false>::add_got_entry(this_00,got_entry);
  *(uint *)(*(int *)(in_EAX + 0x18) + 0x4c) = uVar2;
  return;
}



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

void __regparm3 FUN_0005f850(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 local_24;
  undefined4 local_20;
  
  iVar1 = *(int *)(param_1 + 0x18);
  if (iVar1 == 0) {
    FUN_0005f750();
    iVar1 = *(int *)(param_1 + 0x18);
  }
  if (*(int *)(iVar1 + 0x4c) != -1) {
    return;
  }
  uVar2 = FUN_0005f360();
  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);
  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;
  return;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00035680
ADD EBX,0x2df7a1
SUB ESP,0x2c
MOV EAX,dword ptr [EAX + 0x18]
TEST EAX,EAX
JZ 0x0005f8d0
CMP dword ptr [EAX + 0x4c],-0x1
JZ 0x0005f880
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EDI
MOV ECX,EBP
MOV EAX,ESI
CALL 0x0005f360
MOV dword ptr [ESP + 0xc],0x0
SUB ESP,0x8
MOV dword ptr [ESP + 0x18],0x0
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x24]
PUSH 0x7ffffffe
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x24]
PUSH EAX
CALL 0x00100540
MOV EDX,dword ptr [ESI + 0x18]
ADD ESP,0x20
MOV dword ptr [EDX + 0x4c],EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,ESI
CALL 0x0005f750
MOV EAX,dword ptr [ESI + 0x18]
JMP 0x0005f86f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0005f850(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0005f850(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005f850(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" { (expression_statement "FUN_0005f750();" (call_expression "FUN_0005f750()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x4c) != -1)" ( (binary_expression "*(int *)(iVar1 + 0x4c) != -1" (pointer_expression "*(int *)(iVar1 + 0x4c)" * (cast_expression "(int *)(iVar1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_0005f360();" (assignment_expression "uVar2 = FUN_0005f360()" identifier = (call_expression "FUN_0005f360()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);" (assignment_expression "uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20)" identifier = (call_expression "FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20)" identifier (argument_list "(uVar2,0,0,0x7ffffffe,local_24,local_20)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x4c)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x4c" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" 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/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void reserve_tlsdesc_entries(Target_x86_64<64> * this, Symbol_table *\n   symtab, Layout * layout) */\n\nvoid __thiscall\nanon_unknown.dwarf_32964f::Target_x86_64<64>::reserve_tlsdesc_entries\n          (Target_x86_64<64> *this,Symbol_table *symtab,Layout *layout)\n\n{\n  Got_entry got_entry;\n  int in_EAX;\n  int iVar1;\n  Output_data_got<64,_false> *this_00;\n  uint uVar2;\n  Target_x86_64<64> *in_stack_ffffffc4;\n  Symbol_table *in_stack_ffffffc8;\n  Layout *in_stack_ffffffcc;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(in_EAX + 0x18);\n  if (iVar1 == 0) {\n    make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n    iVar1 = *(int *)(in_EAX + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  this_00 = got_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  got_entry.addend_._0_4_ = local_24;\n  got_entry._0_12_ = ZEXT412(0x7ffffffe) << 0x40;\n  got_entry.addend_._4_4_ = local_20;\n  uVar2 = gold::Output_data_got<64,_false>::add_got_entry(this_00,got_entry);\n  *(uint *)(*(int *)(in_EAX + 0x18) + 0x4c) = uVar2;\n  return;\n}\n\n" comment comment comment (function_definition "void __thiscall\nanon_unknown.dwarf_32964f::Target_x86_64<64>::reserve_tlsdesc_entries\n          (Target_x86_64<64> *this,Symbol_table *symtab,Layout *layout)\n\n{\n  Got_entry got_entry;\n  int in_EAX;\n  int iVar1;\n  Output_data_got<64,_false> *this_00;\n  uint uVar2;\n  Target_x86_64<64> *in_stack_ffffffc4;\n  Symbol_table *in_stack_ffffffc8;\n  Layout *in_stack_ffffffcc;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(in_EAX + 0x18);\n  if (iVar1 == 0) {\n    make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n    iVar1 = *(int *)(in_EAX + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  this_00 = got_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  got_entry.addend_._0_4_ = local_24;\n  got_entry._0_12_ = ZEXT412(0x7ffffffe) << 0x40;\n  got_entry.addend_._4_4_ = local_20;\n  uVar2 = gold::Output_data_got<64,_false>::add_got_entry(this_00,got_entry);\n  *(uint *)(*(int *)(in_EAX + 0x18) + 0x4c) = uVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_32964f::Target_x86_64<64>::" identifier . identifier : : identifier < number_literal > : :) (function_declarator "reserve_tlsdesc_entries\n          (Target_x86_64<64> *this,Symbol_table *symtab,Layout *layout)" identifier (parameter_list "(Target_x86_64<64> *this,Symbol_table *symtab,Layout *layout)" ( (parameter_declaration "Target_x86_64<64> *this" type_identifier (ERROR "<64>" < number_literal >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol_table *symtab" type_identifier (pointer_declarator "*symtab" * identifier)) , (parameter_declaration "Layout *layout" type_identifier (pointer_declarator "*layout" * identifier)) ))) (compound_statement "{\n  Got_entry got_entry;\n  int in_EAX;\n  int iVar1;\n  Output_data_got<64,_false> *this_00;\n  uint uVar2;\n  Target_x86_64<64> *in_stack_ffffffc4;\n  Symbol_table *in_stack_ffffffc8;\n  Layout *in_stack_ffffffcc;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(in_EAX + 0x18);\n  if (iVar1 == 0) {\n    make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n    iVar1 = *(int *)(in_EAX + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  this_00 = got_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  got_entry.addend_._0_4_ = local_24;\n  got_entry._0_12_ = ZEXT412(0x7ffffffe) << 0x40;\n  got_entry.addend_._4_4_ = local_20;\n  uVar2 = gold::Output_data_got<64,_false>::add_got_entry(this_00,got_entry);\n  *(uint *)(*(int *)(in_EAX + 0x18) + 0x4c) = uVar2;\n  return;\n}" { (declaration "Got_entry got_entry;" type_identifier identifier ;) (declaration "int in_EAX;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "Output_data_got<64,_false> *this_00;" (comma_expression "Output_data_got<64,_false> *this_00" (binary_expression "Output_data_got<64" identifier < number_literal) , (binary_expression "_false> *this_00" identifier > (pointer_expression "*this_00" * identifier))) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "Target_x86_64<64> *in_stack_ffffffc4;" (binary_expression "Target_x86_64<64> *in_stack_ffffffc4" (binary_expression "Target_x86_64<64" identifier < number_literal) > (pointer_expression "*in_stack_ffffffc4" * identifier)) ;) (declaration "Symbol_table *in_stack_ffffffc8;" type_identifier (pointer_declarator "*in_stack_ffffffc8" * identifier) ;) (declaration "Layout *in_stack_ffffffcc;" type_identifier (pointer_declarator "*in_stack_ffffffcc" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_EAX + 0x18);" (assignment_expression "iVar1 = *(int *)(in_EAX + 0x18)" identifier = (pointer_expression "*(int *)(in_EAX + 0x18)" * (cast_expression "(int *)(in_EAX + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_EAX + 0x18)" ( (binary_expression "in_EAX + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n    make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n    iVar1 = *(int *)(in_EAX + 0x18);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n    iVar1 = *(int *)(in_EAX + 0x18);\n  }" { (expression_statement "make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);" (call_expression "make_plt_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *(int *)(in_EAX + 0x18);" (assignment_expression "iVar1 = *(int *)(in_EAX + 0x18)" identifier = (pointer_expression "*(int *)(in_EAX + 0x18)" * (cast_expression "(int *)(in_EAX + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_EAX + 0x18)" ( (binary_expression "in_EAX + 0x18" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x4c) != -1)" ( (binary_expression "*(int *)(iVar1 + 0x4c) != -1" (pointer_expression "*(int *)(iVar1 + 0x4c)" * (cast_expression "(int *)(iVar1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "this_00 = got_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);" (assignment_expression "this_00 = got_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier = (call_expression "got_section(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" ( identifier , identifier , identifier )))) ;) (expression_statement "got_entry.addend_._0_4_ = local_24;" (assignment_expression "got_entry.addend_._0_4_ = local_24" (field_expression "got_entry.addend_._0_4_" (field_expression "got_entry.addend_" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "got_entry._0_12_ = ZEXT412(0x7ffffffe) << 0x40;" (assignment_expression "got_entry._0_12_ = ZEXT412(0x7ffffffe) << 0x40" (field_expression "got_entry._0_12_" identifier . field_identifier) = (binary_expression "ZEXT412(0x7ffffffe) << 0x40" (call_expression "ZEXT412(0x7ffffffe)" identifier (argument_list "(0x7ffffffe)" ( number_literal ))) << number_literal)) ;) (expression_statement "got_entry.addend_._4_4_ = local_20;" (assignment_expression "got_entry.addend_._4_4_ = local_20" (field_expression "got_entry.addend_._4_4_" (field_expression "got_entry.addend_" identifier . field_identifier) . field_identifier) = identifier) ;) (ERROR "uVar2 = gold::" (assignment_expression "uVar2 = gold" identifier = identifier) : :) (expression_statement "Output_data_got<64,_false>::add_got_entry(this_00,got_entry);" (comma_expression "Output_data_got<64,_false>::add_got_entry(this_00,got_entry)" (binary_expression "Output_data_got<64" identifier < number_literal) , (binary_expression "_false>::add_got_entry(this_00,got_entry)" identifier > (ERROR "::" : :) (call_expression "add_got_entry(this_00,got_entry)" identifier (argument_list "(this_00,got_entry)" ( identifier , identifier ))))) ;) (expression_statement "*(uint *)(*(int *)(in_EAX + 0x18) + 0x4c) = uVar2;" (assignment_expression "*(uint *)(*(int *)(in_EAX + 0x18) + 0x4c) = uVar2" (pointer_expression "*(uint *)(*(int *)(in_EAX + 0x18) + 0x4c)" * (cast_expression "(uint *)(*(int *)(in_EAX + 0x18) + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_EAX + 0x18) + 0x4c)" ( (binary_expression "*(int *)(in_EAX + 0x18) + 0x4c" (pointer_expression "*(int *)(in_EAX + 0x18)" * (cast_expression "(int *)(in_EAX + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_EAX + 0x18)" ( (binary_expression "in_EAX + 0x18" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0005f850(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0005f850(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005f850(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" { (expression_statement "FUN_0005f750();" (call_expression "FUN_0005f750()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x4c) != -1)" ( (binary_expression "*(int *)(iVar1 + 0x4c) != -1" (pointer_expression "*(int *)(iVar1 + 0x4c)" * (cast_expression "(int *)(iVar1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_0005f360();" (assignment_expression "uVar2 = FUN_0005f360()" identifier = (call_expression "FUN_0005f360()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);" (assignment_expression "uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20)" identifier = (call_expression "FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20)" identifier (argument_list "(uVar2,0,0,0x7ffffffe,local_24,local_20)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x4c)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x4c" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0005f850(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005f850(int param_1)" (identifier "FUN_0005f850") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }\n  uVar2 = FUN_0005f360();\n  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0005f750();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" ({ "{") (expression_statement "FUN_0005f750();" (call_expression "FUN_0005f750()" (identifier "FUN_0005f750") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x4c) != -1) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x4c) != -1)" (( "(") (binary_expression "*(int *)(iVar1 + 0x4c) != -1" (pointer_expression "*(int *)(iVar1 + 0x4c)" (* "*") (cast_expression "(int *)(iVar1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x4c)" (( "(") (binary_expression "iVar1 + 0x4c" (identifier "iVar1") (+ "+") (number_literal "0x4c")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0005f360();" (assignment_expression "uVar2 = FUN_0005f360()" (identifier "uVar2") (= "=") (call_expression "FUN_0005f360()" (identifier "FUN_0005f360") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);" (assignment_expression "uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20)" (identifier "uVar2") (= "=") (call_expression "FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20)" (identifier "FUN_00100540") (argument_list "(uVar2,0,0,0x7ffffffe,local_24,local_20)" (( "(") (identifier "uVar2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0x7ffffffe") (, ",") (identifier "local_24") (, ",") (identifier "local_20") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x4c)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0x4c" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void reserve_tlsdesc_entries(Target_x86_64<64> * this, Symbol_table *
   symtab, Layout * layout) */

void __thiscall
anon_unknown.dwarf_32964f::type_1<64>::function_1
          (type_1<64> *this,type_2 *symtab,type_3 *layout)

{
  type_4 got_entry;
  int var_3;
  int var_4;
  var_1<64,var_2> *this_00;
  type_5 uVar2;
  type_1<64> *in_stack_ffffffc4;
  type_2 *in_stack_ffffffc8;
  type_3 *in_stack_ffffffcc;
  type_6 local_24;
  type_6 local_20;
  
  var_4 = *(int *)(var_3 + 0x18);
  if (var_4 == 0) {
    var_5(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
    var_4 = *(int *)(var_3 + 0x18);
  }
  if (*(int *)(var_4 + 0x4c) != -1) {
    return;
  }
  this_00 = var_6(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  got_entry.addend_._0_4_ = local_24;
  got_entry._0_12_ = var_7(0x7ffffffe) << 0x40;
  got_entry.addend_._4_4_ = local_20;
  uVar2 = gold::var_1<64,var_2>::var_8(this_00,got_entry);
  *(type_5 *)(*(int *)(var_3 + 0x18) + 0x4c) = uVar2;
  return;
}


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

{
  int iVar1;
  undefined4 uVar2;
  undefined4 local_24;
  undefined4 local_20;
  
  iVar1 = *(int *)(param_1 + 0x18);
  if (iVar1 == 0) {
    FUN_0005f750();
    iVar1 = *(int *)(param_1 + 0x18);
  }
  if (*(int *)(iVar1 + 0x4c) != -1) {
    return;
  }
  uVar2 = FUN_0005f360();
  uVar2 = FUN_00100540(uVar2,0,0,0x7ffffffe,local_24,local_20);
  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x4c) = uVar2;
  return;
}

