
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "STT": Some values do not have unique names */
/* DWARF original prototype: uint64_t value(Unary_minus * this, Expression_eval_info * eei) */

uint64_t __thiscall gold::Unary_minus::value(Unary_minus *this,Expression_eval_info *eei)

{
  int iVar1;
  char *format;
  int iVar2;
  uint64_t uVar3;
  Output_section *arg_section;
  
  arg_section = (Output_section *)0x1be158;
  uVar3 = Expression::eval_maybe_dot
                    ((this->super_Unary_expression).arg_,eei->symtab,eei->layout,
                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,
                     &arg_section,eei->result_alignment_pointer,(STT *)0x0,(STV *)0x0,(uchar *)0x0,
                     false,eei->is_valid_pointer);
  iVar1 = -(int)uVar3;
  iVar2 = -((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0));
  if (arg_section != (Output_section *)0x0) {
    if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
    }
    if ((parameters->options_->relocatable_).value != false) {
      format = (char *)gettext("unary minus applied to section relative value");
      gold_warning(format);
      return CONCAT44(iVar2,iVar1);
    }
  }
  return CONCAT44(iVar2,iVar1);
}



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

undefined8 FUN_001be150(int param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined8 uVar4;
  int local_10;
  
  local_10 = 0x1be158;
  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)
                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10
                       ,param_2[7],0,0,0,0,param_2[0xb]);
  iVar1 = -(int)uVar4;
  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));
  if (local_10 != 0) {
    if (*(int *)(DAT_0038f378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);
    }
    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {
      uVar2 = gettext("unary minus applied to section relative value");
      FUN_000654e0(uVar2);
      return CONCAT44(iVar3,iVar1);
    }
  }
  return CONCAT44(iVar3,iVar1);
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1d0ea8
SUB ESP,0x14
MOV EAX,dword ptr [ESP + 0x28]
PUSH dword ptr [EAX + 0x2c]
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EAX + 0x1c]
LEA EDX,[ESP + 0x28]
PUSH EDX
MOVZX EDX,byte ptr [EAX + 0x9]
PUSH dword ptr [EAX + 0x14]
PUSH dword ptr [EAX + 0x10]
PUSH dword ptr [EAX + 0xc]
PUSH EDX
MOVZX EDX,byte ptr [EAX + 0x8]
PUSH EDX
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x5c]
PUSH dword ptr [EAX + 0x4]
CALL 0x001ba6b0
NEG EAX
ADC EDX,0x0
ADD ESP,0x40
MOV ESI,EAX
NEG EDX
MOV EDI,EDX
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JZ 0x001be1ca
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x001be1fd
CMP byte ptr [EAX + 0x318d],0x0
JNZ 0x001be1d8
ADD ESP,0x10
MOV EAX,ESI
MOV EDX,EDI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff10074]
PUSH EAX
CALL 0x000293b0
MOV dword ptr [ESP],EAX
CALL 0x000654e0
ADD ESP,0x10
MOV EAX,ESI
MOV EDX,EDI
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
LEA EAX,[EBX + 0xfff10518]
PUSH EAX
LEA EAX,[EBX + 0xffef8210]
PUSH 0x5c
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8 FUN_001be150(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}\n\n" comment (function_definition "undefined8 FUN_001be150(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}" type_identifier (function_declarator "FUN_001be150(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = 0x1be158;" (assignment_expression "local_10 = 0x1be158" identifier = number_literal) ;) (expression_statement "uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);" (assignment_expression "uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" identifier = (call_expression "FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" identifier (argument_list "(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (pointer_expression "*param_2" * identifier) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , (pointer_expression "*(undefined1 *)(param_2 + 2)" * (cast_expression "(undefined1 *)(param_2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)((int)param_2 + 9)" * (cast_expression "(undefined1 *)((int)param_2 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 9)" ( (binary_expression "(int)param_2 + 9" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (pointer_expression "&local_10" & identifier) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , number_literal , number_literal , number_literal , number_literal , (subscript_expression "param_2[0xb]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar1 = -(int)uVar4;" (assignment_expression "iVar1 = -(int)uVar4" identifier = (unary_expression "-(int)uVar4" - (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));" (assignment_expression "iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" identifier = (unary_expression "-((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" - (parenthesized_expression "((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" ( (binary_expression "(int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0)" (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + (call_expression "(uint)((int)uVar4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar4 != 0)" ( (binary_expression "(int)uVar4 != 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )))) )))) ;) (if_statement "if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }" if (parenthesized_expression "(local_10 != 0)" ( (binary_expression "local_10 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }" { (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }" { comment (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }" { (expression_statement "uVar2 = gettext("unary minus applied to section relative value");" (assignment_expression "uVar2 = gettext("unary minus applied to section relative value")" identifier = (call_expression "gettext("unary minus applied to section relative value")" identifier (argument_list "("unary minus applied to section relative value")" ( (string_literal ""unary minus applied to section relative value"" " string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar2);" (call_expression "FUN_000654e0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return CONCAT44(iVar3,iVar1);" return (call_expression "CONCAT44(iVar3,iVar1)" identifier (argument_list "(iVar3,iVar1)" ( identifier , identifier ))) ;) })) })) (return_statement "return CONCAT44(iVar3,iVar1);" return (call_expression "CONCAT44(iVar3,iVar1)" identifier (argument_list "(iVar3,iVar1)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "STT": Some values do not have unique names */\n/* DWARF original prototype: uint64_t value(Unary_minus * this, Expression_eval_info * eei) */\n\nuint64_t __thiscall gold::Unary_minus::value(Unary_minus *this,Expression_eval_info *eei)\n\n{\n  int iVar1;\n  char *format;\n  int iVar2;\n  uint64_t uVar3;\n  Output_section *arg_section;\n  \n  arg_section = (Output_section *)0x1be158;\n  uVar3 = Expression::eval_maybe_dot\n                    ((this->super_Unary_expression).arg_,eei->symtab,eei->layout,\n                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,\n                     &arg_section,eei->result_alignment_pointer,(STT *)0x0,(STV *)0x0,(uchar *)0x0,\n                     false,eei->is_valid_pointer);\n  iVar1 = -(int)uVar3;\n  iVar2 = -((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0));\n  if (arg_section != (Output_section *)0x0) {\n    if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    if ((parameters->options_->relocatable_).value != false) {\n      format = (char *)gettext("unary minus applied to section relative value");\n      gold_warning(format);\n      return CONCAT44(iVar2,iVar1);\n    }\n  }\n  return CONCAT44(iVar2,iVar1);\n}\n\n" comment comment comment comment (function_definition "uint64_t __thiscall gold::Unary_minus::value(Unary_minus *this,Expression_eval_info *eei)\n\n{\n  int iVar1;\n  char *format;\n  int iVar2;\n  uint64_t uVar3;\n  Output_section *arg_section;\n  \n  arg_section = (Output_section *)0x1be158;\n  uVar3 = Expression::eval_maybe_dot\n                    ((this->super_Unary_expression).arg_,eei->symtab,eei->layout,\n                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,\n                     &arg_section,eei->result_alignment_pointer,(STT *)0x0,(STV *)0x0,(uchar *)0x0,\n                     false,eei->is_valid_pointer);\n  iVar1 = -(int)uVar3;\n  iVar2 = -((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0));\n  if (arg_section != (Output_section *)0x0) {\n    if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    if ((parameters->options_->relocatable_).value != false) {\n      format = (char *)gettext("unary minus applied to section relative value");\n      gold_warning(format);\n      return CONCAT44(iVar2,iVar1);\n    }\n  }\n  return CONCAT44(iVar2,iVar1);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Unary_minus::" identifier : : identifier : :) (function_declarator "value(Unary_minus *this,Expression_eval_info *eei)" identifier (parameter_list "(Unary_minus *this,Expression_eval_info *eei)" ( (parameter_declaration "Unary_minus *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Expression_eval_info *eei" type_identifier (pointer_declarator "*eei" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *format;\n  int iVar2;\n  uint64_t uVar3;\n  Output_section *arg_section;\n  \n  arg_section = (Output_section *)0x1be158;\n  uVar3 = Expression::eval_maybe_dot\n                    ((this->super_Unary_expression).arg_,eei->symtab,eei->layout,\n                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,\n                     &arg_section,eei->result_alignment_pointer,(STT *)0x0,(STV *)0x0,(uchar *)0x0,\n                     false,eei->is_valid_pointer);\n  iVar1 = -(int)uVar3;\n  iVar2 = -((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0));\n  if (arg_section != (Output_section *)0x0) {\n    if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    if ((parameters->options_->relocatable_).value != false) {\n      format = (char *)gettext("unary minus applied to section relative value");\n      gold_warning(format);\n      return CONCAT44(iVar2,iVar1);\n    }\n  }\n  return CONCAT44(iVar2,iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint64_t uVar3;" primitive_type identifier ;) (declaration "Output_section *arg_section;" type_identifier (pointer_declarator "*arg_section" * identifier) ;) (expression_statement "arg_section = (Output_section *)0x1be158;" (assignment_expression "arg_section = (Output_section *)0x1be158" identifier = (cast_expression "(Output_section *)0x1be158" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (ERROR "uVar3 = Expression::" (assignment_expression "uVar3 = Expression" identifier = identifier) : :) (expression_statement "eval_maybe_dot\n                    ((this->super_Unary_expression).arg_,eei->symtab,eei->layout,\n                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,\n                     &arg_section,eei->result_alignment_pointer,(STT *)0x0,(STV *)0x0,(uchar *)0x0,\n                     false,eei->is_valid_pointer);" (call_expression "eval_maybe_dot\n                    ((this->super_Unary_expression).arg_,eei->symtab,eei->layout,\n                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,\n                     &arg_section,eei->result_alignment_pointer,(STT *)0x0,(STV *)0x0,(uchar *)0x0,\n                     false,eei->is_valid_pointer)" identifier (argument_list "((this->super_Unary_expression).arg_,eei->symtab,eei->layout,\n                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,\n                     &arg_section,eei->result_alignment_pointer,(STT *)0x0,(STV *)0x0,(uchar *)0x0,\n                     false,eei->is_valid_pointer)" ( (field_expression "(this->super_Unary_expression).arg_" (parenthesized_expression "(this->super_Unary_expression)" ( (field_expression "this->super_Unary_expression" identifier -> field_identifier) )) . field_identifier) , (field_expression "eei->symtab" identifier -> field_identifier) , (field_expression "eei->layout" identifier -> field_identifier) , (field_expression "eei->check_assertions" identifier -> field_identifier) , (field_expression "eei->is_dot_available" identifier -> field_identifier) , (field_expression "eei->dot_value" identifier -> field_identifier) , (field_expression "eei->dot_section" identifier -> field_identifier) , (pointer_expression "&arg_section" & identifier) , (field_expression "eei->result_alignment_pointer" identifier -> field_identifier) , (cast_expression "(STT *)0x0" ( (type_descriptor "STT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(STV *)0x0" ( (type_descriptor "STV *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , false , (field_expression "eei->is_valid_pointer" identifier -> field_identifier) ))) ;) (expression_statement "iVar1 = -(int)uVar3;" (assignment_expression "iVar1 = -(int)uVar3" identifier = (unary_expression "-(int)uVar3" - (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar2 = -((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0));" (assignment_expression "iVar2 = -((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0))" identifier = (unary_expression "-((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0))" - (parenthesized_expression "((int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0))" ( (binary_expression "(int)(uVar3 >> 0x20) + (uint)((int)uVar3 != 0)" (cast_expression "(int)(uVar3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x20)" ( (binary_expression "uVar3 >> 0x20" identifier >> number_literal) ))) + (call_expression "(uint)((int)uVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )))) )))) ;) (if_statement "if (arg_section != (Output_section *)0x0) {\n    if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    if ((parameters->options_->relocatable_).value != false) {\n      format = (char *)gettext("unary minus applied to section relative value");\n      gold_warning(format);\n      return CONCAT44(iVar2,iVar1);\n    }\n  }" if (parenthesized_expression "(arg_section != (Output_section *)0x0)" ( (binary_expression "arg_section != (Output_section *)0x0" identifier != (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    if ((parameters->options_->relocatable_).value != false) {\n      format = (char *)gettext("unary minus applied to section relative value");\n      gold_warning(format);\n      return CONCAT44(iVar2,iVar1);\n    }\n  }" { (if_statement "if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }" if (parenthesized_expression "(parameters->options_ == (General_options *)0x0)" ( (binary_expression "parameters->options_ == (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (if_statement "if ((parameters->options_->relocatable_).value != false) {\n      format = (char *)gettext("unary minus applied to section relative value");\n      gold_warning(format);\n      return CONCAT44(iVar2,iVar1);\n    }" if (parenthesized_expression "((parameters->options_->relocatable_).value != false)" ( (binary_expression "(parameters->options_->relocatable_).value != false" (field_expression "(parameters->options_->relocatable_).value" (parenthesized_expression "(parameters->options_->relocatable_)" ( (field_expression "parameters->options_->relocatable_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n      format = (char *)gettext("unary minus applied to section relative value");\n      gold_warning(format);\n      return CONCAT44(iVar2,iVar1);\n    }" { (expression_statement "format = (char *)gettext("unary minus applied to section relative value");" (assignment_expression "format = (char *)gettext("unary minus applied to section relative value")" identifier = (cast_expression "(char *)gettext("unary minus applied to section relative value")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("unary minus applied to section relative value")" identifier (argument_list "("unary minus applied to section relative value")" ( (string_literal ""unary minus applied to section relative value"" " string_content ") ))))) ;) (expression_statement "gold_warning(format);" (call_expression "gold_warning(format)" identifier (argument_list "(format)" ( identifier ))) ;) (return_statement "return CONCAT44(iVar2,iVar1);" return (call_expression "CONCAT44(iVar2,iVar1)" identifier (argument_list "(iVar2,iVar1)" ( identifier , identifier ))) ;) })) })) (return_statement "return CONCAT44(iVar2,iVar1);" return (call_expression "CONCAT44(iVar2,iVar1)" identifier (argument_list "(iVar2,iVar1)" ( identifier , identifier ))) ;) })))
(translation_unit "undefined8 FUN_001be150(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}\n\n" (function_definition "undefined8 FUN_001be150(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}" type_identifier (function_declarator "FUN_001be150(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = 0x1be158;" (assignment_expression "local_10 = 0x1be158" identifier = number_literal) ;) (expression_statement "uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);" (assignment_expression "uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" identifier = (call_expression "FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" identifier (argument_list "(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (pointer_expression "*param_2" * identifier) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , (pointer_expression "*(undefined1 *)(param_2 + 2)" * (cast_expression "(undefined1 *)(param_2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)((int)param_2 + 9)" * (cast_expression "(undefined1 *)((int)param_2 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 9)" ( (binary_expression "(int)param_2 + 9" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (pointer_expression "&local_10" & identifier) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , number_literal , number_literal , number_literal , number_literal , (subscript_expression "param_2[0xb]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar1 = -(int)uVar4;" (assignment_expression "iVar1 = -(int)uVar4" identifier = (unary_expression "-(int)uVar4" - (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));" (assignment_expression "iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" identifier = (unary_expression "-((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" - (parenthesized_expression "((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" ( (binary_expression "(int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0)" (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + (call_expression "(uint)((int)uVar4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar4 != 0)" ( (binary_expression "(int)uVar4 != 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )))) )))) ;) (if_statement "if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }" if (parenthesized_expression "(local_10 != 0)" ( (binary_expression "local_10 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }" { (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }" { (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }" { (expression_statement "uVar2 = gettext("unary minus applied to section relative value");" (assignment_expression "uVar2 = gettext("unary minus applied to section relative value")" identifier = (call_expression "gettext("unary minus applied to section relative value")" identifier (argument_list "("unary minus applied to section relative value")" ( (string_literal ""unary minus applied to section relative value"" " string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar2);" (call_expression "FUN_000654e0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return CONCAT44(iVar3,iVar1);" return (call_expression "CONCAT44(iVar3,iVar1)" identifier (argument_list "(iVar3,iVar1)" ( identifier , identifier ))) ;) })) })) (return_statement "return CONCAT44(iVar3,iVar1);" return (call_expression "CONCAT44(iVar3,iVar1)" identifier (argument_list "(iVar3,iVar1)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) , (subscript_expression IDENT [ LIT ]) , LIT , LIT , LIT , LIT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (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) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) })) (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "undefined8 FUN_001be150(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}" (type_identifier "undefined8") (function_declarator "FUN_001be150(int param_1,undefined4 *param_2)" (identifier "FUN_001be150") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  int local_10;\n  \n  local_10 = 0x1be158;\n  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);\n  iVar1 = -(int)uVar4;\n  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));\n  if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }\n  return CONCAT44(iVar3,iVar1);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = 0x1be158;" (assignment_expression "local_10 = 0x1be158" (identifier "local_10") (= "=") (number_literal "0x1be158")) (; ";")) (expression_statement "uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb]);" (assignment_expression "uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" (identifier "uVar4") (= "=") (call_expression "FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" (identifier "FUN_001ba6b0") (argument_list "(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)\n                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10\n                       ,param_2[7],0,0,0,0,param_2[0xb])" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (, ",") (pointer_expression "*(undefined1 *)(param_2 + 2)" (* "*") (cast_expression "(undefined1 *)(param_2 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")")))) (, ",") (pointer_expression "*(undefined1 *)((int)param_2 + 9)" (* "*") (cast_expression "(undefined1 *)((int)param_2 + 9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 9)" (( "(") (binary_expression "(int)param_2 + 9" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "9")) () ")")))) (, ",") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (subscript_expression "param_2[0xb]" (identifier "param_2") ([ "[") (number_literal "0xb") (] "]")) () ")")))) (; ";")) (expression_statement "iVar1 = -(int)uVar4;" (assignment_expression "iVar1 = -(int)uVar4" (identifier "iVar1") (= "=") (unary_expression "-(int)uVar4" (- "-") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")))) (; ";")) (expression_statement "iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));" (assignment_expression "iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" (identifier "iVar3") (= "=") (unary_expression "-((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" (- "-") (parenthesized_expression "((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0))" (( "(") (binary_expression "(int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0)" (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar4")) (>> ">>") (number_literal "0x20")) () ")"))) (+ "+") (call_expression "(uint)((int)uVar4 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)uVar4 != 0)" (( "(") (binary_expression "(int)uVar4 != 0" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (!= "!=") (number_literal "0")) () ")")))) () ")")))) (; ";")) (if_statement "if (local_10 != 0) {\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }" (if "if") (parenthesized_expression "(local_10 != 0)" (( "(") (binary_expression "local_10 != 0" (identifier "local_10") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }\n  }" ({ "{") (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }" (if "if") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);\n    }" ({ "{") (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",0)" (identifier "FUN_00069d00") (argument_list "("../../gold/parameters.h",0x5c,"options",0)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" (* "*") (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x318d")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar2 = gettext("unary minus applied to section relative value");\n      FUN_000654e0(uVar2);\n      return CONCAT44(iVar3,iVar1);\n    }" ({ "{") (expression_statement "uVar2 = gettext("unary minus applied to section relative value");" (assignment_expression "uVar2 = gettext("unary minus applied to section relative value")" (identifier "uVar2") (= "=") (call_expression "gettext("unary minus applied to section relative value")" (identifier "gettext") (argument_list "("unary minus applied to section relative value")" (( "(") (string_literal ""unary minus applied to section relative value"" (" """) (string_content "unary minus applied to section relative value") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000654e0(uVar2);" (call_expression "FUN_000654e0(uVar2)" (identifier "FUN_000654e0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return CONCAT44(iVar3,iVar1);" (return "return") (call_expression "CONCAT44(iVar3,iVar1)" (identifier "CONCAT44") (argument_list "(iVar3,iVar1)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return CONCAT44(iVar3,iVar1);" (return "return") (call_expression "CONCAT44(iVar3,iVar1)" (identifier "CONCAT44") (argument_list "(iVar3,iVar1)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "STT": Some values do not have unique names */
/* DWARF original prototype: uint64_t value(Unary_minus * this, Expression_eval_info * eei) */

uint64_t __thiscall gold::type_1::function_1(type_1 *this,type_2 *eei)

{
  int iVar1;
  char *format;
  int iVar2;
  uint64_t var_2;
  type_3 *var_3;
  
  var_3 = (type_3 *)0x1be158;
  var_2 = Expression::var_1
                    ((this->super_Unary_expression).arg_,eei->symtab,eei->layout,
                     eei->check_assertions,eei->is_dot_available,eei->dot_value,eei->dot_section,
                     &var_3,eei->result_alignment_pointer,(type_4 *)0x0,(type_5 *)0x0,(type_6 *)0x0,
                     false,eei->is_valid_pointer);
  iVar1 = -(int)var_2;
  iVar2 = -((int)(var_2 >> 0x20) + (uint)((int)var_2 != 0));
  if (var_3 != (type_3 *)0x0) {
    if (parameters->options_ == (type_7 *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_4("../../gold/parameters.h",0x5c,"options");
    }
    if ((parameters->options_->relocatable_).function_1 != false) {
      format = (char *)var_5("unary minus applied to section relative value");
      var_6(format);
      return var_7(iVar2,iVar1);
    }
  }
  return var_7(iVar2,iVar1);
}


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

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

undefined8 MASKED(int param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined8 uVar4;
  int local_10;
  
  local_10 = 0x1be158;
  uVar4 = FUN_001ba6b0(*(undefined4 *)(param_1 + 4),*param_2,param_2[1],*(undefined1 *)(param_2 + 2)
                       ,*(undefined1 *)((int)param_2 + 9),param_2[3],param_2[4],param_2[5],&local_10
                       ,param_2[7],0,0,0,0,param_2[0xb]);
  iVar1 = -(int)uVar4;
  iVar3 = -((int)((ulonglong)uVar4 >> 0x20) + (uint)((int)uVar4 != 0));
  if (local_10 != 0) {
    if (*(int *)(DAT_0038f378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00("../../gold/parameters.h",0x5c,"options",0);
    }
    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) != '\0') {
      uVar2 = gettext("unary minus applied to section relative value");
      FUN_000654e0(uVar2);
      return CONCAT44(iVar3,iVar1);
    }
  }
  return CONCAT44(iVar3,iVar1);
}

