
/* DWARF original prototype: uint do_fill_plt_entry(Output_data_plt_x86_64_standard<64> * 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_358c2b::Output_data_plt_x86_64_standard<64>::do_fill_plt_entry
          (Output_data_plt_x86_64_standard<64> *this,uchar *pov,Elf_Addr got_address,
          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)

{
  undefined8 uVar1;
  char *format;
  long lVar2;
  
  lVar2 = (ulong)got_offset + ((got_address - plt_address) - (ulong)plt_offset);
  if (0xffffffff < lVar2 + 0x7ffffffaU) {
    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");
    gold::gold_error(format,(ulong)(plt_index + 1));
  }
  uVar1 = Output_data_plt_x86_64_standard<32>::plt_entry._8_8_;
  *(undefined8 *)pov = Output_data_plt_x86_64_standard<32>::plt_entry._0_8_;
  *(undefined8 *)(pov + 8) = uVar1;
  *(int *)(pov + 2) = (int)lVar2 + -6;
  *(uint *)(pov + 7) = plt_index;
  *(uint *)(pov + 0xc) = -0x10 - plt_offset;
  return 6;
}



/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined8
FUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,
            uint param_6,int param_7)

{
  undefined8 uVar1;
  long lVar2;
  
  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);
  if (0xffffffff < lVar2 + 0x7ffffffaU) {
    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");
    FUN_0034a750(uVar1,param_7 + 1);
  }
  uVar1 = _UNK_00539858;
  *param_2 = _DAT_00539850;
  param_2[1] = uVar1;
  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;
  *(int *)((long)param_2 + 7) = param_7;
  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;
  return 6;
}


PUSH R12
MOV EAX,R9D
SUB RDX,RCX
MOV R8D,R8D
PUSH RBP
SUB RDX,RAX
MOV EAX,0xffffffff
MOV RBP,RSI
PUSH RBX
ADD R8,RDX
LEA R12,[R8 + -0x6]
ADD R8,0x7ffffffa
SUB RSP,0x10
MOV EBX,dword ptr [RSP + 0x30]
CMP R8,RAX
JA 0x001a8f10
MOVDQA XMM0,xmmword ptr [0x00539850]
MOV EAX,0xfffffff0
SUB EAX,R9D
MOVUPS xmmword ptr [RBP],XMM0
MOV dword ptr [RBP + 0x2],R12D
MOV dword ptr [RBP + 0x7],EBX
MOV dword ptr [RBP + 0xc],EAX
ADD RSP,0x10
MOV EAX,0x6
POP RBX
POP RBP
POP R12
RET
LEA RDI,[0x536320]
MOV dword ptr [RSP + 0xc],R9D
CALL 0x00177320
LEA ESI,[RBX + 0x1]
MOV RDI,RAX
XOR EAX,EAX
CALL 0x0034a750
MOV R9D,dword ptr [RSP + 0xc]
JMP 0x001a8ee3
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nundefined8\nFUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}\n\n" comment (function_definition "undefined8\nFUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}" type_identifier (function_declarator "FUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);" (assignment_expression "lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6)" identifier = (binary_expression "(ulong)param_5 + ((param_3 - param_4) - (ulong)param_6)" (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier) + (parenthesized_expression "((param_3 - param_4) - (ulong)param_6)" ( (binary_expression "(param_3 - param_4) - (ulong)param_6" (parenthesized_expression "(param_3 - param_4)" ( (binary_expression "param_3 - param_4" identifier - identifier) )) - (cast_expression "(ulong)param_6" ( (type_descriptor "ulong" type_identifier) ) identifier)) )))) ;) (if_statement "if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }" if (parenthesized_expression "(0xffffffff < lVar2 + 0x7ffffffaU)" ( (binary_expression "0xffffffff < lVar2 + 0x7ffffffaU" number_literal < (binary_expression "lVar2 + 0x7ffffffaU" identifier + number_literal)) )) (compound_statement "{\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(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_0034a750(uVar1,param_7 + 1);" (call_expression "FUN_0034a750(uVar1,param_7 + 1)" identifier (argument_list "(uVar1,param_7 + 1)" ( identifier , (binary_expression "param_7 + 1" identifier + number_literal) ))) ;) })) (expression_statement "uVar1 = _UNK_00539858;" (assignment_expression "uVar1 = _UNK_00539858" identifier = identifier) ;) (expression_statement "*param_2 = _DAT_00539850;" (assignment_expression "*param_2 = _DAT_00539850" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)((long)param_2 + 2) = (int)lVar2 + -6;" (assignment_expression "*(int *)((long)param_2 + 2) = (int)lVar2 + -6" (pointer_expression "*(int *)((long)param_2 + 2)" * (cast_expression "(int *)((long)param_2 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 2)" ( (binary_expression "(long)param_2 + 2" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "(int)lVar2 + -6" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "*(int *)((long)param_2 + 7) = param_7;" (assignment_expression "*(int *)((long)param_2 + 7) = param_7" (pointer_expression "*(int *)((long)param_2 + 7)" * (cast_expression "(int *)((long)param_2 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 7)" ( (binary_expression "(long)param_2 + 7" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((long)param_2 + 0xc) = -0x10 - param_6;" (assignment_expression "*(uint *)((long)param_2 + 0xc) = -0x10 - param_6" (pointer_expression "*(uint *)((long)param_2 + 0xc)" * (cast_expression "(uint *)((long)param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "-0x10 - param_6" number_literal - identifier)) ;) (return_statement "return 6;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: uint do_fill_plt_entry(Output_data_plt_x86_64_standard<64> * 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_358c2b::Output_data_plt_x86_64_standard<64>::do_fill_plt_entry\n          (Output_data_plt_x86_64_standard<64> *this,uchar *pov,Elf_Addr got_address,\n          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)\n\n{\n  undefined8 uVar1;\n  char *format;\n  long lVar2;\n  \n  lVar2 = (ulong)got_offset + ((got_address - plt_address) - (ulong)plt_offset);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,(ulong)(plt_index + 1));\n  }\n  uVar1 = Output_data_plt_x86_64_standard<32>::plt_entry._8_8_;\n  *(undefined8 *)pov = Output_data_plt_x86_64_standard<32>::plt_entry._0_8_;\n  *(undefined8 *)(pov + 8) = uVar1;\n  *(int *)(pov + 2) = (int)lVar2 + -6;\n  *(uint *)(pov + 7) = plt_index;\n  *(uint *)(pov + 0xc) = -0x10 - plt_offset;\n  return 6;\n}\n\n" comment (function_definition "uint __thiscall\nanon_unknown.dwarf_358c2b::Output_data_plt_x86_64_standard<64>::do_fill_plt_entry\n          (Output_data_plt_x86_64_standard<64> *this,uchar *pov,Elf_Addr got_address,\n          Elf_Addr plt_address,uint got_offset,uint plt_offset,uint plt_index)\n\n{\n  undefined8 uVar1;\n  char *format;\n  long lVar2;\n  \n  lVar2 = (ulong)got_offset + ((got_address - plt_address) - (ulong)plt_offset);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,(ulong)(plt_index + 1));\n  }\n  uVar1 = Output_data_plt_x86_64_standard<32>::plt_entry._8_8_;\n  *(undefined8 *)pov = Output_data_plt_x86_64_standard<32>::plt_entry._0_8_;\n  *(undefined8 *)(pov + 8) = uVar1;\n  *(int *)(pov + 2) = (int)lVar2 + -6;\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_358c2b::Output_data_plt_x86_64_standard<64>::" identifier . identifier : : identifier < number_literal > : :) (function_declarator "do_fill_plt_entry\n          (Output_data_plt_x86_64_standard<64> *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<64> *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<64> *this" type_identifier (ERROR "<64>" < 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  undefined8 uVar1;\n  char *format;\n  long lVar2;\n  \n  lVar2 = (ulong)got_offset + ((got_address - plt_address) - (ulong)plt_offset);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,(ulong)(plt_index + 1));\n  }\n  uVar1 = Output_data_plt_x86_64_standard<32>::plt_entry._8_8_;\n  *(undefined8 *)pov = Output_data_plt_x86_64_standard<32>::plt_entry._0_8_;\n  *(undefined8 *)(pov + 8) = uVar1;\n  *(int *)(pov + 2) = (int)lVar2 + -6;\n  *(uint *)(pov + 7) = plt_index;\n  *(uint *)(pov + 0xc) = -0x10 - plt_offset;\n  return 6;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = (ulong)got_offset + ((got_address - plt_address) - (ulong)plt_offset);" (assignment_expression "lVar2 = (ulong)got_offset + ((got_address - plt_address) - (ulong)plt_offset)" identifier = (binary_expression "(ulong)got_offset + ((got_address - plt_address) - (ulong)plt_offset)" (cast_expression "(ulong)got_offset" ( (type_descriptor "ulong" type_identifier) ) identifier) + (parenthesized_expression "((got_address - plt_address) - (ulong)plt_offset)" ( (binary_expression "(got_address - plt_address) - (ulong)plt_offset" (parenthesized_expression "(got_address - plt_address)" ( (binary_expression "got_address - plt_address" identifier - identifier) )) - (cast_expression "(ulong)plt_offset" ( (type_descriptor "ulong" type_identifier) ) identifier)) )))) ;) (if_statement "if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,(ulong)(plt_index + 1));\n  }" if (parenthesized_expression "(0xffffffff < lVar2 + 0x7ffffffaU)" ( (binary_expression "0xffffffff < lVar2 + 0x7ffffffaU" number_literal < (binary_expression "lVar2 + 0x7ffffffaU" identifier + number_literal)) )) (compound_statement "{\n    format = (char *)gettext("PC-relative offset overflow in PLT entry %d");\n    gold::gold_error(format,(ulong)(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,(ulong)(plt_index + 1));" statement_identifier : (ERROR ":" :) (expression_statement "gold_error(format,(ulong)(plt_index + 1));" (call_expression "gold_error(format,(ulong)(plt_index + 1))" identifier (argument_list "(format,(ulong)(plt_index + 1))" ( identifier , (call_expression "(ulong)(plt_index + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(plt_index + 1)" ( (binary_expression "plt_index + 1" identifier + number_literal) ))) ))) ;)) })) (expression_statement "uVar1 = Output_data_plt_x86_64_standard<32>::plt_entry._8_8_;" (assignment_expression "uVar1 = Output_data_plt_x86_64_standard<32>::plt_entry._8_8_" identifier = (binary_expression "Output_data_plt_x86_64_standard<32>::plt_entry._8_8_" (binary_expression "Output_data_plt_x86_64_standard<32" identifier < number_literal) > (ERROR "::" : :) (field_expression "plt_entry._8_8_" identifier . field_identifier))) ;) (expression_statement "*(undefined8 *)pov = Output_data_plt_x86_64_standard<32>::plt_entry._0_8_;" (assignment_expression "*(undefined8 *)pov = Output_data_plt_x86_64_standard<32>::plt_entry._0_8_" (pointer_expression "*(undefined8 *)pov" * (cast_expression "(undefined8 *)pov" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "Output_data_plt_x86_64_standard<32>::plt_entry._0_8_" (binary_expression "Output_data_plt_x86_64_standard<32" identifier < number_literal) > (ERROR "::" : :) (field_expression "plt_entry._0_8_" identifier . field_identifier))) ;) (expression_statement "*(undefined8 *)(pov + 8) = uVar1;" (assignment_expression "*(undefined8 *)(pov + 8) = uVar1" (pointer_expression "*(undefined8 *)(pov + 8)" * (cast_expression "(undefined8 *)(pov + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 8)" ( (binary_expression "pov + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(pov + 2) = (int)lVar2 + -6;" (assignment_expression "*(int *)(pov + 2) = (int)lVar2 + -6" (pointer_expression "*(int *)(pov + 2)" * (cast_expression "(int *)(pov + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pov + 2)" ( (binary_expression "pov + 2" identifier + number_literal) )))) = (binary_expression "(int)lVar2 + -6" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (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 "undefined8\nFUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}\n\n" (function_definition "undefined8\nFUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}" type_identifier (function_declarator "FUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);" (assignment_expression "lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6)" identifier = (binary_expression "(ulong)param_5 + ((param_3 - param_4) - (ulong)param_6)" (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier) + (parenthesized_expression "((param_3 - param_4) - (ulong)param_6)" ( (binary_expression "(param_3 - param_4) - (ulong)param_6" (parenthesized_expression "(param_3 - param_4)" ( (binary_expression "param_3 - param_4" identifier - identifier) )) - (cast_expression "(ulong)param_6" ( (type_descriptor "ulong" type_identifier) ) identifier)) )))) ;) (if_statement "if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }" if (parenthesized_expression "(0xffffffff < lVar2 + 0x7ffffffaU)" ( (binary_expression "0xffffffff < lVar2 + 0x7ffffffaU" number_literal < (binary_expression "lVar2 + 0x7ffffffaU" identifier + number_literal)) )) (compound_statement "{\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(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_0034a750(uVar1,param_7 + 1);" (call_expression "FUN_0034a750(uVar1,param_7 + 1)" identifier (argument_list "(uVar1,param_7 + 1)" ( identifier , (binary_expression "param_7 + 1" identifier + number_literal) ))) ;) })) (expression_statement "uVar1 = _UNK_00539858;" (assignment_expression "uVar1 = _UNK_00539858" identifier = identifier) ;) (expression_statement "*param_2 = _DAT_00539850;" (assignment_expression "*param_2 = _DAT_00539850" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)((long)param_2 + 2) = (int)lVar2 + -6;" (assignment_expression "*(int *)((long)param_2 + 2) = (int)lVar2 + -6" (pointer_expression "*(int *)((long)param_2 + 2)" * (cast_expression "(int *)((long)param_2 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 2)" ( (binary_expression "(long)param_2 + 2" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "(int)lVar2 + -6" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "*(int *)((long)param_2 + 7) = param_7;" (assignment_expression "*(int *)((long)param_2 + 7) = param_7" (pointer_expression "*(int *)((long)param_2 + 7)" * (cast_expression "(int *)((long)param_2 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 7)" ( (binary_expression "(long)param_2 + 7" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((long)param_2 + 0xc) = -0x10 - param_6;" (assignment_expression "*(uint *)((long)param_2 + 0xc) = -0x10 - param_6" (pointer_expression "*(uint *)((long)param_2 + 0xc)" * (cast_expression "(uint *)((long)param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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 (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (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 IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression LIT - IDENT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined8\nFUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}" (type_identifier "undefined8") (function_declarator "FUN_001a8eb0(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)" (identifier "FUN_001a8eb0") (parameter_list "(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,\n            uint param_6,int param_7)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  \n  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);\n  if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }\n  uVar1 = _UNK_00539858;\n  *param_2 = _DAT_00539850;\n  param_2[1] = uVar1;\n  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;\n  *(int *)((long)param_2 + 7) = param_7;\n  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;\n  return 6;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);" (assignment_expression "lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6)" (identifier "lVar2") (= "=") (binary_expression "(ulong)param_5 + ((param_3 - param_4) - (ulong)param_6)" (cast_expression "(ulong)param_5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_5")) (+ "+") (parenthesized_expression "((param_3 - param_4) - (ulong)param_6)" (( "(") (binary_expression "(param_3 - param_4) - (ulong)param_6" (parenthesized_expression "(param_3 - param_4)" (( "(") (binary_expression "param_3 - param_4" (identifier "param_3") (- "-") (identifier "param_4")) () ")")) (- "-") (cast_expression "(ulong)param_6" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_6"))) () ")")))) (; ";")) (if_statement "if (0xffffffff < lVar2 + 0x7ffffffaU) {\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(uVar1,param_7 + 1);\n  }" (if "if") (parenthesized_expression "(0xffffffff < lVar2 + 0x7ffffffaU)" (( "(") (binary_expression "0xffffffff < lVar2 + 0x7ffffffaU" (number_literal "0xffffffff") (< "<") (binary_expression "lVar2 + 0x7ffffffaU" (identifier "lVar2") (+ "+") (number_literal "0x7ffffffaU"))) () ")")) (compound_statement "{\n    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");\n    FUN_0034a750(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_0034a750(uVar1,param_7 + 1);" (call_expression "FUN_0034a750(uVar1,param_7 + 1)" (identifier "FUN_0034a750") (argument_list "(uVar1,param_7 + 1)" (( "(") (identifier "uVar1") (, ",") (binary_expression "param_7 + 1" (identifier "param_7") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = _UNK_00539858;" (assignment_expression "uVar1 = _UNK_00539858" (identifier "uVar1") (= "=") (identifier "_UNK_00539858")) (; ";")) (expression_statement "*param_2 = _DAT_00539850;" (assignment_expression "*param_2 = _DAT_00539850" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "_DAT_00539850")) (; ";")) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(int *)((long)param_2 + 2) = (int)lVar2 + -6;" (assignment_expression "*(int *)((long)param_2 + 2) = (int)lVar2 + -6" (pointer_expression "*(int *)((long)param_2 + 2)" (* "*") (cast_expression "(int *)((long)param_2 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 2)" (( "(") (binary_expression "(long)param_2 + 2" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "(int)lVar2 + -6" (cast_expression "(int)lVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar2")) (+ "+") (number_literal "-6"))) (; ";")) (expression_statement "*(int *)((long)param_2 + 7) = param_7;" (assignment_expression "*(int *)((long)param_2 + 7) = param_7" (pointer_expression "*(int *)((long)param_2 + 7)" (* "*") (cast_expression "(int *)((long)param_2 + 7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 7)" (( "(") (binary_expression "(long)param_2 + 7" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "7")) () ")")))) (= "=") (identifier "param_7")) (; ";")) (expression_statement "*(uint *)((long)param_2 + 0xc) = -0x10 - param_6;" (assignment_expression "*(uint *)((long)param_2 + 0xc) = -0x10 - param_6" (pointer_expression "*(uint *)((long)param_2 + 0xc)" (* "*") (cast_expression "(uint *)((long)param_2 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "-0x10 - param_6" (number_literal "-0x10") (- "-") (identifier "param_6"))) (; ";")) (return_statement "return 6;" (return "return") (number_literal "6") (; ";")) (} "}")))

/* DWARF original prototype: uint do_fill_plt_entry(Output_data_plt_x86_64_standard<64> * 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_358c2b::type_2<64>::function_1
          (type_2<64> *this,type_3 *var_7,type_4 var_1,
          type_4 var_2,type_1 got_offset,type_1 var_8,type_1 var_6)

{
  type_5 uVar1;
  char *format;
  long var_3;
  
  var_3 = (type_6)got_offset + ((var_1 - var_2) - (type_6)var_8);
  if (0xffffffff < var_3 + 0x7ffffffaU) {
    format = (char *)var_4("PC-relative offset overflow in PLT entry %d");
    gold::var_5(format,(type_6)(var_6 + 1));
  }
  uVar1 = type_2<32>::plt_entry._8_8_;
  *(type_5 *)var_7 = type_2<32>::plt_entry._0_8_;
  *(type_5 *)(var_7 + 8) = uVar1;
  *(int *)(var_7 + 2) = (int)var_3 + -6;
  *(type_1 *)(var_7 + 7) = var_6;
  *(type_1 *)(var_7 + 0xc) = -0x10 - var_8;
  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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) 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: (identifier) right: (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: (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: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (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: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) 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: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (number_literal) right: (identifier)))) (return_statement (number_literal)))))

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined8
MASKED(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,uint param_5,
            uint param_6,int param_7)

{
  undefined8 uVar1;
  long lVar2;
  
  lVar2 = (ulong)param_5 + ((param_3 - param_4) - (ulong)param_6);
  if (0xffffffff < lVar2 + 0x7ffffffaU) {
    uVar1 = gettext("PC-relative offset overflow in PLT entry %d");
    FUN_0034a750(uVar1,param_7 + 1);
  }
  uVar1 = _UNK_00539858;
  *param_2 = _DAT_00539850;
  param_2[1] = uVar1;
  *(int *)((long)param_2 + 2) = (int)lVar2 + -6;
  *(int *)((long)param_2 + 7) = param_7;
  *(uint *)((long)param_2 + 0xc) = -0x10 - param_6;
  return 6;
}

