
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint do_fill_plt_entry(Output_data_plt_x86_64_standard<32> * this,
   uchar * pov, Elf_Addr got_address, Elf_Addr plt_address, uint got_offset, uint plt_offset, uint
   plt_index) */

uint __thiscall
anon_unknown.dwarf_32964f::Output_data_plt_x86_64_standard<32>::do_fill_plt_entry
          (Output_data_plt_x86_64_standard<32> *this,uchar *pov,Elf_Addr got_address,
          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)

{
  undefined4 uVar1;
  char *format;
  uint uVar2;
  
  uVar2 = (((-6 - plt_offset) + got_offset) - plt_address) + got_address;
  if (0x7fffffff < uVar2) {
    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");
    gold::gold_error(format,plt_index + 1);
  }
  *(undefined4 *)pov = plt_entry._0_4_;
  *(undefined4 *)(pov + 4) = plt_entry._4_4_;
  uVar1 = plt_entry._8_4_;
  *(uint *)(pov + 2) = uVar2;
  *(undefined4 *)(pov + 8) = uVar1;
  *(uint *)(pov + 7) = plt_index;
  *(uint *)(pov + 0xc) = -0x10 - plt_offset;
  return 6;
}



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

undefined4
FUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,
            int param_7)

{
  undefined4 uVar1;
  uint uVar2;
  
  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;
  if (0x7fffffff < uVar2) {
    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");
    FUN_000828d0(uVar1,param_7 + 1);
  }
  *param_2 = DAT_002516b0;
  param_2[1] = DAT_002516b4;
  uVar1 = DAT_002516b8;
  *(uint *)((int)param_2 + 2) = uVar2;
  param_2[2] = uVar1;
  *(int *)((int)param_2 + 7) = param_7;
  param_2[3] = -0x10 - param_6;
  return 6;
}


PUSH EBP
XOR EDX,EDX
PUSH EDI
MOV EDI,0xfffffffa
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x2e49b0
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x24]
SUB EDI,EBP
ADD EDI,dword ptr [ESP + 0x30]
SUB EDI,dword ptr [ESP + 0x2c]
ADD EDI,dword ptr [ESP + 0x28]
MOV EAX,EDI
ADD EAX,0x80000000
ADC EDX,0x0
CMP EDX,0x0
JA 0x0005a6c0
MOV EAX,dword ptr [EBX + 0xfff126b0]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EBX + 0xfff126b4]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EBX + 0xfff126b8]
MOV dword ptr [ESI + 0x2],EDI
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESI + 0x7],EAX
MOV EAX,0xfffffff0
SUB EAX,EBP
MOV dword ptr [ESI + 0xc],EAX
ADD ESP,0xc
MOV EAX,0x6
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff0f220]
PUSH EAX
CALL 0x000283c0
POP EDX
POP ECX
MOV ECX,dword ptr [ESP + 0x40]
LEA EDX,[ECX + 0x1]
PUSH EDX
PUSH EAX
CALL 0x000828d0
ADD ESP,0x10
JMP 0x0005a67e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}\n\n" comment (function_definition "undefined4\nFUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}" type_identifier (function_declarator "FUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)" ( (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 "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;" (assignment_expression "uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3" identifier = (binary_expression "(((-6 - param_6) + param_5) - param_4) + param_3" (parenthesized_expression "(((-6 - param_6) + param_5) - param_4)" ( (binary_expression "((-6 - param_6) + param_5) - param_4" (parenthesized_expression "((-6 - param_6) + param_5)" ( (binary_expression "(-6 - param_6) + param_5" (parenthesized_expression "(-6 - param_6)" ( (binary_expression "-6 - param_6" number_literal - identifier) )) + identifier) )) - identifier) )) + identifier)) ;) (if_statement "if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }" if (parenthesized_expression "(0x7fffffff < uVar2)" ( (binary_expression "0x7fffffff < uVar2" number_literal < identifier) )) (compound_statement "{\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }" { (expression_statement "uVar1 = gettext("PC-relative offset overflow in PLT entry %d");" (assignment_expression "uVar1 = gettext("PC-relative offset overflow in PLT entry %d")" identifier = (call_expression "gettext("PC-relative offset overflow in PLT entry %d")" identifier (argument_list "("PC-relative offset overflow in PLT entry %d")" ( (string_literal ""PC-relative offset overflow in PLT entry %d"" " string_content ") )))) ;) (expression_statement "FUN_000828d0(uVar1,param_7 + 1);" (call_expression "FUN_000828d0(uVar1,param_7 + 1)" identifier (argument_list "(uVar1,param_7 + 1)" ( identifier , (binary_expression "param_7 + 1" identifier + number_literal) ))) ;) })) (expression_statement "*param_2 = DAT_002516b0;" (assignment_expression "*param_2 = DAT_002516b0" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = DAT_002516b4;" (assignment_expression "param_2[1] = DAT_002516b4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = DAT_002516b8;" (assignment_expression "uVar1 = DAT_002516b8" identifier = identifier) ;) (expression_statement "*(uint *)((int)param_2 + 2) = uVar2;" (assignment_expression "*(uint *)((int)param_2 + 2) = uVar2" (pointer_expression "*(uint *)((int)param_2 + 2)" * (cast_expression "(uint *)((int)param_2 + 2)" ( (type_descriptor "uint *" type_identifier (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) )))) = identifier) ;) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)((int)param_2 + 7) = param_7;" (assignment_expression "*(int *)((int)param_2 + 7) = param_7" (pointer_expression "*(int *)((int)param_2 + 7)" * (cast_expression "(int *)((int)param_2 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 7)" ( (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "param_2[3] = -0x10 - param_6;" (assignment_expression "param_2[3] = -0x10 - param_6" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (binary_expression "-0x10 - param_6" number_literal - identifier)) ;) (return_statement "return 6;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: uint do_fill_plt_entry(Output_data_plt_x86_64_standard<32> * this,\n   uchar * pov, Elf_Addr got_address, Elf_Addr plt_address, uint got_offset, uint plt_offset, uint\n   plt_index) */\n\nuint __thiscall\nanon_unknown.dwarf_32964f::Output_data_plt_x86_64_standard<32>::do_fill_plt_entry\n          (Output_data_plt_x86_64_standard<32> *this,uchar *pov,Elf_Addr got_address,\n          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)\n\n{\n  undefined4 uVar1;\n  char *format;\n  uint uVar2;\n  \n  uVar2 = (((-6 - plt_offset) + got_offset) - plt_address) + got_address;\n  if (0x7fffffff < uVar2) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,plt_index + 1);\n  }\n  *(undefined4 *)pov = plt_entry._0_4_;\n  *(undefined4 *)(pov + 4) = plt_entry._4_4_;\n  uVar1 = plt_entry._8_4_;\n  *(uint *)(pov + 2) = uVar2;\n  *(undefined4 *)(pov + 8) = uVar1;\n  *(uint *)(pov + 7) = plt_index;\n  *(uint *)(pov + 0xc) = -0x10 - plt_offset;\n  return 6;\n}\n\n" comment comment (function_definition "uint __thiscall\nanon_unknown.dwarf_32964f::Output_data_plt_x86_64_standard<32>::do_fill_plt_entry\n          (Output_data_plt_x86_64_standard<32> *this,uchar *pov,Elf_Addr got_address,\n          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)\n\n{\n  undefined4 uVar1;\n  char *format;\n  uint uVar2;\n  \n  uVar2 = (((-6 - plt_offset) + got_offset) - plt_address) + got_address;\n  if (0x7fffffff < uVar2) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,plt_index + 1);\n  }\n  *(undefined4 *)pov = plt_entry._0_4_;\n  *(undefined4 *)(pov + 4) = plt_entry._4_4_;\n  uVar1 = plt_entry._8_4_;\n  *(uint *)(pov + 2) = uVar2;\n  *(undefined4 *)(pov + 8) = uVar1;\n  *(uint *)(pov + 7) = plt_index;\n  *(uint *)(pov + 0xc) = -0x10 - plt_offset;\n  return 6;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_32964f::Output_data_plt_x86_64_standard<32>::" identifier . identifier : : identifier < number_literal > : :) (function_declarator "do_fill_plt_entry\n          (Output_data_plt_x86_64_standard<32> *this,uchar *pov,Elf_Addr got_address,\n          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)" identifier (parameter_list "(Output_data_plt_x86_64_standard<32> *this,uchar *pov,Elf_Addr got_address,\n          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)" ( (parameter_declaration "Output_data_plt_x86_64_standard<32> *this" type_identifier (ERROR "<32>" < number_literal >) (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 "uint got_offset" type_identifier identifier) , (parameter_declaration "uint plt_offset" type_identifier identifier) , (parameter_declaration "uint plt_index" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *format;\n  uint uVar2;\n  \n  uVar2 = (((-6 - plt_offset) + got_offset) - plt_address) + got_address;\n  if (0x7fffffff < uVar2) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,plt_index + 1);\n  }\n  *(undefined4 *)pov = plt_entry._0_4_;\n  *(undefined4 *)(pov + 4) = plt_entry._4_4_;\n  uVar1 = plt_entry._8_4_;\n  *(uint *)(pov + 2) = uVar2;\n  *(undefined4 *)(pov + 8) = uVar1;\n  *(uint *)(pov + 7) = plt_index;\n  *(uint *)(pov + 0xc) = -0x10 - plt_offset;\n  return 6;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (((-6 - plt_offset) + got_offset) - plt_address) + got_address;" (assignment_expression "uVar2 = (((-6 - plt_offset) + got_offset) - plt_address) + got_address" identifier = (binary_expression "(((-6 - plt_offset) + got_offset) - plt_address) + got_address" (parenthesized_expression "(((-6 - plt_offset) + got_offset) - plt_address)" ( (binary_expression "((-6 - plt_offset) + got_offset) - plt_address" (parenthesized_expression "((-6 - plt_offset) + got_offset)" ( (binary_expression "(-6 - plt_offset) + got_offset" (parenthesized_expression "(-6 - plt_offset)" ( (binary_expression "-6 - plt_offset" number_literal - identifier) )) + identifier) )) - identifier) )) + identifier)) ;) (if_statement "if (0x7fffffff < uVar2) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,plt_index + 1);\n  }" if (parenthesized_expression "(0x7fffffff < uVar2)" ( (binary_expression "0x7fffffff < uVar2" number_literal < identifier) )) (compound_statement "{\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,plt_index + 1);\n  }" { (expression_statement "format = (char *)gettext("PC-relative offset overflow in PLT entry %d");" (assignment_expression "format = (char *)gettext("PC-relative offset overflow in PLT entry %d")" identifier = (cast_expression "(char *)gettext("PC-relative offset overflow in PLT entry %d")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("PC-relative offset overflow in PLT entry %d")" identifier (argument_list "("PC-relative offset overflow in PLT entry %d")" ( (string_literal ""PC-relative offset overflow in PLT entry %d"" " string_content ") ))))) ;) (labeled_statement "gold::gold_error(format,plt_index + 1);" statement_identifier : (ERROR ":" :) (expression_statement "gold_error(format,plt_index + 1);" (call_expression "gold_error(format,plt_index + 1)" identifier (argument_list "(format,plt_index + 1)" ( identifier , (binary_expression "plt_index + 1" identifier + number_literal) ))) ;)) })) (expression_statement "*(undefined4 *)pov = plt_entry._0_4_;" (assignment_expression "*(undefined4 *)pov = plt_entry._0_4_" (pointer_expression "*(undefined4 *)pov" * (cast_expression "(undefined4 *)pov" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (field_expression "plt_entry._0_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined4 *)(pov + 4) = plt_entry._4_4_;" (assignment_expression "*(undefined4 *)(pov + 4) = plt_entry._4_4_" (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) )))) = (field_expression "plt_entry._4_4_" identifier . field_identifier)) ;) (expression_statement "uVar1 = plt_entry._8_4_;" (assignment_expression "uVar1 = plt_entry._8_4_" identifier = (field_expression "plt_entry._8_4_" identifier . field_identifier)) ;) (expression_statement "*(uint *)(pov + 2) = uVar2;" (assignment_expression "*(uint *)(pov + 2) = uVar2" (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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pov + 8) = uVar1;" (assignment_expression "*(undefined4 *)(pov + 8) = uVar1" (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 "*(uint *)(pov + 7) = plt_index;" (assignment_expression "*(uint *)(pov + 7) = plt_index" (pointer_expression "*(uint *)(pov + 7)" * (cast_expression "(uint *)(pov + 7)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 7)" ( (binary_expression "pov + 7" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(pov + 0xc) = -0x10 - plt_offset;" (assignment_expression "*(uint *)(pov + 0xc) = -0x10 - plt_offset" (pointer_expression "*(uint *)(pov + 0xc)" * (cast_expression "(uint *)(pov + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 0xc)" ( (binary_expression "pov + 0xc" identifier + number_literal) )))) = (binary_expression "-0x10 - plt_offset" number_literal - identifier)) ;) (return_statement "return 6;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}\n\n" (function_definition "undefined4\nFUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}" type_identifier (function_declarator "FUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)" ( (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 "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;" (assignment_expression "uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3" identifier = (binary_expression "(((-6 - param_6) + param_5) - param_4) + param_3" (parenthesized_expression "(((-6 - param_6) + param_5) - param_4)" ( (binary_expression "((-6 - param_6) + param_5) - param_4" (parenthesized_expression "((-6 - param_6) + param_5)" ( (binary_expression "(-6 - param_6) + param_5" (parenthesized_expression "(-6 - param_6)" ( (binary_expression "-6 - param_6" number_literal - identifier) )) + identifier) )) - identifier) )) + identifier)) ;) (if_statement "if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }" if (parenthesized_expression "(0x7fffffff < uVar2)" ( (binary_expression "0x7fffffff < uVar2" number_literal < identifier) )) (compound_statement "{\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }" { (expression_statement "uVar1 = gettext("PC-relative offset overflow in PLT entry %d");" (assignment_expression "uVar1 = gettext("PC-relative offset overflow in PLT entry %d")" identifier = (call_expression "gettext("PC-relative offset overflow in PLT entry %d")" identifier (argument_list "("PC-relative offset overflow in PLT entry %d")" ( (string_literal ""PC-relative offset overflow in PLT entry %d"" " string_content ") )))) ;) (expression_statement "FUN_000828d0(uVar1,param_7 + 1);" (call_expression "FUN_000828d0(uVar1,param_7 + 1)" identifier (argument_list "(uVar1,param_7 + 1)" ( identifier , (binary_expression "param_7 + 1" identifier + number_literal) ))) ;) })) (expression_statement "*param_2 = DAT_002516b0;" (assignment_expression "*param_2 = DAT_002516b0" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = DAT_002516b4;" (assignment_expression "param_2[1] = DAT_002516b4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = DAT_002516b8;" (assignment_expression "uVar1 = DAT_002516b8" identifier = identifier) ;) (expression_statement "*(uint *)((int)param_2 + 2) = uVar2;" (assignment_expression "*(uint *)((int)param_2 + 2) = uVar2" (pointer_expression "*(uint *)((int)param_2 + 2)" * (cast_expression "(uint *)((int)param_2 + 2)" ( (type_descriptor "uint *" type_identifier (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) )))) = identifier) ;) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)((int)param_2 + 7) = param_7;" (assignment_expression "*(int *)((int)param_2 + 7) = param_7" (pointer_expression "*(int *)((int)param_2 + 7)" * (cast_expression "(int *)((int)param_2 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 7)" ( (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "param_2[3] = -0x10 - param_6;" (assignment_expression "param_2[3] = -0x10 - param_6" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (binary_expression "-0x10 - param_6" number_literal - identifier)) ;) (return_statement "return 6;" return number_literal ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) + IDENT) )) - IDENT) )) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression LIT - IDENT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005a640(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)" (identifier "FUN_0005a640") (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,\n            int param_7)" (( "(") (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 "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  \n  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;\n  if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }\n  *param_2 = DAT_002516b0;\n  param_2[1] = DAT_002516b4;\n  uVar1 = DAT_002516b8;\n  *(uint *)((int)param_2 + 2) = uVar2;\n  param_2[2] = uVar1;\n  *(int *)((int)param_2 + 7) = param_7;\n  param_2[3] = -0x10 - param_6;\n  return 6;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;" (assignment_expression "uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3" (identifier "uVar2") (= "=") (binary_expression "(((-6 - param_6) + param_5) - param_4) + param_3" (parenthesized_expression "(((-6 - param_6) + param_5) - param_4)" (( "(") (binary_expression "((-6 - param_6) + param_5) - param_4" (parenthesized_expression "((-6 - param_6) + param_5)" (( "(") (binary_expression "(-6 - param_6) + param_5" (parenthesized_expression "(-6 - param_6)" (( "(") (binary_expression "-6 - param_6" (number_literal "-6") (- "-") (identifier "param_6")) () ")")) (+ "+") (identifier "param_5")) () ")")) (- "-") (identifier "param_4")) () ")")) (+ "+") (identifier "param_3"))) (; ";")) (if_statement "if (0x7fffffff < uVar2) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }" (if "if") (parenthesized_expression "(0x7fffffff < uVar2)" (( "(") (binary_expression "0x7fffffff < uVar2" (number_literal "0x7fffffff") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_000828d0(uVar1,param_7 + 1);\n  }" ({ "{") (expression_statement "uVar1 = gettext("PC-relative offset overflow in PLT entry %d");" (assignment_expression "uVar1 = gettext("PC-relative offset overflow in PLT entry %d")" (identifier "uVar1") (= "=") (call_expression "gettext("PC-relative offset overflow in PLT entry %d")" (identifier "gettext") (argument_list "("PC-relative offset overflow in PLT entry %d")" (( "(") (string_literal ""PC-relative offset overflow in PLT entry %d"" (" """) (string_content "PC-relative offset overflow in PLT entry %d") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000828d0(uVar1,param_7 + 1);" (call_expression "FUN_000828d0(uVar1,param_7 + 1)" (identifier "FUN_000828d0") (argument_list "(uVar1,param_7 + 1)" (( "(") (identifier "uVar1") (, ",") (binary_expression "param_7 + 1" (identifier "param_7") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (expression_statement "*param_2 = DAT_002516b0;" (assignment_expression "*param_2 = DAT_002516b0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "DAT_002516b0")) (; ";")) (expression_statement "param_2[1] = DAT_002516b4;" (assignment_expression "param_2[1] = DAT_002516b4" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_002516b4")) (; ";")) (expression_statement "uVar1 = DAT_002516b8;" (assignment_expression "uVar1 = DAT_002516b8" (identifier "uVar1") (= "=") (identifier "DAT_002516b8")) (; ";")) (expression_statement "*(uint *)((int)param_2 + 2) = uVar2;" (assignment_expression "*(uint *)((int)param_2 + 2) = uVar2" (pointer_expression "*(uint *)((int)param_2 + 2)" (* "*") (cast_expression "(uint *)((int)param_2 + 2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (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")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(int *)((int)param_2 + 7) = param_7;" (assignment_expression "*(int *)((int)param_2 + 7) = param_7" (pointer_expression "*(int *)((int)param_2 + 7)" (* "*") (cast_expression "(int *)((int)param_2 + 7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 7)" (( "(") (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "7")) () ")")))) (= "=") (identifier "param_7")) (; ";")) (expression_statement "param_2[3] = -0x10 - param_6;" (assignment_expression "param_2[3] = -0x10 - param_6" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "-0x10 - param_6" (number_literal "-0x10") (- "-") (identifier "param_6"))) (; ";")) (return_statement "return 6;" (return "return") (number_literal "6") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint do_fill_plt_entry(Output_data_plt_x86_64_standard<32> * this,
   uchar * pov, Elf_Addr got_address, Elf_Addr plt_address, uint got_offset, uint plt_offset, uint
   plt_index) */

type_1 __thiscall
anon_unknown.dwarf_32964f::type_2<32>::function_1
          (type_2<32> *this,type_3 *var_9,type_4 var_4,
          type_4 var_3,type_1 var_2,type_1 var_1,type_1 var_8)

{
  type_5 uVar1;
  char *format;
  type_1 var_5;
  
  var_5 = (((-6 - var_1) + var_2) - var_3) + var_4;
  if (0x7fffffff < var_5) {
    format = (char *)var_6("PC-relative offset overflow in PLT entry %d");
    gold::var_7(format,var_8 + 1);
  }
  *(type_5 *)var_9 = plt_entry._0_4_;
  *(type_5 *)(var_9 + 4) = plt_entry._4_4_;
  uVar1 = plt_entry._8_4_;
  *(type_1 *)(var_9 + 2) = var_5;
  *(type_5 *)(var_9 + 8) = uVar1;
  *(type_1 *)(var_9 + 7) = var_8;
  *(type_1 *)(var_9 + 0xc) = -0x10 - var_1;
  return 6;
}


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

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

undefined4
MASKED(undefined4 param_1,undefined4 *param_2,int param_3,int param_4,int param_5,int param_6,
            int param_7)

{
  undefined4 uVar1;
  uint uVar2;
  
  uVar2 = (((-6 - param_6) + param_5) - param_4) + param_3;
  if (0x7fffffff < uVar2) {
    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");
    FUN_000828d0(uVar1,param_7 + 1);
  }
  *param_2 = DAT_002516b0;
  param_2[1] = DAT_002516b4;
  uVar1 = DAT_002516b8;
  *(uint *)((int)param_2 + 2) = uVar2;
  param_2[2] = uVar1;
  *(int *)((int)param_2 + 7) = param_7;
  param_2[3] = -0x10 - param_6;
  return 6;
}

