
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void register_global_plt_entry(Target_tilegx<32,_false> * this,
   Symbol_table * symtab, Layout * layout, uint plt_index, Symbol * gsym) */

void __thiscall
anon_unknown.dwarf_b97484::Target_tilegx<32,_false>::register_global_plt_entry
          (Target_tilegx<32,_false> *this,Symbol_table *symtab,Layout *layout,uint plt_index,
          Symbol *gsym)

{
}



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

void __regparm2
FUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5
            ,int param_6,int param_7)

{
  int iVar1;
  int iVar2;
  
  if (*(int *)(param_3 + 0x18) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);
  }
  if (*(int *)(param_7 + 0x18) == -1) {
    iVar2 = (param_6 + 2) * 0x28;
    iVar1 = iVar2 + -0x28;
    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);
    *(int *)(param_7 + 0x18) = iVar1;
    FUN_00165ae0();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x484317
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x4],EAX
MOV ECX,dword ptr [EBP + 0x18]
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x3c]
TEST ECX,ECX
JZ 0x00165d6b
CMP dword ptr [ESI + 0x18],-0x1
JNZ 0x00165d84
ADD EAX,0x2
SUB ESP,0xc
ADD ECX,0x4c
LEA EDX,[EAX*0x4 + 0x0]
ADD EAX,EDX
MOV dword ptr [ESP + 0x18],EDX
XOR EDX,EDX
SHL EAX,0x3
PUSH EDX
XOR EDX,EDX
LEA EDI,[EAX + -0x28]
PUSH EAX
PUSH EDX
PUSH EDI
PUSH ECX
CALL 0x00270b80
MOV EDX,dword ptr [ESP + 0x2c]
MOV EAX,dword ptr [EBP + 0x18]
MOV dword ptr [ESI + 0x18],EDI
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x50],ESI
MOV dword ptr [ESP + 0x54],EDX
MOV EDX,dword ptr [ESP + 0x24]
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00165ae0
LEA EAX,[EBX + 0xffe856d4]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffe82a52]
PUSH 0xaf7
PUSH EAX
CALL 0x002446e0
PUSH EAX
LEA EAX,[EBX + 0xffe856d4]
PUSH EAX
LEA EAX,[EBX + 0xffe82a52]
PUSH 0xaf8
PUSH EAX
CALL 0x002446e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm2\nFUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}\n\n" comment (function_definition "void __regparm2\nFUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(int *)(param_3 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x18) == 0)" ( (binary_expression "*(int *)(param_3 + 0x18) == 0" (pointer_expression "*(int *)(param_3 + 0x18)" * (cast_expression "(int *)(param_3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }" { comment (expression_statement "FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);" (call_expression "FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2)" identifier (argument_list "("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2)" ( (string_literal ""../../gold/tilegx.cc"" " string_content ") , number_literal , (string_literal ""register_global_plt_entry"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_7 + 0x18) == -1)" ( (binary_expression "*(int *)(param_7 + 0x18) == -1" (pointer_expression "*(int *)(param_7 + 0x18)" * (cast_expression "(int *)(param_7 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7 + 0x18)" ( (binary_expression "param_7 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }" { (expression_statement "iVar2 = (param_6 + 2) * 0x28;" (assignment_expression "iVar2 = (param_6 + 2) * 0x28" identifier = (binary_expression "(param_6 + 2) * 0x28" (parenthesized_expression "(param_6 + 2)" ( (binary_expression "param_6 + 2" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar1 = iVar2 + -0x28;" (assignment_expression "iVar1 = iVar2 + -0x28" identifier = (binary_expression "iVar2 + -0x28" identifier + number_literal)) ;) (expression_statement "FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);" (call_expression "FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0)" identifier (argument_list "(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0)" ( (binary_expression "*(int *)(param_3 + 0x18) + 0x4c" (pointer_expression "*(int *)(param_3 + 0x18)" * (cast_expression "(int *)(param_3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) + number_literal) , identifier , number_literal , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_7 + 0x18) = iVar1;" (assignment_expression "*(int *)(param_7 + 0x18) = iVar1" (pointer_expression "*(int *)(param_7 + 0x18)" * (cast_expression "(int *)(param_7 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7 + 0x18)" ( (binary_expression "param_7 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00165ae0();" (call_expression "FUN_00165ae0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);" (call_expression "FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6)" identifier (argument_list "("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6)" ( (string_literal ""../../gold/tilegx.cc"" " string_content ") , number_literal , (string_literal ""register_global_plt_entry"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void register_global_plt_entry(Target_tilegx<32,_false> * this,\n   Symbol_table * symtab, Layout * layout, uint plt_index, Symbol * gsym) */\n\nvoid __thiscall\nanon_unknown.dwarf_b97484::Target_tilegx<32,_false>::register_global_plt_entry\n          (Target_tilegx<32,_false> *this,Symbol_table *symtab,Layout *layout,uint plt_index,\n          Symbol *gsym)\n\n{\n}\n\n" comment comment comment comment (ERROR "void __thiscall\nanon_unknown.dwarf_b97484::Target_tilegx<32,_false>::register_global_plt_entry\n          (Target_tilegx<32,_false> *this,Symbol_table *symtab,Layout *layout,uint plt_index,\n          Symbol *gsym)" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_b97484::" identifier . identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_false>::" identifier > : :) (function_declarator "register_global_plt_entry\n          (Target_tilegx<32,_false> *this,Symbol_table *symtab,Layout *layout,uint plt_index,\n          Symbol *gsym)" identifier (parameter_list "(Target_tilegx<32,_false> *this,Symbol_table *symtab,Layout *layout,uint plt_index,\n          Symbol *gsym)" ( (parameter_declaration "Target_tilegx" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol_table *symtab" type_identifier (pointer_declarator "*symtab" * identifier)) , (parameter_declaration "Layout *layout" type_identifier (pointer_declarator "*layout" * identifier)) , (parameter_declaration "uint plt_index" type_identifier identifier) , (parameter_declaration "Symbol *gsym" type_identifier (pointer_declarator "*gsym" * identifier)) )))) (compound_statement "{\n}" { }))
(translation_unit "void __regparm2\nFUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}\n\n" (function_definition "void __regparm2\nFUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(int *)(param_3 + 0x18) == 0) {\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x18) == 0)" ( (binary_expression "*(int *)(param_3 + 0x18) == 0" (pointer_expression "*(int *)(param_3 + 0x18)" * (cast_expression "(int *)(param_3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }" { (expression_statement "FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);" (call_expression "FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2)" identifier (argument_list "("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2)" ( (string_literal ""../../gold/tilegx.cc"" " string_content ") , number_literal , (string_literal ""register_global_plt_entry"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_7 + 0x18) == -1)" ( (binary_expression "*(int *)(param_7 + 0x18) == -1" (pointer_expression "*(int *)(param_7 + 0x18)" * (cast_expression "(int *)(param_7 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7 + 0x18)" ( (binary_expression "param_7 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }" { (expression_statement "iVar2 = (param_6 + 2) * 0x28;" (assignment_expression "iVar2 = (param_6 + 2) * 0x28" identifier = (binary_expression "(param_6 + 2) * 0x28" (parenthesized_expression "(param_6 + 2)" ( (binary_expression "param_6 + 2" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar1 = iVar2 + -0x28;" (assignment_expression "iVar1 = iVar2 + -0x28" identifier = (binary_expression "iVar2 + -0x28" identifier + number_literal)) ;) (expression_statement "FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);" (call_expression "FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0)" identifier (argument_list "(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0)" ( (binary_expression "*(int *)(param_3 + 0x18) + 0x4c" (pointer_expression "*(int *)(param_3 + 0x18)" * (cast_expression "(int *)(param_3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) + number_literal) , identifier , number_literal , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_7 + 0x18) = iVar1;" (assignment_expression "*(int *)(param_7 + 0x18) = iVar1" (pointer_expression "*(int *)(param_7 + 0x18)" * (cast_expression "(int *)(param_7 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7 + 0x18)" ( (binary_expression "param_7 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00165ae0();" (call_expression "FUN_00165ae0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);" (call_expression "FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6)" identifier (argument_list "("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6)" ( (string_literal ""../../gold/tilegx.cc"" " string_content ") , number_literal , (string_literal ""register_global_plt_entry"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (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 ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , LIT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void __regparm2\nFUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00165ce0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" (identifier "FUN_00165ce0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (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 "undefined4 param_5" (type_identifier "undefined4") (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  int iVar1;\n  int iVar2;\n  \n  if (*(int *)(param_3 + 0x18) == 0) {\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }\n  if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (*(int *)(param_3 + 0x18) == 0) {\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x18) == 0" (pointer_expression "*(int *)(param_3 + 0x18)" (* "*") (cast_expression "(int *)(param_3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x18)" (( "(") (binary_expression "param_3 + 0x18" (identifier "param_3") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);\n  }" ({ "{") (expression_statement "FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);" (call_expression "FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2)" (identifier "FUN_002446e0") (argument_list "("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2)" (( "(") (string_literal ""../../gold/tilegx.cc"" (" """) (string_content "../../gold/tilegx.cc") (" """)) (, ",") (number_literal "0xaf7") (, ",") (string_literal ""register_global_plt_entry"" (" """) (string_content "register_global_plt_entry") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_7 + 0x18) == -1) {\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_7 + 0x18) == -1)" (( "(") (binary_expression "*(int *)(param_7 + 0x18) == -1" (pointer_expression "*(int *)(param_7 + 0x18)" (* "*") (cast_expression "(int *)(param_7 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_7 + 0x18)" (( "(") (binary_expression "param_7 + 0x18" (identifier "param_7") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    iVar2 = (param_6 + 2) * 0x28;\n    iVar1 = iVar2 + -0x28;\n    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);\n    *(int *)(param_7 + 0x18) = iVar1;\n    FUN_00165ae0();\n    return;\n  }" ({ "{") (expression_statement "iVar2 = (param_6 + 2) * 0x28;" (assignment_expression "iVar2 = (param_6 + 2) * 0x28" (identifier "iVar2") (= "=") (binary_expression "(param_6 + 2) * 0x28" (parenthesized_expression "(param_6 + 2)" (( "(") (binary_expression "param_6 + 2" (identifier "param_6") (+ "+") (number_literal "2")) () ")")) (* "*") (number_literal "0x28"))) (; ";")) (expression_statement "iVar1 = iVar2 + -0x28;" (assignment_expression "iVar1 = iVar2 + -0x28" (identifier "iVar1") (= "=") (binary_expression "iVar2 + -0x28" (identifier "iVar2") (+ "+") (number_literal "-0x28"))) (; ";")) (expression_statement "FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);" (call_expression "FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0)" (identifier "FUN_00270b80") (argument_list "(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0)" (( "(") (binary_expression "*(int *)(param_3 + 0x18) + 0x4c" (pointer_expression "*(int *)(param_3 + 0x18)" (* "*") (cast_expression "(int *)(param_3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x18)" (( "(") (binary_expression "param_3 + 0x18" (identifier "param_3") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "0x4c")) (, ",") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (identifier "iVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(int *)(param_7 + 0x18) = iVar1;" (assignment_expression "*(int *)(param_7 + 0x18) = iVar1" (pointer_expression "*(int *)(param_7 + 0x18)" (* "*") (cast_expression "(int *)(param_7 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_7 + 0x18)" (( "(") (binary_expression "param_7 + 0x18" (identifier "param_7") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "FUN_00165ae0();" (call_expression "FUN_00165ae0()" (identifier "FUN_00165ae0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);" (call_expression "FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6)" (identifier "FUN_002446e0") (argument_list "("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6)" (( "(") (string_literal ""../../gold/tilegx.cc"" (" """) (string_content "../../gold/tilegx.cc") (" """)) (, ",") (number_literal "0xaf8") (, ",") (string_literal ""register_global_plt_entry"" (" """) (string_content "register_global_plt_entry") (" """)) (, ",") (identifier "param_6") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void register_global_plt_entry(Target_tilegx<32,_false> * this,
   Symbol_table * symtab, Layout * layout, uint plt_index, Symbol * gsym) */

void __thiscall
anon_unknown.dwarf_b97484::Target_tilegx<32,_false>::register_global_plt_entry
          (Target_tilegx<32,_false> *this,Symbol_table *symtab,Layout *layout,uint plt_index,
          Symbol *gsym)

{
}


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

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

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

{
  int iVar1;
  int iVar2;
  
  if (*(int *)(param_3 + 0x18) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/tilegx.cc",0xaf7,"register_global_plt_entry",param_2);
  }
  if (*(int *)(param_7 + 0x18) == -1) {
    iVar2 = (param_6 + 2) * 0x28;
    iVar1 = iVar2 + -0x28;
    FUN_00270b80(*(int *)(param_3 + 0x18) + 0x4c,iVar1,0,iVar2,0);
    *(int *)(param_7 + 0x18) = iVar1;
    FUN_00165ae0();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/tilegx.cc",0xaf8,"register_global_plt_entry",param_6);
}

