
/* DWARF original prototype: uint got_entry_count(Target_tilegx<32,_false> * this) */

uint __thiscall
anon_unknown.dwarf_ca7751::Target_tilegx<32,_false>::got_entry_count(Target_tilegx<32,_false> *this)

{
  uint64_t uVar1;
  
  uVar1 = (this->tilegx_info).default_text_segment_address;
  if (uVar1 == 0) {
    return 0;
  }
  if ((*(byte *)(uVar1 + 0x20) & 2) != 0) {
    return (uint)(*(ulong *)(uVar1 + 0x10) >> 2);
  }
                    /* WARNING: Subroutine does not return */
  gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");
}



ulong FUN_002736d0(long param_1)

{
  long lVar1;
  
  lVar1 = *(long *)(param_1 + 0x20);
  if (lVar1 == 0) {
    return 0;
  }
  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {
    return *(ulong *)(lVar1 + 0x10) >> 2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00352af0("../../gold/output.h",0xcf,"data_size");
}


MOV RAX,qword ptr [RDI + 0x20]
TEST RAX,RAX
JZ 0x002736f0
TEST byte ptr [RAX + 0x20],0x2
JZ 0x002736f3
MOV RAX,qword ptr [RAX + 0x10]
SHR RAX,0x2
RET
XOR EAX,EAX
RET
PUSH RAX
LEA RDX,[0x557240]
MOV ESI,0xcf
LEA RDI,[0x533384]
CALL 0x00352af0
(translation_unit "ulong FUN_002736d0(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}\n\n" (function_definition "ulong FUN_002736d0(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}" type_identifier (function_declarator "FUN_002736d0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (lVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x20) & 2) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x20) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x20) & 2)" ( (binary_expression "*(byte *)(lVar1 + 0x20) & 2" (pointer_expression "*(byte *)(lVar1 + 0x20)" * (cast_expression "(byte *)(lVar1 + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }" { (return_statement "return *(ulong *)(lVar1 + 0x10) >> 2;" return (binary_expression "*(ulong *)(lVar1 + 0x10) >> 2" (pointer_expression "*(ulong *)(lVar1 + 0x10)" * (cast_expression "(ulong *)(lVar1 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) >> number_literal) ;) })) comment (expression_statement "FUN_00352af0("../../gold/output.h",0xcf,"data_size");" (call_expression "FUN_00352af0("../../gold/output.h",0xcf,"data_size")" identifier (argument_list "("../../gold/output.h",0xcf,"data_size")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""data_size"" " string_content ") ))) ;) })))
(translation_unit "/* DWARF original prototype: uint got_entry_count(Target_tilegx<32,_false> * this) */\n\nuint __thiscall\nanon_unknown.dwarf_ca7751::Target_tilegx<32,_false>::got_entry_count(Target_tilegx<32,_false> *this)\n\n{\n  uint64_t uVar1;\n  \n  uVar1 = (this->tilegx_info).default_text_segment_address;\n  if (uVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(uVar1 + 0x20) & 2) != 0) {\n    return (uint)(*(ulong *)(uVar1 + 0x10) >> 2);\n  }\n                    /* WARNING: Subroutine does not return */\n  gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");\n}\n\n" comment (declaration "uint __thiscall\nanon_unknown.dwarf_ca7751::Target_tilegx<32,_false>::got_entry_count(Target_tilegx<32,_false> *this)\n\n{\n  uint64_t uVar1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_ca7751::" identifier . identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_false>::got_entry_count(Target_tilegx<32,_false> *this)\n\n{\n  uint64_t" identifier > : : (function_declarator "got_entry_count(Target_tilegx<32,_false> *this)" identifier (parameter_list "(Target_tilegx<32,_false> *this)" ( (parameter_declaration "Target_tilegx" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) ))) { primitive_type) identifier ;) (expression_statement "uVar1 = (this->tilegx_info).default_text_segment_address;" (assignment_expression "uVar1 = (this->tilegx_info).default_text_segment_address" identifier = (field_expression "(this->tilegx_info).default_text_segment_address" (parenthesized_expression "(this->tilegx_info)" ( (field_expression "this->tilegx_info" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (uVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(byte *)(uVar1 + 0x20) & 2) != 0) {\n    return (uint)(*(ulong *)(uVar1 + 0x10) >> 2);\n  }" if (parenthesized_expression "((*(byte *)(uVar1 + 0x20) & 2) != 0)" ( (binary_expression "(*(byte *)(uVar1 + 0x20) & 2) != 0" (parenthesized_expression "(*(byte *)(uVar1 + 0x20) & 2)" ( (binary_expression "*(byte *)(uVar1 + 0x20) & 2" (pointer_expression "*(byte *)(uVar1 + 0x20)" * (cast_expression "(byte *)(uVar1 + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + 0x20)" ( (binary_expression "uVar1 + 0x20" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return (uint)(*(ulong *)(uVar1 + 0x10) >> 2);\n  }" { (return_statement "return (uint)(*(ulong *)(uVar1 + 0x10) >> 2);" return (call_expression "(uint)(*(ulong *)(uVar1 + 0x10) >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(uVar1 + 0x10) >> 2)" ( (binary_expression "*(ulong *)(uVar1 + 0x10) >> 2" (pointer_expression "*(ulong *)(uVar1 + 0x10)" * (cast_expression "(ulong *)(uVar1 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + 0x10)" ( (binary_expression "uVar1 + 0x10" identifier + number_literal) )))) >> number_literal) ))) ;) })) comment (labeled_statement "gold::do_gold_unreachable("../../gold/output.h",0xcf,"data_size");" statement_identifier : (ERROR ":" :) (expression_statement "do_gold_unreachable("../../gold/output.h",0xcf,"data_size");" (call_expression "do_gold_unreachable("../../gold/output.h",0xcf,"data_size")" identifier (argument_list "("../../gold/output.h",0xcf,"data_size")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""data_size"" " string_content ") ))) ;)) (ERROR "}" }))
(translation_unit "ulong FUN_002736d0(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    \n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}\n\n" (function_definition "ulong FUN_002736d0(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    \n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}" type_identifier (function_declarator "FUN_002736d0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    \n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (lVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x20) & 2) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x20) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x20) & 2)" ( (binary_expression "*(byte *)(lVar1 + 0x20) & 2" (pointer_expression "*(byte *)(lVar1 + 0x20)" * (cast_expression "(byte *)(lVar1 + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }" { (return_statement "return *(ulong *)(lVar1 + 0x10) >> 2;" return (binary_expression "*(ulong *)(lVar1 + 0x10) >> 2" (pointer_expression "*(ulong *)(lVar1 + 0x10)" * (cast_expression "(ulong *)(lVar1 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) >> number_literal) ;) })) (expression_statement "FUN_00352af0("../../gold/output.h",0xcf,"data_size");" (call_expression "FUN_00352af0("../../gold/output.h",0xcf,"data_size")" identifier (argument_list "("../../gold/output.h",0xcf,"data_size")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""data_size"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (return_statement return (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "ulong FUN_002736d0(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    \n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}" (type_identifier "ulong") (function_declarator "FUN_002736d0(long param_1)" (identifier "FUN_002736d0") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x20);\n  if (lVar1 == 0) {\n    return 0;\n  }\n  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }\n                    \n  FUN_00352af0("../../gold/output.h",0xcf,"data_size");\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (lVar1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }" (if "if") (parenthesized_expression "((*(byte *)(lVar1 + 0x20) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(lVar1 + 0x20) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x20) & 2)" (( "(") (binary_expression "*(byte *)(lVar1 + 0x20) & 2" (pointer_expression "*(byte *)(lVar1 + 0x20)" (* "*") (cast_expression "(byte *)(lVar1 + 0x20)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(ulong *)(lVar1 + 0x10) >> 2;\n  }" ({ "{") (return_statement "return *(ulong *)(lVar1 + 0x10) >> 2;" (return "return") (binary_expression "*(ulong *)(lVar1 + 0x10) >> 2" (pointer_expression "*(ulong *)(lVar1 + 0x10)" (* "*") (cast_expression "(ulong *)(lVar1 + 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (>> ">>") (number_literal "2")) (; ";")) (} "}"))) (expression_statement "FUN_00352af0("../../gold/output.h",0xcf,"data_size");" (call_expression "FUN_00352af0("../../gold/output.h",0xcf,"data_size")" (identifier "FUN_00352af0") (argument_list "("../../gold/output.h",0xcf,"data_size")" (( "(") (string_literal ""../../gold/output.h"" (" """) (string_content "../../gold/output.h") (" """)) (, ",") (number_literal "0xcf") (, ",") (string_literal ""data_size"" (" """) (string_content "data_size") (" """)) () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: uint got_entry_count(Target_tilegx<32,_false> * this) */

type_1 __thiscall
anon_unknown.dwarf_ca7751::Target_tilegx<32,_false>::got_entry_count(Target_tilegx<32,_false> *this)

{
  uint64_t var_1;
  
  var_1 = (this->tilegx_info).default_text_segment_address;
  if (var_1 == 0) {
    return 0;
  }
  if ((*(type_2 *)(var_1 + 0x20) & 2) != 0) {
    return (type_1)(*(type_3 *)(var_1 + 0x10) >> 2);
  }
                    /* WARNING: Subroutine does not return */
  gold::var_2("../../gold/output.h",0xcf,"data_size");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

ulong MASKED(long param_1)

{
  long lVar1;
  
  lVar1 = *(long *)(param_1 + 0x20);
  if (lVar1 == 0) {
    return 0;
  }
  if ((*(byte *)(lVar1 + 0x20) & 2) != 0) {
    return *(ulong *)(lVar1 + 0x10) >> 2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00352af0("../../gold/output.h",0xcf,"data_size");
}

