
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: int64_t do_tls_offset_for_global(Target_s390<64> * this, Symbol *
   param_1, uint param_2) */

int64_t __thiscall
anon_unknown.dwarf_130c1fc::Target_s390<64>::do_tls_offset_for_global
          (Target_s390<64> *this,Symbol *param_2,uint param_3)

{
  Output_segment *pOVar1;
  int iVar2;
  
  pOVar1 = this->layout_->tls_segment_;
  iVar2 = (int)pOVar1->memsz_;
  return CONCAT44(-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)),-iVar2);
}



undefined8 FUN_0020d5c0(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);
  iVar2 = *(int *)(iVar1 + 0x16c);
  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x50]
MOV EAX,dword ptr [EAX + 0x164]
MOV EDX,dword ptr [EAX + 0x170]
MOV EAX,dword ptr [EAX + 0x16c]
NEG EAX
ADC EDX,0x0
NEG EDX
RET
(translation_unit "undefined8 FUN_0020d5c0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}\n\n" (function_definition "undefined8 FUN_0020d5c0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}" type_identifier (function_declarator "FUN_0020d5c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x50) + 0x164)" * (cast_expression "(int *)(*(int *)(param_1 + 0x50) + 0x164)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x50) + 0x164)" ( (binary_expression "*(int *)(param_1 + 0x50) + 0x164" (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x16c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x16c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x16c)" * (cast_expression "(int *)(iVar1 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x16c)" ( (binary_expression "iVar1 + 0x16c" identifier + number_literal) ))))) ;) (return_statement "return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);" return (call_expression "CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2)" identifier (argument_list "(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2)" ( (unary_expression "-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0))" - (parenthesized_expression "(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0))" ( (binary_expression "*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)" (pointer_expression "*(int *)(iVar1 + 0x170)" * (cast_expression "(int *)(iVar1 + 0x170)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x170)" ( (binary_expression "iVar1 + 0x170" identifier + number_literal) )))) + (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ))) , (unary_expression "-iVar2" - identifier) ))) ;) })))
(translation_unit "/* 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: int64_t do_tls_offset_for_global(Target_s390<64> * this, Symbol *\n   param_1, uint param_2) */\n\nint64_t __thiscall\nanon_unknown.dwarf_130c1fc::Target_s390<64>::do_tls_offset_for_global\n          (Target_s390<64> *this,Symbol *param_2,uint param_3)\n\n{\n  Output_segment *pOVar1;\n  int iVar2;\n  \n  pOVar1 = this->layout_->tls_segment_;\n  iVar2 = (int)pOVar1->memsz_;\n  return CONCAT44(-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)),-iVar2);\n}\n\n" comment comment comment (function_definition "int64_t __thiscall\nanon_unknown.dwarf_130c1fc::Target_s390<64>::do_tls_offset_for_global\n          (Target_s390<64> *this,Symbol *param_2,uint param_3)\n\n{\n  Output_segment *pOVar1;\n  int iVar2;\n  \n  pOVar1 = this->layout_->tls_segment_;\n  iVar2 = (int)pOVar1->memsz_;\n  return CONCAT44(-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)),-iVar2);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_130c1fc::Target_s390<64>::" identifier . identifier : : identifier < number_literal > : :) (function_declarator "do_tls_offset_for_global\n          (Target_s390<64> *this,Symbol *param_2,uint param_3)" identifier (parameter_list "(Target_s390<64> *this,Symbol *param_2,uint param_3)" ( (parameter_declaration "Target_s390<64> *this" type_identifier (ERROR "<64>" < number_literal >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  Output_segment *pOVar1;\n  int iVar2;\n  \n  pOVar1 = this->layout_->tls_segment_;\n  iVar2 = (int)pOVar1->memsz_;\n  return CONCAT44(-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)),-iVar2);\n}" { (declaration "Output_segment *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pOVar1 = this->layout_->tls_segment_;" (assignment_expression "pOVar1 = this->layout_->tls_segment_" identifier = (field_expression "this->layout_->tls_segment_" (field_expression "this->layout_" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar2 = (int)pOVar1->memsz_;" (assignment_expression "iVar2 = (int)pOVar1->memsz_" identifier = (cast_expression "(int)pOVar1->memsz_" ( (type_descriptor "int" primitive_type) ) (field_expression "pOVar1->memsz_" identifier -> field_identifier))) ;) (return_statement "return CONCAT44(-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)),-iVar2);" return (call_expression "CONCAT44(-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)),-iVar2)" identifier (argument_list "(-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)),-iVar2)" ( (unary_expression "-(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0))" - (parenthesized_expression "(*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0))" ( (binary_expression "*(int *)((int)&pOVar1->memsz_ + 4) + (uint)(iVar2 != 0)" (pointer_expression "*(int *)((int)&pOVar1->memsz_ + 4)" * (cast_expression "(int *)((int)&pOVar1->memsz_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pOVar1->memsz_ + 4)" ( (binary_expression "(int)&pOVar1->memsz_ + 4" (cast_expression "(int)&pOVar1->memsz_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pOVar1->memsz_" & (field_expression "pOVar1->memsz_" identifier -> field_identifier))) + number_literal) )))) + (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ))) , (unary_expression "-iVar2" - identifier) ))) ;) })))
(translation_unit "undefined8 FUN_0020d5c0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}\n\n" (function_definition "undefined8 FUN_0020d5c0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}" type_identifier (function_declarator "FUN_0020d5c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x50) + 0x164)" * (cast_expression "(int *)(*(int *)(param_1 + 0x50) + 0x164)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x50) + 0x164)" ( (binary_expression "*(int *)(param_1 + 0x50) + 0x164" (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x16c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x16c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x16c)" * (cast_expression "(int *)(iVar1 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x16c)" ( (binary_expression "iVar1 + 0x16c" identifier + number_literal) ))))) ;) (return_statement "return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);" return (call_expression "CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2)" identifier (argument_list "(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2)" ( (unary_expression "-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0))" - (parenthesized_expression "(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0))" ( (binary_expression "*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)" (pointer_expression "*(int *)(iVar1 + 0x170)" * (cast_expression "(int *)(iVar1 + 0x170)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x170)" ( (binary_expression "iVar1 + 0x170" identifier + number_literal) )))) + (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ))) , (unary_expression "-iVar2" - identifier) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return (call_expression IDENT (argument_list ( (unary_expression - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ))) , (unary_expression - IDENT) ))) ;) })))
(function_definition "undefined8 FUN_0020d5c0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}" (type_identifier "undefined8") (function_declarator "FUN_0020d5c0(int param_1)" (identifier "FUN_0020d5c0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);\n  iVar2 = *(int *)(iVar1 + 0x16c);\n  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x50) + 0x164)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x50) + 0x164)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x50) + 0x164)" (( "(") (binary_expression "*(int *)(param_1 + 0x50) + 0x164" (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (+ "+") (number_literal "0x164")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar1 + 0x16c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x16c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x16c)" (* "*") (cast_expression "(int *)(iVar1 + 0x16c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x16c)" (( "(") (binary_expression "iVar1 + 0x16c" (identifier "iVar1") (+ "+") (number_literal "0x16c")) () ")"))))) (; ";")) (return_statement "return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);" (return "return") (call_expression "CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2)" (identifier "CONCAT44") (argument_list "(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2)" (( "(") (unary_expression "-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0))" (- "-") (parenthesized_expression "(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0))" (( "(") (binary_expression "*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)" (pointer_expression "*(int *)(iVar1 + 0x170)" (* "*") (cast_expression "(int *)(iVar1 + 0x170)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x170)" (( "(") (binary_expression "iVar1 + 0x170" (identifier "iVar1") (+ "+") (number_literal "0x170")) () ")")))) (+ "+") (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")))) () ")"))) (, ",") (unary_expression "-iVar2" (- "-") (identifier "iVar2")) () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: int64_t do_tls_offset_for_global(Target_s390<64> * this, Symbol *
   param_1, uint param_2) */

int64_t __thiscall
anon_unknown.dwarf_130c1fc::type_1<64>::function_1
          (type_1<64> *this,type_2 *param_2,type_3 param_3)

{
  type_4 *pOVar1;
  int var_2;
  
  pOVar1 = this->layout_->tls_segment_;
  var_2 = (int)pOVar1->memsz_;
  return var_1(-(*(int *)((int)&pOVar1->memsz_ + 4) + (type_3)(var_2 != 0)),-var_2);
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (unary_expression argument: (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (unary_expression argument: (identifier))))))))

undefined8 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(*(int *)(param_1 + 0x50) + 0x164);
  iVar2 = *(int *)(iVar1 + 0x16c);
  return CONCAT44(-(*(int *)(iVar1 + 0x170) + (uint)(iVar2 != 0)),-iVar2);
}

