
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void do_fill_tlsdesc_entry(Output_data_plt_x86_64_bnd * this, uchar *
   pov, Elf_Addr got_address, Elf_Addr plt_address, Elf_Addr got_base, uint tlsdesc_got_offset, uint
   plt_offset) */

void __thiscall
anon_unknown.dwarf_32964f::Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry
          (Output_data_plt_x86_64_bnd *this,uchar *pov,Elf_Addr got_address,Elf_Addr plt_address,
          Elf_Addr got_base,uint tlsdesc_got_offset,uint plt_offset)

{
  undefined4 uVar1;
  
  *(undefined4 *)pov = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32>::tlsdesc_plt_entry;
  *(undefined4 *)(pov + 4) = DAT_00251bcc;
  uVar1 = DAT_00251bd4;
  *(undefined4 *)(pov + 8) = DAT_00251bd0;
  *(undefined4 *)(pov + 0xc) = uVar1;
  *(uint *)(pov + 2) = ((int)got_address + 2) - (plt_offset + (int)plt_address);
  *(uint *)(pov + 9) =
       ((tlsdesc_got_offset - 0xd) + (int)got_base) - (plt_offset + (int)plt_address);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,
                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)

{
  undefined4 uVar1;
  
  *param_2 = DAT_00251bc8;
  param_2[1] = DAT_00251bcc;
  uVar1 = DAT_00251bd4;
  param_2[2] = DAT_00251bd0;
  param_2[3] = uVar1;
  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);
  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);
  return;
}


CALL 0x00058c42
ADD EAX,0x2e62eb
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [EAX + 0xfff12bc8]
MOV dword ptr [EDX],ECX
MOV ECX,dword ptr [EAX + 0xfff12bcc]
MOV dword ptr [EDX + 0x4],ECX
MOV ECX,dword ptr [EAX + 0xfff12bd0]
MOV EAX,dword ptr [EAX + 0xfff12bd4]
MOV dword ptr [EDX + 0x8],ECX
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [EDX + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
ADD ECX,dword ptr [ESP + 0x14]
ADD EAX,0x2
SUB EAX,ECX
MOV dword ptr [EDX + 0x2],EAX
MOV EAX,dword ptr [ESP + 0x24]
SUB EAX,0xd
ADD EAX,dword ptr [ESP + 0x1c]
SUB EAX,ECX
MOV dword ptr [EDX + 0x9],EAX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}\n\n" comment (function_definition "void FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}" primitive_type (function_declarator "FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int param_9" primitive_type identifier) , (parameter_declaration "int param_10" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "*param_2 = DAT_00251bc8;" (assignment_expression "*param_2 = DAT_00251bc8" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = DAT_00251bcc;" (assignment_expression "param_2[1] = DAT_00251bcc" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = DAT_00251bd4;" (assignment_expression "uVar1 = DAT_00251bd4" identifier = identifier) ;) (expression_statement "param_2[2] = DAT_00251bd0;" (assignment_expression "param_2[2] = DAT_00251bd0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = uVar1;" (assignment_expression "param_2[3] = uVar1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);" (assignment_expression "*(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5)" (pointer_expression "*(int *)((int)param_2 + 2)" * (cast_expression "(int *)((int)param_2 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 2)" ( (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(param_3 + 2) - (param_10 + param_5)" (parenthesized_expression "(param_3 + 2)" ( (binary_expression "param_3 + 2" identifier + number_literal) )) - (parenthesized_expression "(param_10 + param_5)" ( (binary_expression "param_10 + param_5" identifier + identifier) )))) ;) (expression_statement "*(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);" (assignment_expression "*(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5)" (pointer_expression "*(int *)((int)param_2 + 9)" * (cast_expression "(int *)((int)param_2 + 9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 9)" ( (binary_expression "(int)param_2 + 9" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(param_9 + -0xd + param_7) - (param_10 + param_5)" (parenthesized_expression "(param_9 + -0xd + param_7)" ( (binary_expression "param_9 + -0xd + param_7" (binary_expression "param_9 + -0xd" identifier + number_literal) + identifier) )) - (parenthesized_expression "(param_10 + param_5)" ( (binary_expression "param_10 + param_5" identifier + identifier) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* DWARF original prototype: void do_fill_tlsdesc_entry(Output_data_plt_x86_64_bnd * this, uchar *\n   pov, Elf_Addr got_address, Elf_Addr plt_address, Elf_Addr got_base, uint tlsdesc_got_offset, uint\n   plt_offset) */\n\nvoid __thiscall\nanon_unknown.dwarf_32964f::Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry\n          (Output_data_plt_x86_64_bnd *this,uchar *pov,Elf_Addr got_address,Elf_Addr plt_address,\n          Elf_Addr got_base,uint tlsdesc_got_offset,uint plt_offset)\n\n{\n  undefined4 uVar1;\n  \n  *(undefined4 *)pov = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32>::tlsdesc_plt_entry;\n  *(undefined4 *)(pov + 4) = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  *(undefined4 *)(pov + 8) = DAT_00251bd0;\n  *(undefined4 *)(pov + 0xc) = uVar1;\n  *(uint *)(pov + 2) = ((int)got_address + 2) - (plt_offset + (int)plt_address);\n  *(uint *)(pov + 9) =\n       ((tlsdesc_got_offset - 0xd) + (int)got_base) - (plt_offset + (int)plt_address);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\nanon_unknown.dwarf_32964f::Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry\n          (Output_data_plt_x86_64_bnd *this,uchar *pov,Elf_Addr got_address,Elf_Addr plt_address,\n          Elf_Addr got_base,uint tlsdesc_got_offset,uint plt_offset)\n\n{\n  undefined4 uVar1;\n  \n  *(undefined4 *)pov = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32>::tlsdesc_plt_entry;\n  *(undefined4 *)(pov + 4) = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  *(undefined4 *)(pov + 8) = DAT_00251bd0;\n  *(undefined4 *)(pov + 0xc) = uVar1;\n  *(uint *)(pov + 2) = ((int)got_address + 2) - (plt_offset + (int)plt_address);\n  *(uint *)(pov + 9) =\n       ((tlsdesc_got_offset - 0xd) + (int)got_base) - (plt_offset + (int)plt_address);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_32964f::Output_data_plt_x86_64_bnd::" identifier . identifier : : identifier : :) (function_declarator "do_fill_tlsdesc_entry\n          (Output_data_plt_x86_64_bnd *this,uchar *pov,Elf_Addr got_address,Elf_Addr plt_address,\n          Elf_Addr got_base,uint tlsdesc_got_offset,uint plt_offset)" identifier (parameter_list "(Output_data_plt_x86_64_bnd *this,uchar *pov,Elf_Addr got_address,Elf_Addr plt_address,\n          Elf_Addr got_base,uint tlsdesc_got_offset,uint plt_offset)" ( (parameter_declaration "Output_data_plt_x86_64_bnd *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *pov" type_identifier (pointer_declarator "*pov" * identifier)) , (parameter_declaration "Elf_Addr got_address" type_identifier identifier) , (parameter_declaration "Elf_Addr plt_address" type_identifier identifier) , (parameter_declaration "Elf_Addr got_base" type_identifier identifier) , (parameter_declaration "uint tlsdesc_got_offset" type_identifier identifier) , (parameter_declaration "uint plt_offset" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *(undefined4 *)pov = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32>::tlsdesc_plt_entry;\n  *(undefined4 *)(pov + 4) = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  *(undefined4 *)(pov + 8) = DAT_00251bd0;\n  *(undefined4 *)(pov + 0xc) = uVar1;\n  *(uint *)(pov + 2) = ((int)got_address + 2) - (plt_offset + (int)plt_address);\n  *(uint *)(pov + 9) =\n       ((tlsdesc_got_offset - 0xd) + (int)got_base) - (plt_offset + (int)plt_address);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "*(undefined4 *)pov = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32>::tlsdesc_plt_entry;" (binary_expression "*(undefined4 *)pov = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32>::tlsdesc_plt_entry" (binary_expression "*(undefined4 *)pov = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32" (assignment_expression "*(undefined4 *)pov = (anonymous_namespace)" (pointer_expression "*(undefined4 *)pov" * (cast_expression "(undefined4 *)pov" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) (ERROR "::Output_data_plt_x86_64_ibt" : : identifier) < number_literal) > (ERROR "::" : :) identifier) ;) (expression_statement "*(undefined4 *)(pov + 4) = DAT_00251bcc;" (assignment_expression "*(undefined4 *)(pov + 4) = DAT_00251bcc" (pointer_expression "*(undefined4 *)(pov + 4)" * (cast_expression "(undefined4 *)(pov + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 4)" ( (binary_expression "pov + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = DAT_00251bd4;" (assignment_expression "uVar1 = DAT_00251bd4" identifier = identifier) ;) (expression_statement "*(undefined4 *)(pov + 8) = DAT_00251bd0;" (assignment_expression "*(undefined4 *)(pov + 8) = DAT_00251bd0" (pointer_expression "*(undefined4 *)(pov + 8)" * (cast_expression "(undefined4 *)(pov + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 8)" ( (binary_expression "pov + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pov + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)(pov + 0xc) = uVar1" (pointer_expression "*(undefined4 *)(pov + 0xc)" * (cast_expression "(undefined4 *)(pov + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 0xc)" ( (binary_expression "pov + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(pov + 2) = ((int)got_address + 2) - (plt_offset + (int)plt_address);" (assignment_expression "*(uint *)(pov + 2) = ((int)got_address + 2) - (plt_offset + (int)plt_address)" (pointer_expression "*(uint *)(pov + 2)" * (cast_expression "(uint *)(pov + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 2)" ( (binary_expression "pov + 2" identifier + number_literal) )))) = (binary_expression "((int)got_address + 2) - (plt_offset + (int)plt_address)" (parenthesized_expression "((int)got_address + 2)" ( (binary_expression "(int)got_address + 2" (cast_expression "(int)got_address" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - (parenthesized_expression "(plt_offset + (int)plt_address)" ( (binary_expression "plt_offset + (int)plt_address" identifier + (cast_expression "(int)plt_address" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(uint *)(pov + 9) =\n       ((tlsdesc_got_offset - 0xd) + (int)got_base) - (plt_offset + (int)plt_address);" (assignment_expression "*(uint *)(pov + 9) =\n       ((tlsdesc_got_offset - 0xd) + (int)got_base) - (plt_offset + (int)plt_address)" (pointer_expression "*(uint *)(pov + 9)" * (cast_expression "(uint *)(pov + 9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 9)" ( (binary_expression "pov + 9" identifier + number_literal) )))) = (binary_expression "((tlsdesc_got_offset - 0xd) + (int)got_base) - (plt_offset + (int)plt_address)" (parenthesized_expression "((tlsdesc_got_offset - 0xd) + (int)got_base)" ( (binary_expression "(tlsdesc_got_offset - 0xd) + (int)got_base" (parenthesized_expression "(tlsdesc_got_offset - 0xd)" ( (binary_expression "tlsdesc_got_offset - 0xd" identifier - number_literal) )) + (cast_expression "(int)got_base" ( (type_descriptor "int" primitive_type) ) identifier)) )) - (parenthesized_expression "(plt_offset + (int)plt_address)" ( (binary_expression "plt_offset + (int)plt_address" identifier + (cast_expression "(int)plt_address" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}\n\n" (function_definition "void FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}" primitive_type (function_declarator "FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int param_9" primitive_type identifier) , (parameter_declaration "int param_10" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "*param_2 = DAT_00251bc8;" (assignment_expression "*param_2 = DAT_00251bc8" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = DAT_00251bcc;" (assignment_expression "param_2[1] = DAT_00251bcc" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = DAT_00251bd4;" (assignment_expression "uVar1 = DAT_00251bd4" identifier = identifier) ;) (expression_statement "param_2[2] = DAT_00251bd0;" (assignment_expression "param_2[2] = DAT_00251bd0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = uVar1;" (assignment_expression "param_2[3] = uVar1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);" (assignment_expression "*(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5)" (pointer_expression "*(int *)((int)param_2 + 2)" * (cast_expression "(int *)((int)param_2 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 2)" ( (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(param_3 + 2) - (param_10 + param_5)" (parenthesized_expression "(param_3 + 2)" ( (binary_expression "param_3 + 2" identifier + number_literal) )) - (parenthesized_expression "(param_10 + param_5)" ( (binary_expression "param_10 + param_5" identifier + identifier) )))) ;) (expression_statement "*(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);" (assignment_expression "*(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5)" (pointer_expression "*(int *)((int)param_2 + 9)" * (cast_expression "(int *)((int)param_2 + 9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 9)" ( (binary_expression "(int)param_2 + 9" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(param_9 + -0xd + param_7) - (param_10 + param_5)" (parenthesized_expression "(param_9 + -0xd + param_7)" ( (binary_expression "param_9 + -0xd + param_7" (binary_expression "param_9 + -0xd" identifier + number_literal) + identifier) )) - (parenthesized_expression "(param_10 + param_5)" ( (binary_expression "param_10 + param_5" identifier + identifier) )))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )) - (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (return_statement return ;) })))
(function_definition "void FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00058d10(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)" (identifier "FUN_00058d10") (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "int param_9" (primitive_type "int") (identifier "param_9")) (, ",") (parameter_declaration "int param_10" (primitive_type "int") (identifier "param_10")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *param_2 = DAT_00251bc8;\n  param_2[1] = DAT_00251bcc;\n  uVar1 = DAT_00251bd4;\n  param_2[2] = DAT_00251bd0;\n  param_2[3] = uVar1;\n  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);\n  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "*param_2 = DAT_00251bc8;" (assignment_expression "*param_2 = DAT_00251bc8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "DAT_00251bc8")) (; ";")) (expression_statement "param_2[1] = DAT_00251bcc;" (assignment_expression "param_2[1] = DAT_00251bcc" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_00251bcc")) (; ";")) (expression_statement "uVar1 = DAT_00251bd4;" (assignment_expression "uVar1 = DAT_00251bd4" (identifier "uVar1") (= "=") (identifier "DAT_00251bd4")) (; ";")) (expression_statement "param_2[2] = DAT_00251bd0;" (assignment_expression "param_2[2] = DAT_00251bd0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "DAT_00251bd0")) (; ";")) (expression_statement "param_2[3] = uVar1;" (assignment_expression "param_2[3] = uVar1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);" (assignment_expression "*(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5)" (pointer_expression "*(int *)((int)param_2 + 2)" (* "*") (cast_expression "(int *)((int)param_2 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 2)" (( "(") (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "(param_3 + 2) - (param_10 + param_5)" (parenthesized_expression "(param_3 + 2)" (( "(") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2")) () ")")) (- "-") (parenthesized_expression "(param_10 + param_5)" (( "(") (binary_expression "param_10 + param_5" (identifier "param_10") (+ "+") (identifier "param_5")) () ")")))) (; ";")) (expression_statement "*(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);" (assignment_expression "*(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5)" (pointer_expression "*(int *)((int)param_2 + 9)" (* "*") (cast_expression "(int *)((int)param_2 + 9)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 9)" (( "(") (binary_expression "(int)param_2 + 9" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "9")) () ")")))) (= "=") (binary_expression "(param_9 + -0xd + param_7) - (param_10 + param_5)" (parenthesized_expression "(param_9 + -0xd + param_7)" (( "(") (binary_expression "param_9 + -0xd + param_7" (binary_expression "param_9 + -0xd" (identifier "param_9") (+ "+") (number_literal "-0xd")) (+ "+") (identifier "param_7")) () ")")) (- "-") (parenthesized_expression "(param_10 + param_5)" (( "(") (binary_expression "param_10 + param_5" (identifier "param_10") (+ "+") (identifier "param_5")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void do_fill_tlsdesc_entry(Output_data_plt_x86_64_bnd * this, uchar *
   pov, Elf_Addr got_address, Elf_Addr plt_address, Elf_Addr got_base, uint tlsdesc_got_offset, uint
   plt_offset) */

void __thiscall
anon_unknown.dwarf_32964f::type_1::function_1
          (type_1 *this,type_2 *var_2,type_3 got_address,type_3 plt_address,
          type_3 got_base,type_4 var_4,type_4 var_3)

{
  type_5 uVar1;
  
  *(type_5 *)var_2 = (anonymous_namespace)::Output_data_plt_x86_64_ibt<32>::var_1;
  *(type_5 *)(var_2 + 4) = DAT_00251bcc;
  uVar1 = DAT_00251bd4;
  *(type_5 *)(var_2 + 8) = DAT_00251bd0;
  *(type_5 *)(var_2 + 0xc) = uVar1;
  *(type_4 *)(var_2 + 2) = ((int)got_address + 2) - (var_3 + (int)plt_address);
  *(type_4 *)(var_2 + 9) =
       ((var_4 - 0xd) + (int)got_base) - (var_3 + (int)plt_address);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,
                 undefined4 param_6,int param_7,undefined4 param_8,int param_9,int param_10)

{
  undefined4 uVar1;
  
  *param_2 = DAT_00251bc8;
  param_2[1] = DAT_00251bcc;
  uVar1 = DAT_00251bd4;
  param_2[2] = DAT_00251bd0;
  param_2[3] = uVar1;
  *(int *)((int)param_2 + 2) = (param_3 + 2) - (param_10 + param_5);
  *(int *)((int)param_2 + 9) = (param_9 + -0xd + param_7) - (param_10 + param_5);
  return;
}

