
/* DWARF original prototype: Dynobj * get_dynobj_for_sym(Versions * this, Symbol_table * symtab,
   Symbol * sym) */

Dynobj * __thiscall
gold::Versions::get_dynobj_for_sym(Versions *this,Symbol_table *symtab,Symbol *sym)

{
  Dynobj *pDVar1;
  
  if ((sym->field_0x3b & 8) != 0) {
    pDVar1 = Symbol_table::get_copy_source(symtab,sym);
    return pDVar1;
  }
  if ((sym->field_0x3a & 7) == 0) {
    if ((((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0) {
      return (Dynobj *)(sym->u1_).output_segment;
    }
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/symtab.h",0xa1,"object");
}



void FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)

{
  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {
    FUN_0024af70(param_2,param_3);
    return;
  }
  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {
    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");
  }
                    /* WARNING: Subroutine does not return */
  FUN_00199900("../../gold/symtab.h",0xa1,"object");
}


TEST byte ptr [RDX + 0x3b],0x8
JNZ 0x002661d0
SUB RSP,0x8
TEST byte ptr [RDX + 0x3a],0x7
JNZ 0x002661f3
MOV RAX,qword ptr [RDX + 0x10]
TEST byte ptr [RAX + 0x3c],0x1
JZ 0x002661db
ADD RSP,0x8
RET
MOV RDI,RSI
MOV RSI,RDX
JMP 0x0024af70
LEA RDX,[0x355b80]
MOV ESI,0x5eb
LEA RDI,[0x355585]
CALL 0x00199900
LEA RDX,[0x355bf1]
MOV ESI,0xa1
LEA RDI,[0x338407]
CALL 0x00199900
(translation_unit "void FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}\n\n" (function_definition "void FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}" primitive_type (function_declarator "FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}" { (if_statement "if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x3b) & 8) != 0)" ( (binary_expression "(*(byte *)(param_3 + 0x3b) & 8) != 0" (parenthesized_expression "(*(byte *)(param_3 + 0x3b) & 8)" ( (binary_expression "*(byte *)(param_3 + 0x3b) & 8" (pointer_expression "*(byte *)(param_3 + 0x3b)" * (cast_expression "(byte *)(param_3 + 0x3b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x3b)" ( (binary_expression "param_3 + 0x3b" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0024af70(param_2,param_3);\n    return;\n  }" { (expression_statement "FUN_0024af70(param_2,param_3);" (call_expression "FUN_0024af70(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x3a) & 7) == 0)" ( (binary_expression "(*(byte *)(param_3 + 0x3a) & 7) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x3a) & 7)" ( (binary_expression "*(byte *)(param_3 + 0x3a) & 7" (pointer_expression "*(byte *)(param_3 + 0x3a)" * (cast_expression "(byte *)(param_3 + 0x3a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x3a)" ( (binary_expression "param_3 + 0x3a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" { (if_statement "if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }" if (parenthesized_expression "((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0)" ( (binary_expression "(*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0" (parenthesized_expression "(*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1)" ( (binary_expression "*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1" (pointer_expression "*(byte *)(*(long *)(param_3 + 0x10) + 0x3c)" * (cast_expression "(byte *)(*(long *)(param_3 + 0x10) + 0x3c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_3 + 0x10) + 0x3c)" ( (binary_expression "*(long *)(param_3 + 0x10) + 0x3c" (pointer_expression "*(long *)(param_3 + 0x10)" * (cast_expression "(long *)(param_3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");" (call_expression "FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" identifier (argument_list "("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" ( (string_literal ""../../gold/dynobj.cc"" " string_content ") , number_literal , (string_literal ""get_dynobj_for_sym"" " string_content ") ))) ;) })) comment (expression_statement "FUN_00199900("../../gold/symtab.h",0xa1,"object");" (call_expression "FUN_00199900("../../gold/symtab.h",0xa1,"object")" identifier (argument_list "("../../gold/symtab.h",0xa1,"object")" ( (string_literal ""../../gold/symtab.h"" " string_content ") , number_literal , (string_literal ""object"" " string_content ") ))) ;) })))
(translation_unit "/* DWARF original prototype: Dynobj * get_dynobj_for_sym(Versions * this, Symbol_table * symtab,\n   Symbol * sym) */\n\nDynobj * __thiscall\ngold::Versions::get_dynobj_for_sym(Versions *this,Symbol_table *symtab,Symbol *sym)\n\n{\n  Dynobj *pDVar1;\n  \n  if ((sym->field_0x3b & 8) != 0) {\n    pDVar1 = Symbol_table::get_copy_source(symtab,sym);\n    return pDVar1;\n  }\n  if ((sym->field_0x3a & 7) == 0) {\n    if ((((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0) {\n      return (Dynobj *)(sym->u1_).output_segment;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/symtab.h",0xa1,"object");\n}\n\n" comment (ERROR "Dynobj * __thiscall\ngold::Versions::get_dynobj_for_sym(Versions *this,Symbol_table *symtab,Symbol *sym)" (binary_expression "Dynobj * __thiscall\ngold::Versions::get_dynobj_for_sym(Versions *this" (binary_expression "Dynobj * __thiscall" identifier * identifier) (ERROR "gold::Versions::get_dynobj_for_sym(Versions" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier (pointer_declarator "*symtab" * identifier) , (ERROR "Symbol" identifier) (pointer_declarator "*sym" * identifier) )) (compound_statement "{\n  Dynobj *pDVar1;\n  \n  if ((sym->field_0x3b & 8) != 0) {\n    pDVar1 = Symbol_table::get_copy_source(symtab,sym);\n    return pDVar1;\n  }\n  if ((sym->field_0x3a & 7) == 0) {\n    if ((((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0) {\n      return (Dynobj *)(sym->u1_).output_segment;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/symtab.h",0xa1,"object");\n}" { (declaration "Dynobj *pDVar1;" type_identifier (pointer_declarator "*pDVar1" * identifier) ;) (if_statement "if ((sym->field_0x3b & 8) != 0) {\n    pDVar1 = Symbol_table::get_copy_source(symtab,sym);\n    return pDVar1;\n  }" if (parenthesized_expression "((sym->field_0x3b & 8) != 0)" ( (binary_expression "(sym->field_0x3b & 8) != 0" (parenthesized_expression "(sym->field_0x3b & 8)" ( (binary_expression "sym->field_0x3b & 8" (field_expression "sym->field_0x3b" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    pDVar1 = Symbol_table::get_copy_source(symtab,sym);\n    return pDVar1;\n  }" { (ERROR "pDVar1 = Symbol_table::" (assignment_expression "pDVar1 = Symbol_table" identifier = identifier) : :) (expression_statement "get_copy_source(symtab,sym);" (call_expression "get_copy_source(symtab,sym)" identifier (argument_list "(symtab,sym)" ( identifier , identifier ))) ;) (return_statement "return pDVar1;" return identifier ;) })) (if_statement "if ((sym->field_0x3a & 7) == 0) {\n    if ((((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0) {\n      return (Dynobj *)(sym->u1_).output_segment;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" if (parenthesized_expression "((sym->field_0x3a & 7) == 0)" ( (binary_expression "(sym->field_0x3a & 7) == 0" (parenthesized_expression "(sym->field_0x3a & 7)" ( (binary_expression "sym->field_0x3a & 7" (field_expression "sym->field_0x3a" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0) {\n      return (Dynobj *)(sym->u1_).output_segment;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" { (if_statement "if ((((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0) {\n      return (Dynobj *)(sym->u1_).output_segment;\n    }" if (parenthesized_expression "((((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0)" ( (binary_expression "(((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0" (parenthesized_expression "(((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1)" ( (binary_expression "((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1" (field_expression "((Object *)((sym->u1_).output_segment)->output_lists_)->field_0x3c" (parenthesized_expression "((Object *)((sym->u1_).output_segment)->output_lists_)" ( (cast_expression "(Object *)((sym->u1_).output_segment)->output_lists_" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "((sym->u1_).output_segment)->output_lists_" (parenthesized_expression "((sym->u1_).output_segment)" ( (field_expression "(sym->u1_).output_segment" (parenthesized_expression "(sym->u1_)" ( (field_expression "sym->u1_" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) )) -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      return (Dynobj *)(sym->u1_).output_segment;\n    }" { (return_statement "return (Dynobj *)(sym->u1_).output_segment;" return (cast_expression "(Dynobj *)(sym->u1_).output_segment" ( (type_descriptor "Dynobj *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(sym->u1_).output_segment" (parenthesized_expression "(sym->u1_)" ( (field_expression "sym->u1_" identifier -> field_identifier) )) . field_identifier)) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");" (call_expression "do_gold_unreachable("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" identifier (argument_list "("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" ( (string_literal ""../../gold/dynobj.cc"" " string_content ") , number_literal , (string_literal ""get_dynobj_for_sym"" " string_content ") ))) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/symtab.h",0xa1,"object");" (call_expression "do_gold_unreachable("../../gold/symtab.h",0xa1,"object")" identifier (argument_list "("../../gold/symtab.h",0xa1,"object")" ( (string_literal ""../../gold/symtab.h"" " string_content ") , number_literal , (string_literal ""object"" " string_content ") ))) ;) }))
(translation_unit "void FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    \n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}\n\n" (function_definition "void FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    \n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}" primitive_type (function_declarator "FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    \n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}" { (if_statement "if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x3b) & 8) != 0)" ( (binary_expression "(*(byte *)(param_3 + 0x3b) & 8) != 0" (parenthesized_expression "(*(byte *)(param_3 + 0x3b) & 8)" ( (binary_expression "*(byte *)(param_3 + 0x3b) & 8" (pointer_expression "*(byte *)(param_3 + 0x3b)" * (cast_expression "(byte *)(param_3 + 0x3b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x3b)" ( (binary_expression "param_3 + 0x3b" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0024af70(param_2,param_3);\n    return;\n  }" { (expression_statement "FUN_0024af70(param_2,param_3);" (call_expression "FUN_0024af70(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x3a) & 7) == 0)" ( (binary_expression "(*(byte *)(param_3 + 0x3a) & 7) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x3a) & 7)" ( (binary_expression "*(byte *)(param_3 + 0x3a) & 7" (pointer_expression "*(byte *)(param_3 + 0x3a)" * (cast_expression "(byte *)(param_3 + 0x3a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x3a)" ( (binary_expression "param_3 + 0x3a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" { (if_statement "if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }" if (parenthesized_expression "((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0)" ( (binary_expression "(*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0" (parenthesized_expression "(*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1)" ( (binary_expression "*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1" (pointer_expression "*(byte *)(*(long *)(param_3 + 0x10) + 0x3c)" * (cast_expression "(byte *)(*(long *)(param_3 + 0x10) + 0x3c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_3 + 0x10) + 0x3c)" ( (binary_expression "*(long *)(param_3 + 0x10) + 0x3c" (pointer_expression "*(long *)(param_3 + 0x10)" * (cast_expression "(long *)(param_3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");" (call_expression "FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" identifier (argument_list "("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" ( (string_literal ""../../gold/dynobj.cc"" " string_content ") , number_literal , (string_literal ""get_dynobj_for_sym"" " string_content ") ))) ;) })) (expression_statement "FUN_00199900("../../gold/symtab.h",0xa1,"object");" (call_expression "FUN_00199900("../../gold/symtab.h",0xa1,"object")" identifier (argument_list "("../../gold/symtab.h",0xa1,"object")" ( (string_literal ""../../gold/symtab.h"" " string_content ") , number_literal , (string_literal ""object"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (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 { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (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 { (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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    \n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}" (primitive_type "void") (function_declarator "FUN_002661b0(undefined8 param_1,undefined8 param_2,long param_3)" (identifier "FUN_002661b0") (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }\n                    \n  FUN_00199900("../../gold/symtab.h",0xa1,"object");\n}" ({ "{") (if_statement "if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {\n    FUN_0024af70(param_2,param_3);\n    return;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_3 + 0x3b) & 8) != 0)" (( "(") (binary_expression "(*(byte *)(param_3 + 0x3b) & 8) != 0" (parenthesized_expression "(*(byte *)(param_3 + 0x3b) & 8)" (( "(") (binary_expression "*(byte *)(param_3 + 0x3b) & 8" (pointer_expression "*(byte *)(param_3 + 0x3b)" (* "*") (cast_expression "(byte *)(param_3 + 0x3b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x3b)" (( "(") (binary_expression "param_3 + 0x3b" (identifier "param_3") (+ "+") (number_literal "0x3b")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0024af70(param_2,param_3);\n    return;\n  }" ({ "{") (expression_statement "FUN_0024af70(param_2,param_3);" (call_expression "FUN_0024af70(param_2,param_3)" (identifier "FUN_0024af70") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_3 + 0x3a) & 7) == 0)" (( "(") (binary_expression "(*(byte *)(param_3 + 0x3a) & 7) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x3a) & 7)" (( "(") (binary_expression "*(byte *)(param_3 + 0x3a) & 7" (pointer_expression "*(byte *)(param_3 + 0x3a)" (* "*") (cast_expression "(byte *)(param_3 + 0x3a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x3a)" (( "(") (binary_expression "param_3 + 0x3a" (identifier "param_3") (+ "+") (number_literal "0x3a")) () ")")))) (& "&") (number_literal "7")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }\n                    \n    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");\n  }" ({ "{") (if_statement "if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0" (parenthesized_expression "(*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1)" (( "(") (binary_expression "*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1" (pointer_expression "*(byte *)(*(long *)(param_3 + 0x10) + 0x3c)" (* "*") (cast_expression "(byte *)(*(long *)(param_3 + 0x10) + 0x3c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_3 + 0x10) + 0x3c)" (( "(") (binary_expression "*(long *)(param_3 + 0x10) + 0x3c" (pointer_expression "*(long *)(param_3 + 0x10)" (* "*") (cast_expression "(long *)(param_3 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x3c")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");" (call_expression "FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" (identifier "FUN_00199900") (argument_list "("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym")" (( "(") (string_literal ""../../gold/dynobj.cc"" (" """) (string_content "../../gold/dynobj.cc") (" """)) (, ",") (number_literal "0x5eb") (, ",") (string_literal ""get_dynobj_for_sym"" (" """) (string_content "get_dynobj_for_sym") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00199900("../../gold/symtab.h",0xa1,"object");" (call_expression "FUN_00199900("../../gold/symtab.h",0xa1,"object")" (identifier "FUN_00199900") (argument_list "("../../gold/symtab.h",0xa1,"object")" (( "(") (string_literal ""../../gold/symtab.h"" (" """) (string_content "../../gold/symtab.h") (" """)) (, ",") (number_literal "0xa1") (, ",") (string_literal ""object"" (" """) (string_content "object") (" """)) () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: Dynobj * get_dynobj_for_sym(Versions * this, Symbol_table * symtab,
   Symbol * sym) */

type_1 * __thiscall
gold::Versions::get_dynobj_for_sym(Versions *this,Symbol_table *symtab,Symbol *sym)

{
  type_1 *pDVar1;
  
  if ((sym->field_0x3b & 8) != 0) {
    pDVar1 = Symbol_table::var_1(symtab,sym);
    return pDVar1;
  }
  if ((sym->field_0x3a & 7) == 0) {
    if ((((type_2 *)((sym->u1_).output_segment)->output_lists_)->field_0x3c & 1) != 0) {
      return (type_1 *)(sym->u1_).output_segment;
    }
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");
  }
                    /* WARNING: Subroutine does not return */
  var_2("../../gold/symtab.h",0xa1,"object");
}


(translation_unit (function_definition type: (primitive_type) 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: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))) (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 (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: (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))))) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

void MASKED(undefined8 param_1,undefined8 param_2,long param_3)

{
  if ((*(byte *)(param_3 + 0x3b) & 8) != 0) {
    FUN_0024af70(param_2,param_3);
    return;
  }
  if ((*(byte *)(param_3 + 0x3a) & 7) == 0) {
    if ((*(byte *)(*(long *)(param_3 + 0x10) + 0x3c) & 1) != 0) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00199900("../../gold/dynobj.cc",0x5eb,"get_dynobj_for_sym");
  }
                    /* WARNING: Subroutine does not return */
  FUN_00199900("../../gold/symtab.h",0xa1,"object");
}

