
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t integer_value(Token * this) */

uint64_t __thiscall gold::Token::integer_value(Token *this)

{
  size_t sVar1;
  longlong lVar2;
  byte bVar3;
  uint uVar4;
  ulonglong uVar5;
  size_t local_30;
  char *end;
  undefined4 uStack_14;
  
  uStack_14 = 0x17a169;
  if (this->classification_ != TOKEN_INTEGER) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/script.cc",0xad,"integer_value");
  }
  sVar1 = this->value_length_;
  uVar4 = 0x100000;
  bVar3 = this->value_[sVar1 - 1] & 0xdf;
  local_30 = sVar1 - 1;
  if (bVar3 != 0x4d) {
    local_30 = sVar1;
    if (bVar3 == 0x4b) {
      local_30 = sVar1 - 1;
    }
    uVar4 = 1;
    if (bVar3 == 0x4b) {
      uVar4 = 0x400;
    }
  }
  uVar5 = strtoull(this->value_,&end,0);
  if ((int)end - (int)this->value_ != local_30) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value");
  }
  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;
  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);
}



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

undefined8 __regparm2 FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)

{
  int iVar1;
  longlong lVar2;
  byte bVar3;
  uint uVar4;
  ulonglong uVar5;
  int local_30;
  char *local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x17a169;
  if (*param_3 != 5) {
                    /* WARNING: Subroutine does not return */
    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);
  }
  iVar1 = param_3[2];
  uVar4 = 0x100000;
  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;
  local_30 = iVar1 + -1;
  if (bVar3 != 0x4d) {
    local_30 = iVar1;
    if (bVar3 == 0x4b) {
      local_30 = iVar1 + -1;
    }
    uVar4 = 1;
    if (bVar3 == 0x4b) {
      uVar4 = 0x400;
    }
  }
  uVar5 = strtoull((char *)param_3[1],local_20,0);
  if ((int)local_20[0] - param_3[1] != local_30) {
                    /* WARNING: Subroutine does not return */
    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);
  }
  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;
  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x22fe97
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x40]
CMP dword ptr [EDI],0x5
JNZ 0x0017a1eb
MOV ECX,dword ptr [EDI + 0x8]
MOV EAX,dword ptr [EDI + 0x4]
MOV ESI,0x100000
LEA EDX,[ECX + -0x1]
MOV dword ptr [ESP + 0xc],EDX
MOVZX EDX,byte ptr [EAX + ECX*0x1 + -0x1]
AND EDX,0xffffffdf
CMP DL,0x4d
JNZ 0x0017a1d0
SUB ESP,0x4
PUSH 0x0
LEA EDX,[ESP + 0x24]
PUSH EDX
PUSH EAX
CALL 0x0002a430
MOV ECX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
SUB ECX,dword ptr [EDI + 0x4]
CMP ECX,dword ptr [ESP + 0xc]
JNZ 0x0017a204
MOV ECX,EDX
MUL ESI
ADD ESP,0x2c
IMUL ECX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
ADD EDX,ECX
RET
CMP DL,0x4b
CMOVZ ECX,dword ptr [ESP + 0xc]
MOV ESI,0x1
MOV EBP,0x400
CMOVZ ESI,EBP
MOV dword ptr [ESP + 0xc],ECX
JMP 0x0017a19a
LEA EAX,[EBX + 0xfff0743c]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfff0634c]
PUSH 0xad
PUSH EAX
CALL 0x0007ac80
PUSH EAX
LEA EAX,[EBX + 0xfff0743c]
PUSH EAX
LEA EAX,[EBX + 0xfff0634c]
PUSH 0xc0
PUSH EAX
CALL 0x0007ac80
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8 __regparm2 FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}\n\n" comment (function_definition "undefined8 __regparm2 FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "longlong lVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "ulonglong uVar5;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char *local_20 [3];" primitive_type (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x17a169;" (assignment_expression "uStack_14 = 0x17a169" identifier = number_literal) ;) (if_statement "if (*param_3 != 5) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }" if (parenthesized_expression "(*param_3 != 5)" ( (binary_expression "*param_3 != 5" (pointer_expression "*param_3" * identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }" { comment (expression_statement "FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);" (call_expression "FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2)" identifier (argument_list "("../../gold/script.cc",0xad,"integer_value",param_2)" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""integer_value"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = param_3[2];" (assignment_expression "iVar1 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = 0x100000;" (assignment_expression "uVar4 = 0x100000" identifier = number_literal) ;) (expression_statement "bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;" (assignment_expression "bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf" identifier = (binary_expression "((char *)param_3[1])[iVar1 + -1] & 0xdf" (subscript_expression "((char *)param_3[1])[iVar1 + -1]" (parenthesized_expression "((char *)param_3[1])" ( (cast_expression "(char *)param_3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ])) )) [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) & number_literal)) ;) (expression_statement "local_30 = iVar1 + -1;" (assignment_expression "local_30 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (if_statement "if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" if (parenthesized_expression "(bVar3 != 0x4d)" ( (binary_expression "bVar3 != 0x4d" identifier != number_literal) )) (compound_statement "{\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" { (expression_statement "local_30 = iVar1;" (assignment_expression "local_30 = iVar1" identifier = identifier) ;) (if_statement "if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }" if (parenthesized_expression "(bVar3 == 0x4b)" ( (binary_expression "bVar3 == 0x4b" identifier == number_literal) )) (compound_statement "{\n      local_30 = iVar1 + -1;\n    }" { (expression_statement "local_30 = iVar1 + -1;" (assignment_expression "local_30 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }" if (parenthesized_expression "(bVar3 == 0x4b)" ( (binary_expression "bVar3 == 0x4b" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0x400;\n    }" { (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" identifier = number_literal) ;) })) })) (expression_statement "uVar5 = strtoull((char *)param_3[1],local_20,0);" (assignment_expression "uVar5 = strtoull((char *)param_3[1],local_20,0)" identifier = (call_expression "strtoull((char *)param_3[1],local_20,0)" identifier (argument_list "((char *)param_3[1],local_20,0)" ( (cast_expression "(char *)param_3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ])) , identifier , number_literal )))) ;) (if_statement "if ((int)local_20[0] - param_3[1] != local_30) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }" if (parenthesized_expression "((int)local_20[0] - param_3[1] != local_30)" ( (binary_expression "(int)local_20[0] - param_3[1] != local_30" (binary_expression "(int)local_20[0] - param_3[1]" (cast_expression "(int)local_20[0]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "local_20[0]" identifier [ number_literal ])) - (subscript_expression "param_3[1]" identifier [ number_literal ])) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }" { comment (expression_statement "FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);" (call_expression "FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5)" identifier (argument_list "("../../gold/script.cc",0xc0,"integer_value",(int)uVar5)" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""integer_value"" " string_content ") , (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (expression_statement "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;" (assignment_expression "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4" identifier = (binary_expression "(uVar5 & 0xffffffff) * (ulonglong)uVar4" (parenthesized_expression "(uVar5 & 0xffffffff)" ( (binary_expression "uVar5 & 0xffffffff" identifier & number_literal) )) * (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (return_statement "return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);" return (call_expression "CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" identifier (argument_list "((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" ( (binary_expression "(int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)((ulonglong)lVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar2 >> 0x20)" ( (binary_expression "(ulonglong)lVar2 >> 0x20" (cast_expression "(ulonglong)lVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + (binary_expression "(int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)(uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 >> 0x20)" ( (binary_expression "uVar5 >> 0x20" identifier >> number_literal) ))) * identifier)) , (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: uint64_t integer_value(Token * this) */\n\nuint64_t __thiscall gold::Token::integer_value(Token *this)\n\n{\n  size_t sVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  size_t local_30;\n  char *end;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (this->classification_ != TOKEN_INTEGER) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xad,"integer_value");\n  }\n  sVar1 = this->value_length_;\n  uVar4 = 0x100000;\n  bVar3 = this->value_[sVar1 - 1] & 0xdf;\n  local_30 = sVar1 - 1;\n  if (bVar3 != 0x4d) {\n    local_30 = sVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = sVar1 - 1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull(this->value_,&end,0);\n  if ((int)end - (int)this->value_ != local_30) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value");\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}\n\n" comment comment (function_definition "uint64_t __thiscall gold::Token::integer_value(Token *this)\n\n{\n  size_t sVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  size_t local_30;\n  char *end;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (this->classification_ != TOKEN_INTEGER) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xad,"integer_value");\n  }\n  sVar1 = this->value_length_;\n  uVar4 = 0x100000;\n  bVar3 = this->value_[sVar1 - 1] & 0xdf;\n  local_30 = sVar1 - 1;\n  if (bVar3 != 0x4d) {\n    local_30 = sVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = sVar1 - 1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull(this->value_,&end,0);\n  if ((int)end - (int)this->value_ != local_30) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value");\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Token::" identifier : : identifier : :) (function_declarator "integer_value(Token *this)" identifier (parameter_list "(Token *this)" ( (parameter_declaration "Token *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  size_t local_30;\n  char *end;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (this->classification_ != TOKEN_INTEGER) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xad,"integer_value");\n  }\n  sVar1 = this->value_length_;\n  uVar4 = 0x100000;\n  bVar3 = this->value_[sVar1 - 1] & 0xdf;\n  local_30 = sVar1 - 1;\n  if (bVar3 != 0x4d) {\n    local_30 = sVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = sVar1 - 1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull(this->value_,&end,0);\n  if ((int)end - (int)this->value_ != local_30) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value");\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "longlong lVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "ulonglong uVar5;" type_identifier identifier ;) (declaration "size_t local_30;" primitive_type identifier ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x17a169;" (assignment_expression "uStack_14 = 0x17a169" identifier = number_literal) ;) (if_statement "if (this->classification_ != TOKEN_INTEGER) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xad,"integer_value");\n  }" if (parenthesized_expression "(this->classification_ != TOKEN_INTEGER)" ( (binary_expression "this->classification_ != TOKEN_INTEGER" (field_expression "this->classification_" identifier -> field_identifier) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xad,"integer_value");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/script.cc",0xad,"integer_value");" (call_expression "do_gold_unreachable("../../gold/script.cc",0xad,"integer_value")" identifier (argument_list "("../../gold/script.cc",0xad,"integer_value")" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""integer_value"" " string_content ") ))) ;) })) (expression_statement "sVar1 = this->value_length_;" (assignment_expression "sVar1 = this->value_length_" identifier = (field_expression "this->value_length_" identifier -> field_identifier)) ;) (expression_statement "uVar4 = 0x100000;" (assignment_expression "uVar4 = 0x100000" identifier = number_literal) ;) (expression_statement "bVar3 = this->value_[sVar1 - 1] & 0xdf;" (assignment_expression "bVar3 = this->value_[sVar1 - 1] & 0xdf" identifier = (binary_expression "this->value_[sVar1 - 1] & 0xdf" (subscript_expression "this->value_[sVar1 - 1]" (field_expression "this->value_" identifier -> field_identifier) [ (binary_expression "sVar1 - 1" identifier - number_literal) ]) & number_literal)) ;) (expression_statement "local_30 = sVar1 - 1;" (assignment_expression "local_30 = sVar1 - 1" identifier = (binary_expression "sVar1 - 1" identifier - number_literal)) ;) (if_statement "if (bVar3 != 0x4d) {\n    local_30 = sVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = sVar1 - 1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" if (parenthesized_expression "(bVar3 != 0x4d)" ( (binary_expression "bVar3 != 0x4d" identifier != number_literal) )) (compound_statement "{\n    local_30 = sVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = sVar1 - 1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" { (expression_statement "local_30 = sVar1;" (assignment_expression "local_30 = sVar1" identifier = identifier) ;) (if_statement "if (bVar3 == 0x4b) {\n      local_30 = sVar1 - 1;\n    }" if (parenthesized_expression "(bVar3 == 0x4b)" ( (binary_expression "bVar3 == 0x4b" identifier == number_literal) )) (compound_statement "{\n      local_30 = sVar1 - 1;\n    }" { (expression_statement "local_30 = sVar1 - 1;" (assignment_expression "local_30 = sVar1 - 1" identifier = (binary_expression "sVar1 - 1" identifier - number_literal)) ;) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }" if (parenthesized_expression "(bVar3 == 0x4b)" ( (binary_expression "bVar3 == 0x4b" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0x400;\n    }" { (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" identifier = number_literal) ;) })) })) (expression_statement "uVar5 = strtoull(this->value_,&end,0);" (assignment_expression "uVar5 = strtoull(this->value_,&end,0)" identifier = (call_expression "strtoull(this->value_,&end,0)" identifier (argument_list "(this->value_,&end,0)" ( (field_expression "this->value_" identifier -> field_identifier) , (pointer_expression "&end" & identifier) , number_literal )))) ;) (if_statement "if ((int)end - (int)this->value_ != local_30) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value");\n  }" if (parenthesized_expression "((int)end - (int)this->value_ != local_30)" ( (binary_expression "(int)end - (int)this->value_ != local_30" (binary_expression "(int)end - (int)this->value_" (cast_expression "(int)end" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)this->value_" ( (type_descriptor "int" primitive_type) ) (field_expression "this->value_" identifier -> field_identifier))) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value");" (call_expression "do_gold_unreachable("../../gold/script.cc",0xc0,"integer_value")" identifier (argument_list "("../../gold/script.cc",0xc0,"integer_value")" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""integer_value"" " string_content ") ))) ;) })) (expression_statement "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;" (assignment_expression "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4" identifier = (binary_expression "(uVar5 & 0xffffffff) * (ulonglong)uVar4" (parenthesized_expression "(uVar5 & 0xffffffff)" ( (binary_expression "uVar5 & 0xffffffff" identifier & number_literal) )) * (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (return_statement "return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);" return (call_expression "CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" identifier (argument_list "((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" ( (binary_expression "(int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)((ulonglong)lVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar2 >> 0x20)" ( (binary_expression "(ulonglong)lVar2 >> 0x20" (cast_expression "(ulonglong)lVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + (binary_expression "(int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)(uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 >> 0x20)" ( (binary_expression "uVar5 >> 0x20" identifier >> number_literal) ))) * identifier)) , (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })))
(translation_unit "undefined8 __regparm2 FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}\n\n" (function_definition "undefined8 __regparm2 FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "longlong lVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "ulonglong uVar5;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char *local_20 [3];" primitive_type (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x17a169;" (assignment_expression "uStack_14 = 0x17a169" identifier = number_literal) ;) (if_statement "if (*param_3 != 5) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }" if (parenthesized_expression "(*param_3 != 5)" ( (binary_expression "*param_3 != 5" (pointer_expression "*param_3" * identifier) != number_literal) )) (compound_statement "{\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }" { (expression_statement "FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);" (call_expression "FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2)" identifier (argument_list "("../../gold/script.cc",0xad,"integer_value",param_2)" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""integer_value"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = param_3[2];" (assignment_expression "iVar1 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = 0x100000;" (assignment_expression "uVar4 = 0x100000" identifier = number_literal) ;) (expression_statement "bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;" (assignment_expression "bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf" identifier = (binary_expression "((char *)param_3[1])[iVar1 + -1] & 0xdf" (subscript_expression "((char *)param_3[1])[iVar1 + -1]" (parenthesized_expression "((char *)param_3[1])" ( (cast_expression "(char *)param_3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ])) )) [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) & number_literal)) ;) (expression_statement "local_30 = iVar1 + -1;" (assignment_expression "local_30 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (if_statement "if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" if (parenthesized_expression "(bVar3 != 0x4d)" ( (binary_expression "bVar3 != 0x4d" identifier != number_literal) )) (compound_statement "{\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" { (expression_statement "local_30 = iVar1;" (assignment_expression "local_30 = iVar1" identifier = identifier) ;) (if_statement "if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }" if (parenthesized_expression "(bVar3 == 0x4b)" ( (binary_expression "bVar3 == 0x4b" identifier == number_literal) )) (compound_statement "{\n      local_30 = iVar1 + -1;\n    }" { (expression_statement "local_30 = iVar1 + -1;" (assignment_expression "local_30 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }" if (parenthesized_expression "(bVar3 == 0x4b)" ( (binary_expression "bVar3 == 0x4b" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0x400;\n    }" { (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" identifier = number_literal) ;) })) })) (expression_statement "uVar5 = strtoull((char *)param_3[1],local_20,0);" (assignment_expression "uVar5 = strtoull((char *)param_3[1],local_20,0)" identifier = (call_expression "strtoull((char *)param_3[1],local_20,0)" identifier (argument_list "((char *)param_3[1],local_20,0)" ( (cast_expression "(char *)param_3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ])) , identifier , number_literal )))) ;) (if_statement "if ((int)local_20[0] - param_3[1] != local_30) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }" if (parenthesized_expression "((int)local_20[0] - param_3[1] != local_30)" ( (binary_expression "(int)local_20[0] - param_3[1] != local_30" (binary_expression "(int)local_20[0] - param_3[1]" (cast_expression "(int)local_20[0]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "local_20[0]" identifier [ number_literal ])) - (subscript_expression "param_3[1]" identifier [ number_literal ])) != identifier) )) (compound_statement "{\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }" { (expression_statement "FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);" (call_expression "FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5)" identifier (argument_list "("../../gold/script.cc",0xc0,"integer_value",(int)uVar5)" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""integer_value"" " string_content ") , (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (expression_statement "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;" (assignment_expression "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4" identifier = (binary_expression "(uVar5 & 0xffffffff) * (ulonglong)uVar4" (parenthesized_expression "(uVar5 & 0xffffffff)" ( (binary_expression "uVar5 & 0xffffffff" identifier & number_literal) )) * (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (return_statement "return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);" return (call_expression "CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" identifier (argument_list "((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" ( (binary_expression "(int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)((ulonglong)lVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar2 >> 0x20)" ( (binary_expression "(ulonglong)lVar2 >> 0x20" (cast_expression "(ulonglong)lVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) + (binary_expression "(int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)(uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 >> 0x20)" ( (binary_expression "uVar5 >> 0x20" identifier >> number_literal) ))) * identifier)) , (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )) [ (binary_expression IDENT + LIT) ]) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) - (subscript_expression IDENT [ LIT ])) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (return_statement return (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) * IDENT)) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) })))
(function_definition "undefined8 __regparm2 FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" (type_identifier "undefined8") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0017a160(undefined4 param_1,undefined4 param_2,int *param_3)" (identifier "FUN_0017a160") (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  longlong lVar2;\n  byte bVar3;\n  uint uVar4;\n  ulonglong uVar5;\n  int local_30;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17a169;\n  if (*param_3 != 5) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }\n  iVar1 = param_3[2];\n  uVar4 = 0x100000;\n  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;\n  local_30 = iVar1 + -1;\n  if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }\n  uVar5 = strtoull((char *)param_3[1],local_20,0);\n  if ((int)local_20[0] - param_3[1] != local_30) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }\n  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;\n  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "longlong lVar2;" (type_identifier "longlong") (identifier "lVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "ulonglong uVar5;" (type_identifier "ulonglong") (identifier "uVar5") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "char *local_20 [3];" (primitive_type "char") (pointer_declarator "*local_20 [3]" (* "*") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]"))) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x17a169;" (assignment_expression "uStack_14 = 0x17a169" (identifier "uStack_14") (= "=") (number_literal "0x17a169")) (; ";")) (if_statement "if (*param_3 != 5) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }" (if "if") (parenthesized_expression "(*param_3 != 5)" (( "(") (binary_expression "*param_3 != 5" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n                    \n    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);\n  }" ({ "{") (expression_statement "FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);" (call_expression "FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2)" (identifier "FUN_0007ac80") (argument_list "("../../gold/script.cc",0xad,"integer_value",param_2)" (( "(") (string_literal ""../../gold/script.cc"" (" """) (string_content "../../gold/script.cc") (" """)) (, ",") (number_literal "0xad") (, ",") (string_literal ""integer_value"" (" """) (string_content "integer_value") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = param_3[2];" (assignment_expression "iVar1 = param_3[2]" (identifier "iVar1") (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar4 = 0x100000;" (assignment_expression "uVar4 = 0x100000" (identifier "uVar4") (= "=") (number_literal "0x100000")) (; ";")) (expression_statement "bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;" (assignment_expression "bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf" (identifier "bVar3") (= "=") (binary_expression "((char *)param_3[1])[iVar1 + -1] & 0xdf" (subscript_expression "((char *)param_3[1])[iVar1 + -1]" (parenthesized_expression "((char *)param_3[1])" (( "(") (cast_expression "(char *)param_3[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) () ")")) ([ "[") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1")) (] "]")) (& "&") (number_literal "0xdf"))) (; ";")) (expression_statement "local_30 = iVar1 + -1;" (assignment_expression "local_30 = iVar1 + -1" (identifier "local_30") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (bVar3 != 0x4d) {\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" (if "if") (parenthesized_expression "(bVar3 != 0x4d)" (( "(") (binary_expression "bVar3 != 0x4d" (identifier "bVar3") (!= "!=") (number_literal "0x4d")) () ")")) (compound_statement "{\n    local_30 = iVar1;\n    if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }\n    uVar4 = 1;\n    if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }\n  }" ({ "{") (expression_statement "local_30 = iVar1;" (assignment_expression "local_30 = iVar1" (identifier "local_30") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (bVar3 == 0x4b) {\n      local_30 = iVar1 + -1;\n    }" (if "if") (parenthesized_expression "(bVar3 == 0x4b)" (( "(") (binary_expression "bVar3 == 0x4b" (identifier "bVar3") (== "==") (number_literal "0x4b")) () ")")) (compound_statement "{\n      local_30 = iVar1 + -1;\n    }" ({ "{") (expression_statement "local_30 = iVar1 + -1;" (assignment_expression "local_30 = iVar1 + -1" (identifier "local_30") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if (bVar3 == 0x4b) {\n      uVar4 = 0x400;\n    }" (if "if") (parenthesized_expression "(bVar3 == 0x4b)" (( "(") (binary_expression "bVar3 == 0x4b" (identifier "bVar3") (== "==") (number_literal "0x4b")) () ")")) (compound_statement "{\n      uVar4 = 0x400;\n    }" ({ "{") (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" (identifier "uVar4") (= "=") (number_literal "0x400")) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar5 = strtoull((char *)param_3[1],local_20,0);" (assignment_expression "uVar5 = strtoull((char *)param_3[1],local_20,0)" (identifier "uVar5") (= "=") (call_expression "strtoull((char *)param_3[1],local_20,0)" (identifier "strtoull") (argument_list "((char *)param_3[1],local_20,0)" (( "(") (cast_expression "(char *)param_3[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "local_20") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((int)local_20[0] - param_3[1] != local_30) {\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }" (if "if") (parenthesized_expression "((int)local_20[0] - param_3[1] != local_30)" (( "(") (binary_expression "(int)local_20[0] - param_3[1] != local_30" (binary_expression "(int)local_20[0] - param_3[1]" (cast_expression "(int)local_20[0]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (- "-") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (identifier "local_30")) () ")")) (compound_statement "{\n                    \n    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);\n  }" ({ "{") (expression_statement "FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);" (call_expression "FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5)" (identifier "FUN_0007ac80") (argument_list "("../../gold/script.cc",0xc0,"integer_value",(int)uVar5)" (( "(") (string_literal ""../../gold/script.cc"" (" """) (string_content "../../gold/script.cc") (" """)) (, ",") (number_literal "0xc0") (, ",") (string_literal ""integer_value"" (" """) (string_content "integer_value") (" """)) (, ",") (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;" (assignment_expression "lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4" (identifier "lVar2") (= "=") (binary_expression "(uVar5 & 0xffffffff) * (ulonglong)uVar4" (parenthesized_expression "(uVar5 & 0xffffffff)" (( "(") (binary_expression "uVar5 & 0xffffffff" (identifier "uVar5") (& "&") (number_literal "0xffffffff")) () ")")) (* "*") (cast_expression "(ulonglong)uVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar4")))) (; ";")) (return_statement "return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);" (return "return") (call_expression "CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" (identifier "CONCAT44") (argument_list "((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2)" (( "(") (binary_expression "(int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)((ulonglong)lVar2 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)lVar2 >> 0x20)" (( "(") (binary_expression "(ulonglong)lVar2 >> 0x20" (cast_expression "(ulonglong)lVar2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "lVar2")) (>> ">>") (number_literal "0x20")) () ")"))) (+ "+") (binary_expression "(int)(uVar5 >> 0x20) * uVar4" (cast_expression "(int)(uVar5 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar5 >> 0x20)" (( "(") (binary_expression "uVar5 >> 0x20" (identifier "uVar5") (>> ">>") (number_literal "0x20")) () ")"))) (* "*") (identifier "uVar4"))) (, ",") (cast_expression "(int)lVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar2")) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t integer_value(Token * this) */

uint64_t __thiscall gold::type_1::function_1(type_1 *this)

{
  size_t var_3;
  type_2 lVar2;
  type_3 var_4;
  type_4 var_9;
  type_5 var_7;
  size_t var_6;
  char *end;
  type_6 uStack_14;
  
  uStack_14 = 0x17a169;
  if (this->classification_ != var_1) {
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/script.cc",0xad,"integer_value");
  }
  var_3 = this->value_length_;
  var_9 = 0x100000;
  var_4 = this->value_[var_3 - 1] & 0xdf;
  var_6 = var_3 - 1;
  if (var_4 != 0x4d) {
    var_6 = var_3;
    if (var_4 == 0x4b) {
      var_6 = var_3 - 1;
    }
    var_9 = 1;
    if (var_4 == 0x4b) {
      var_9 = 0x400;
    }
  }
  var_7 = var_5(this->value_,&end,0);
  if ((int)end - (int)this->value_ != var_6) {
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/script.cc",0xc0,"integer_value");
  }
  lVar2 = (var_7 & 0xffffffff) * (type_5)var_9;
  return var_8((int)((type_5)lVar2 >> 0x20) + (int)(var_7 >> 0x20) * var_9,(int)lVar2);
}


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

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

undefined8 __regparm2 MASKED(undefined4 param_1,undefined4 param_2,int *param_3)

{
  int iVar1;
  longlong lVar2;
  byte bVar3;
  uint uVar4;
  ulonglong uVar5;
  int local_30;
  char *local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x17a169;
  if (*param_3 != 5) {
                    /* WARNING: Subroutine does not return */
    FUN_0007ac80("../../gold/script.cc",0xad,"integer_value",param_2);
  }
  iVar1 = param_3[2];
  uVar4 = 0x100000;
  bVar3 = ((char *)param_3[1])[iVar1 + -1] & 0xdf;
  local_30 = iVar1 + -1;
  if (bVar3 != 0x4d) {
    local_30 = iVar1;
    if (bVar3 == 0x4b) {
      local_30 = iVar1 + -1;
    }
    uVar4 = 1;
    if (bVar3 == 0x4b) {
      uVar4 = 0x400;
    }
  }
  uVar5 = strtoull((char *)param_3[1],local_20,0);
  if ((int)local_20[0] - param_3[1] != local_30) {
                    /* WARNING: Subroutine does not return */
    FUN_0007ac80("../../gold/script.cc",0xc0,"integer_value",(int)uVar5);
  }
  lVar2 = (uVar5 & 0xffffffff) * (ulonglong)uVar4;
  return CONCAT44((int)((ulonglong)lVar2 >> 0x20) + (int)(uVar5 >> 0x20) * uVar4,(int)lVar2);
}

