
/* DWARF original prototype: uint first_plt_entry_offset(Target_x86_64<64> * this) */

uint __thiscall
anon_unknown.dwarf_32964f::Target_x86_64<64>::first_plt_entry_offset(Target_x86_64<64> *this)

{
  int *piVar1;
  uint uVar2;
  
  piVar1 = *(int **)&(this->x86_64_info).default_text_segment_address;
  if (piVar1 != (int *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (**(code **)(*piVar1 + 100))();
    return uVar2;
  }
  return 0;
}



undefined4 FUN_00059050(int param_1)

{
  undefined4 uVar1;
  
  if (*(int **)(param_1 + 0x18) != (int *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();
    return uVar1;
  }
  return 0;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x18]
TEST EAX,EAX
JZ 0x00059068
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESP + 0x4],EAX
JMP dword ptr [EDX + 0x64]
XOR EAX,EAX
RET
(translation_unit "undefined4 FUN_00059050(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00059050(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00059050(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }" if (parenthesized_expression "(*(int **)(param_1 + 0x18) != (int *)0x0)" ( (binary_expression "*(int **)(param_1 + 0x18) != (int *)0x0" (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }" { comment comment (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))()" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x18) + 100))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x18) + 100))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x18) + 100)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x18) + 100)" * (cast_expression "(code **)(**(int **)(param_1 + 0x18) + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x18) + 100)" ( (binary_expression "**(int **)(param_1 + 0x18) + 100" (pointer_expression "**(int **)(param_1 + 0x18)" * (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: uint first_plt_entry_offset(Target_x86_64<64> * this) */\n\nuint __thiscall\nanon_unknown.dwarf_32964f::Target_x86_64<64>::first_plt_entry_offset(Target_x86_64<64> *this)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)&(this->x86_64_info).default_text_segment_address;\n  if (piVar1 != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(*piVar1 + 100))();\n    return uVar2;\n  }\n  return 0;\n}\n\n" comment (function_definition "uint __thiscall\nanon_unknown.dwarf_32964f::Target_x86_64<64>::first_plt_entry_offset(Target_x86_64<64> *this)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)&(this->x86_64_info).default_text_segment_address;\n  if (piVar1 != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(*piVar1 + 100))();\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_32964f::Target_x86_64<64>::" identifier . identifier : : identifier < number_literal > : :) (function_declarator "first_plt_entry_offset(Target_x86_64<64> *this)" identifier (parameter_list "(Target_x86_64<64> *this)" ( (parameter_declaration "Target_x86_64<64> *this" type_identifier (ERROR "<64>" < number_literal >) (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = *(int **)&(this->x86_64_info).default_text_segment_address;\n  if (piVar1 != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(*piVar1 + 100))();\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)&(this->x86_64_info).default_text_segment_address;" (assignment_expression "piVar1 = *(int **)&(this->x86_64_info).default_text_segment_address" identifier = (pointer_expression "*(int **)&(this->x86_64_info).default_text_segment_address" * (cast_expression "(int **)&(this->x86_64_info).default_text_segment_address" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&(this->x86_64_info).default_text_segment_address" & (field_expression "(this->x86_64_info).default_text_segment_address" (parenthesized_expression "(this->x86_64_info)" ( (field_expression "this->x86_64_info" identifier -> field_identifier) )) . field_identifier))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(*piVar1 + 100))();\n    return uVar2;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(*piVar1 + 100))();\n    return uVar2;\n  }" { comment comment (expression_statement "uVar2 = (**(code **)(*piVar1 + 100))();" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 100))()" identifier = (call_expression "(**(code **)(*piVar1 + 100))()" (parenthesized_expression "(**(code **)(*piVar1 + 100))" ( (pointer_expression "**(code **)(*piVar1 + 100)" * (pointer_expression "*(code **)(*piVar1 + 100)" * (cast_expression "(code **)(*piVar1 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 100)" ( (binary_expression "*piVar1 + 100" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00059050(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00059050(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00059050(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }" if (parenthesized_expression "(*(int **)(param_1 + 0x18) != (int *)0x0)" ( (binary_expression "*(int **)(param_1 + 0x18) != (int *)0x0" (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }" { (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))()" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x18) + 100))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x18) + 100))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x18) + 100)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x18) + 100)" * (cast_expression "(code **)(**(int **)(param_1 + 0x18) + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x18) + 100)" ( (binary_expression "**(int **)(param_1 + 0x18) + 100" (pointer_expression "**(int **)(param_1 + 0x18)" * (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00059050(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00059050(int param_1)" (identifier "FUN_00059050") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*(int **)(param_1 + 0x18) != (int *)0x0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*(int **)(param_1 + 0x18) != (int *)0x0)" (( "(") (binary_expression "*(int **)(param_1 + 0x18) != (int *)0x0" (pointer_expression "*(int **)(param_1 + 0x18)" (* "*") (cast_expression "(int **)(param_1 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))()" (identifier "uVar1") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + 0x18) + 100))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x18) + 100))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0x18) + 100)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0x18) + 100)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0x18) + 100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0x18) + 100)" (( "(") (binary_expression "**(int **)(param_1 + 0x18) + 100" (pointer_expression "**(int **)(param_1 + 0x18)" (* "*") (pointer_expression "*(int **)(param_1 + 0x18)" (* "*") (cast_expression "(int **)(param_1 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (+ "+") (number_literal "100")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* DWARF original prototype: uint first_plt_entry_offset(Target_x86_64<64> * this) */

type_1 __thiscall
anon_unknown.dwarf_32964f::type_2<64>::function_1(type_2<64> *this)

{
  int *var_1;
  type_1 uVar2;
  
  var_1 = *(int **)&(this->x86_64_info).default_text_segment_address;
  if (var_1 != (int *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (**(type_3 **)(*var_1 + 100))();
    return uVar2;
  }
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  if (*(int **)(param_1 + 0x18) != (int *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00059061. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (**(code **)(**(int **)(param_1 + 0x18) + 100))();
    return uVar1;
  }
  return 0;
}

