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

uintmax_t xnumtoumax(char *n_str,int base,uintmax_t min,uintmax_t max,char *suffixes,char *err,
                    int err_exit)

{
  uint uVar1;
  uint uVar2;
  strtol_error sVar3;
  int *piVar4;
  int iVar5;
  char *pcVar6;
  int iVar7;
  int in_GS_OFFSET;
  uintmax_t tnum;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x15959;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  sVar3 = xstrtoumax(n_str,(char **)0x0,base,&tnum,suffixes);
  uVar2 = tnum._4_4_;
  uVar1 = (uint)tnum;
  if (sVar3 == LONGINT_OK) {
    if ((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&
       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))
    goto LAB_00015a49;
    piVar4 = __errno_location();
    iVar5 = 0x22;
    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {
      iVar5 = 0x4b;
    }
    *piVar4 = iVar5;
  }
  else {
    piVar4 = __errno_location();
    if (sVar3 == LONGINT_OVERFLOW) {
      *piVar4 = 0x4b;
    }
    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {
      *piVar4 = 0;
    }
  }
  pcVar6 = quote(n_str);
  iVar5 = *piVar4;
  if (iVar5 == 0x16) {
    iVar5 = 0;
  }
  iVar7 = 1;
  if (err_exit != 0) {
    iVar7 = err_exit;
  }
  error(iVar7,iVar5,"%s: %s",err,pcVar6);
LAB_00015a49:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return CONCAT44(tnum._4_4_,(uint)tnum);
}



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

undefined8
FUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,
            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  int *piVar4;
  undefined4 uVar5;
  int iVar6;
  int in_GS_OFFSET;
  uint local_2c;
  uint local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x15959;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);
  uVar2 = local_28;
  uVar1 = local_2c;
  if (iVar3 == 0) {
    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&
       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;
    piVar4 = __errno_location();
    iVar3 = 0x22;
    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {
      iVar3 = 0x4b;
    }
    *piVar4 = iVar3;
  }
  else {
    piVar4 = __errno_location();
    if (iVar3 == 1) {
      *piVar4 = 0x4b;
    }
    else if (iVar3 == 3) {
      *piVar4 = 0;
    }
  }
  uVar5 = FUN_00015070(param_1);
  iVar3 = *piVar4;
  if (iVar3 == 0x16) {
    iVar3 = 0;
  }
  iVar6 = 1;
  if (param_9 != 0) {
    iVar6 = param_9;
  }
  error(iVar6,iVar3,"%s: %s",param_8,uVar5);
LAB_00015a49:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00017750();
  }
  return CONCAT44(local_28,local_2c);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000118f0
ADD EBX,0x76a7
SUB ESP,0x38
MOV EAX,dword ptr [ESP + 0x58]
MOV EDI,dword ptr [ESP + 0x5c]
MOV ECX,dword ptr [ESP + 0x60]
MOV ESI,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x10],EAX
MOV EBP,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x14],EDI
MOV EDI,dword ptr [ESP + 0x68]
MOV dword ptr [ESP + 0x18],ECX
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x28],EDX
XOR EDX,EDX
PUSH dword ptr [ESP + 0x64]
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH dword ptr [ESP + 0x58]
PUSH 0x0
PUSH ESI
CALL 0x00015af0
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00015a78
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
CMP ECX,EBP
MOV EBP,EDX
SBB EBP,dword ptr [ESP + 0x4]
JNC 0x00015a60
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0x4],ECX
CALL 0x00011240
MOV ECX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x8]
MOV EBP,EAX
MOV EAX,0x3fffffff
CMP EAX,ECX
MOV EAX,0x0
SBB EAX,EDX
MOV EAX,0x22
MOV EDX,0x4b
CMOVC EAX,EDX
MOV dword ptr [EBP],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x00015070
MOV EDX,dword ptr [EBP]
MOV ECX,0x0
MOV dword ptr [ESP],EAX
LEA EAX,[EBX + 0xffffb6af]
CMP EDX,0x16
CMOVZ EDX,ECX
MOV ECX,dword ptr [ESP + 0x70]
TEST ECX,ECX
MOV ECX,0x1
CMOVNZ ECX,dword ptr [ESP + 0x70]
MOV dword ptr [ESP + 0x70],ECX
PUSH EDI
PUSH EAX
PUSH EDX
PUSH dword ptr [ESP + 0x7c]
CALL 0x00011170
MOV ECX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
ADD ESP,0x20
MOV ESI,dword ptr [ESP + 0x1c]
XOR ESI,dword ptr GS:[0x14]
MOV EAX,ECX
JNZ 0x00015aab
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [ESP + 0x8],ECX
SBB EAX,EDX
JNC 0x00015a49
JMP 0x000159c9
MOV dword ptr [ESP + 0x4],EAX
CALL 0x00011240
MOV EDX,dword ptr [ESP + 0x4]
MOV EBP,EAX
CMP EDX,0x1
JZ 0x00015aa0
CMP EDX,0x3
JNZ 0x000159fe
MOV dword ptr [EAX],0x0
JMP 0x000159fe
MOV dword ptr [EAX],0x4b
JMP 0x000159fe
CALL 0x00017750
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8\nFUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}\n\n" comment (function_definition "undefined8\nFUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}" type_identifier (function_declarator "FUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int param_9" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x15959;" (assignment_expression "uStack_14 = 0x15959" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);" (assignment_expression "iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7)" identifier = (call_expression "FUN_00015af0(param_1,0,param_2,&local_2c,param_7)" identifier (argument_list "(param_1,0,param_2,&local_2c,param_7)" ( identifier , number_literal , identifier , (pointer_expression "&local_2c" & identifier) , identifier )))) ;) (expression_statement "uVar2 = local_28;" (assignment_expression "uVar2 = local_28" identifier = identifier) ;) (expression_statement "uVar1 = local_2c;" (assignment_expression "uVar1 = local_2c" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }" { (if_statement "if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;" if (parenthesized_expression "((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28))" ( (binary_expression "(param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)" (parenthesized_expression "(param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4)" ( (binary_expression "param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4" (binary_expression "param_4 <= local_28" identifier <= identifier) && (binary_expression "(uint)(local_2c < param_3) <= local_28 - param_4" (call_expression "(uint)(local_2c < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_2c < param_3)" ( (binary_expression "local_2c < param_3" identifier < identifier) ))) <= (binary_expression "local_28 - param_4" identifier - identifier))) )) && (parenthesized_expression "(local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)" ( (binary_expression "local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28" (binary_expression "local_28 <= param_6" identifier <= identifier) && (binary_expression "(uint)(param_5 < local_2c) <= param_6 - local_28" (call_expression "(uint)(param_5 < local_2c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_5 < local_2c)" ( (binary_expression "param_5 < local_2c" identifier < identifier) ))) <= (binary_expression "param_6 - local_28" identifier - identifier))) ))) )) (goto_statement "goto LAB_00015a49;" goto statement_identifier ;)) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = 0x22;" (assignment_expression "iVar3 = 0x22" identifier = number_literal) ;) (if_statement "if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }" if (parenthesized_expression "(uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1))" ( (binary_expression "uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)" (binary_expression "uVar2 != 0" identifier != number_literal) || (binary_expression "-uVar2 < (uint)(0x3fffffff < uVar1)" (unary_expression "-uVar2" - identifier) < (call_expression "(uint)(0x3fffffff < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x3fffffff < uVar1)" ( (binary_expression "0x3fffffff < uVar1" number_literal < identifier) ))))) )) (compound_statement "{\n      iVar3 = 0x4b;\n    }" { (expression_statement "iVar3 = 0x4b;" (assignment_expression "iVar3 = 0x4b" identifier = number_literal) ;) })) (expression_statement "*piVar4 = iVar3;" (assignment_expression "*piVar4 = iVar3" (pointer_expression "*piVar4" * identifier) = identifier) ;) }) (else_clause "else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" else (compound_statement "{\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      *piVar4 = 0x4b;\n    }" { (expression_statement "*piVar4 = 0x4b;" (assignment_expression "*piVar4 = 0x4b" (pointer_expression "*piVar4" * identifier) = number_literal) ;) }) (else_clause "else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" else (if_statement "if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" if (parenthesized_expression "(iVar3 == 3)" ( (binary_expression "iVar3 == 3" identifier == number_literal) )) (compound_statement "{\n      *piVar4 = 0;\n    }" { (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) })))) }))) (expression_statement "uVar5 = FUN_00015070(param_1);" (assignment_expression "uVar5 = FUN_00015070(param_1)" identifier = (call_expression "FUN_00015070(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0x16)" ( (binary_expression "iVar3 == 0x16" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (if_statement "if (param_9 != 0) {\n    iVar6 = param_9;\n  }" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar6 = param_9;\n  }" { (expression_statement "iVar6 = param_9;" (assignment_expression "iVar6 = param_9" identifier = identifier) ;) })) (expression_statement "error(iVar6,iVar3,"%s: %s",param_8,uVar5);" (call_expression "error(iVar6,iVar3,"%s: %s",param_8,uVar5)" identifier (argument_list "(iVar6,iVar3,"%s: %s",param_8,uVar5)" ( identifier , identifier , (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) (labeled_statement "LAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017750();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017750();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00017750();\n  }" { comment (expression_statement "FUN_00017750();" (call_expression "FUN_00017750()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return CONCAT44(local_28,local_2c);" return (call_expression "CONCAT44(local_28,local_2c)" identifier (argument_list "(local_28,local_2c)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuintmax_t xnumtoumax(char *n_str,int base,uintmax_t min,uintmax_t max,char *suffixes,char *err,\n                    int err_exit)\n\n{\n  uint uVar1;\n  uint uVar2;\n  strtol_error sVar3;\n  int *piVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  uintmax_t tnum;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar3 = xstrtoumax(n_str,(char **)0x0,base,&tnum,suffixes);\n  uVar2 = tnum._4_4_;\n  uVar1 = (uint)tnum;\n  if (sVar3 == LONGINT_OK) {\n    if ((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))\n    goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar5 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar5 = 0x4b;\n    }\n    *piVar4 = iVar5;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (sVar3 == LONGINT_OVERFLOW) {\n      *piVar4 = 0x4b;\n    }\n    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }\n  }\n  pcVar6 = quote(n_str);\n  iVar5 = *piVar4;\n  if (iVar5 == 0x16) {\n    iVar5 = 0;\n  }\n  iVar7 = 1;\n  if (err_exit != 0) {\n    iVar7 = err_exit;\n  }\n  error(iVar7,iVar5,"%s: %s",err,pcVar6);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return CONCAT44(tnum._4_4_,(uint)tnum);\n}\n\n" comment (function_definition "uintmax_t xnumtoumax(char *n_str,int base,uintmax_t min,uintmax_t max,char *suffixes,char *err,\n                    int err_exit)\n\n{\n  uint uVar1;\n  uint uVar2;\n  strtol_error sVar3;\n  int *piVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  uintmax_t tnum;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar3 = xstrtoumax(n_str,(char **)0x0,base,&tnum,suffixes);\n  uVar2 = tnum._4_4_;\n  uVar1 = (uint)tnum;\n  if (sVar3 == LONGINT_OK) {\n    if ((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))\n    goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar5 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar5 = 0x4b;\n    }\n    *piVar4 = iVar5;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (sVar3 == LONGINT_OVERFLOW) {\n      *piVar4 = 0x4b;\n    }\n    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }\n  }\n  pcVar6 = quote(n_str);\n  iVar5 = *piVar4;\n  if (iVar5 == 0x16) {\n    iVar5 = 0;\n  }\n  iVar7 = 1;\n  if (err_exit != 0) {\n    iVar7 = err_exit;\n  }\n  error(iVar7,iVar5,"%s: %s",err,pcVar6);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return CONCAT44(tnum._4_4_,(uint)tnum);\n}" type_identifier (function_declarator "xnumtoumax(char *n_str,int base,uintmax_t min,uintmax_t max,char *suffixes,char *err,\n                    int err_exit)" identifier (parameter_list "(char *n_str,int base,uintmax_t min,uintmax_t max,char *suffixes,char *err,\n                    int err_exit)" ( (parameter_declaration "char *n_str" primitive_type (pointer_declarator "*n_str" * identifier)) , (parameter_declaration "int base" primitive_type identifier) , (parameter_declaration "uintmax_t min" type_identifier identifier) , (parameter_declaration "uintmax_t max" type_identifier identifier) , (parameter_declaration "char *suffixes" primitive_type (pointer_declarator "*suffixes" * identifier)) , (parameter_declaration "char *err" primitive_type (pointer_declarator "*err" * identifier)) , (parameter_declaration "int err_exit" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  strtol_error sVar3;\n  int *piVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  uintmax_t tnum;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar3 = xstrtoumax(n_str,(char **)0x0,base,&tnum,suffixes);\n  uVar2 = tnum._4_4_;\n  uVar1 = (uint)tnum;\n  if (sVar3 == LONGINT_OK) {\n    if ((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))\n    goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar5 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar5 = 0x4b;\n    }\n    *piVar4 = iVar5;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (sVar3 == LONGINT_OVERFLOW) {\n      *piVar4 = 0x4b;\n    }\n    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }\n  }\n  pcVar6 = quote(n_str);\n  iVar5 = *piVar4;\n  if (iVar5 == 0x16) {\n    iVar5 = 0;\n  }\n  iVar7 = 1;\n  if (err_exit != 0) {\n    iVar7 = err_exit;\n  }\n  error(iVar7,iVar5,"%s: %s",err,pcVar6);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return CONCAT44(tnum._4_4_,(uint)tnum);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "strtol_error sVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uintmax_t tnum;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x15959;" (assignment_expression "uStack_14 = 0x15959" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "sVar3 = xstrtoumax(n_str,(char **)0x0,base,&tnum,suffixes);" (assignment_expression "sVar3 = xstrtoumax(n_str,(char **)0x0,base,&tnum,suffixes)" identifier = (call_expression "xstrtoumax(n_str,(char **)0x0,base,&tnum,suffixes)" identifier (argument_list "(n_str,(char **)0x0,base,&tnum,suffixes)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , identifier , (pointer_expression "&tnum" & identifier) , identifier )))) ;) (expression_statement "uVar2 = tnum._4_4_;" (assignment_expression "uVar2 = tnum._4_4_" identifier = (field_expression "tnum._4_4_" identifier . field_identifier)) ;) (expression_statement "uVar1 = (uint)tnum;" (assignment_expression "uVar1 = (uint)tnum" identifier = (cast_expression "(uint)tnum" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (sVar3 == LONGINT_OK) {\n    if ((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))\n    goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar5 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar5 = 0x4b;\n    }\n    *piVar4 = iVar5;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (sVar3 == LONGINT_OVERFLOW) {\n      *piVar4 = 0x4b;\n    }\n    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }\n  }" if (parenthesized_expression "(sVar3 == LONGINT_OK)" ( (binary_expression "sVar3 == LONGINT_OK" identifier == identifier) )) (compound_statement "{\n    if ((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))\n    goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar5 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar5 = 0x4b;\n    }\n    *piVar4 = iVar5;\n  }" { (if_statement "if ((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))\n    goto LAB_00015a49;" if (parenthesized_expression "((min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_))" ( (binary_expression "(min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_) &&\n       (tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_)" (parenthesized_expression "(min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_)" ( (binary_expression "min._4_4_ <= tnum._4_4_ && (uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_" (binary_expression "min._4_4_ <= tnum._4_4_" (field_expression "min._4_4_" identifier . field_identifier) <= (field_expression "tnum._4_4_" identifier . field_identifier)) && (binary_expression "(uint)((uint)tnum < (uint)min) <= tnum._4_4_ - min._4_4_" (call_expression "(uint)((uint)tnum < (uint)min)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)tnum < (uint)min)" ( (binary_expression "(uint)tnum < (uint)min" (cast_expression "(uint)tnum" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)min" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) <= (binary_expression "tnum._4_4_ - min._4_4_" (field_expression "tnum._4_4_" identifier . field_identifier) - (field_expression "min._4_4_" identifier . field_identifier)))) )) && (parenthesized_expression "(tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_)" ( (binary_expression "tnum._4_4_ <= max._4_4_ && (uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_" (binary_expression "tnum._4_4_ <= max._4_4_" (field_expression "tnum._4_4_" identifier . field_identifier) <= (field_expression "max._4_4_" identifier . field_identifier)) && (binary_expression "(uint)((uint)max < (uint)tnum) <= max._4_4_ - tnum._4_4_" (call_expression "(uint)((uint)max < (uint)tnum)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)max < (uint)tnum)" ( (binary_expression "(uint)max < (uint)tnum" (cast_expression "(uint)max" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)tnum" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) <= (binary_expression "max._4_4_ - tnum._4_4_" (field_expression "max._4_4_" identifier . field_identifier) - (field_expression "tnum._4_4_" identifier . field_identifier)))) ))) )) (goto_statement "goto LAB_00015a49;" goto statement_identifier ;)) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = 0x22;" (assignment_expression "iVar5 = 0x22" identifier = number_literal) ;) (if_statement "if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar5 = 0x4b;\n    }" if (parenthesized_expression "(uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1))" ( (binary_expression "uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)" (binary_expression "uVar2 != 0" identifier != number_literal) || (binary_expression "-uVar2 < (uint)(0x3fffffff < uVar1)" (unary_expression "-uVar2" - identifier) < (call_expression "(uint)(0x3fffffff < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x3fffffff < uVar1)" ( (binary_expression "0x3fffffff < uVar1" number_literal < identifier) ))))) )) (compound_statement "{\n      iVar5 = 0x4b;\n    }" { (expression_statement "iVar5 = 0x4b;" (assignment_expression "iVar5 = 0x4b" identifier = number_literal) ;) })) (expression_statement "*piVar4 = iVar5;" (assignment_expression "*piVar4 = iVar5" (pointer_expression "*piVar4" * identifier) = identifier) ;) }) (else_clause "else {\n    piVar4 = __errno_location();\n    if (sVar3 == LONGINT_OVERFLOW) {\n      *piVar4 = 0x4b;\n    }\n    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }\n  }" else (compound_statement "{\n    piVar4 = __errno_location();\n    if (sVar3 == LONGINT_OVERFLOW) {\n      *piVar4 = 0x4b;\n    }\n    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (sVar3 == LONGINT_OVERFLOW) {\n      *piVar4 = 0x4b;\n    }\n    else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }" if (parenthesized_expression "(sVar3 == LONGINT_OVERFLOW)" ( (binary_expression "sVar3 == LONGINT_OVERFLOW" identifier == identifier) )) (compound_statement "{\n      *piVar4 = 0x4b;\n    }" { (expression_statement "*piVar4 = 0x4b;" (assignment_expression "*piVar4 = 0x4b" (pointer_expression "*piVar4" * identifier) = number_literal) ;) }) (else_clause "else if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }" else (if_statement "if (sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW) {\n      *piVar4 = 0;\n    }" if (parenthesized_expression "(sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW)" ( (binary_expression "sVar3 == LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW" identifier == identifier) )) (compound_statement "{\n      *piVar4 = 0;\n    }" { (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) })))) }))) (expression_statement "pcVar6 = quote(n_str);" (assignment_expression "pcVar6 = quote(n_str)" identifier = (call_expression "quote(n_str)" identifier (argument_list "(n_str)" ( identifier )))) ;) (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar5 == 0x16) {\n    iVar5 = 0;\n  }" if (parenthesized_expression "(iVar5 == 0x16)" ( (binary_expression "iVar5 == 0x16" identifier == number_literal) )) (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) (if_statement "if (err_exit != 0) {\n    iVar7 = err_exit;\n  }" if (parenthesized_expression "(err_exit != 0)" ( (binary_expression "err_exit != 0" identifier != number_literal) )) (compound_statement "{\n    iVar7 = err_exit;\n  }" { (expression_statement "iVar7 = err_exit;" (assignment_expression "iVar7 = err_exit" identifier = identifier) ;) })) (expression_statement "error(iVar7,iVar5,"%s: %s",err,pcVar6);" (call_expression "error(iVar7,iVar5,"%s: %s",err,pcVar6)" identifier (argument_list "(iVar7,iVar5,"%s: %s",err,pcVar6)" ( identifier , identifier , (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) (labeled_statement "LAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return CONCAT44(tnum._4_4_,(uint)tnum);" return (call_expression "CONCAT44(tnum._4_4_,(uint)tnum)" identifier (argument_list "(tnum._4_4_,(uint)tnum)" ( (field_expression "tnum._4_4_" identifier . field_identifier) , (cast_expression "(uint)tnum" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) })))
(translation_unit "undefined8\nFUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}\n\n" (function_definition "undefined8\nFUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}" type_identifier (function_declarator "FUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int param_9" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x15959;" (assignment_expression "uStack_14 = 0x15959" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);" (assignment_expression "iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7)" identifier = (call_expression "FUN_00015af0(param_1,0,param_2,&local_2c,param_7)" identifier (argument_list "(param_1,0,param_2,&local_2c,param_7)" ( identifier , number_literal , identifier , (pointer_expression "&local_2c" & identifier) , identifier )))) ;) (expression_statement "uVar2 = local_28;" (assignment_expression "uVar2 = local_28" identifier = identifier) ;) (expression_statement "uVar1 = local_2c;" (assignment_expression "uVar1 = local_2c" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }" { (if_statement "if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;" if (parenthesized_expression "((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28))" ( (binary_expression "(param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)" (parenthesized_expression "(param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4)" ( (binary_expression "param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4" (binary_expression "param_4 <= local_28" identifier <= identifier) && (binary_expression "(uint)(local_2c < param_3) <= local_28 - param_4" (call_expression "(uint)(local_2c < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_2c < param_3)" ( (binary_expression "local_2c < param_3" identifier < identifier) ))) <= (binary_expression "local_28 - param_4" identifier - identifier))) )) && (parenthesized_expression "(local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)" ( (binary_expression "local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28" (binary_expression "local_28 <= param_6" identifier <= identifier) && (binary_expression "(uint)(param_5 < local_2c) <= param_6 - local_28" (call_expression "(uint)(param_5 < local_2c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_5 < local_2c)" ( (binary_expression "param_5 < local_2c" identifier < identifier) ))) <= (binary_expression "param_6 - local_28" identifier - identifier))) ))) )) (goto_statement "goto LAB_00015a49;" goto statement_identifier ;)) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = 0x22;" (assignment_expression "iVar3 = 0x22" identifier = number_literal) ;) (if_statement "if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }" if (parenthesized_expression "(uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1))" ( (binary_expression "uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)" (binary_expression "uVar2 != 0" identifier != number_literal) || (binary_expression "-uVar2 < (uint)(0x3fffffff < uVar1)" (unary_expression "-uVar2" - identifier) < (call_expression "(uint)(0x3fffffff < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x3fffffff < uVar1)" ( (binary_expression "0x3fffffff < uVar1" number_literal < identifier) ))))) )) (compound_statement "{\n      iVar3 = 0x4b;\n    }" { (expression_statement "iVar3 = 0x4b;" (assignment_expression "iVar3 = 0x4b" identifier = number_literal) ;) })) (expression_statement "*piVar4 = iVar3;" (assignment_expression "*piVar4 = iVar3" (pointer_expression "*piVar4" * identifier) = identifier) ;) }) (else_clause "else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" else (compound_statement "{\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      *piVar4 = 0x4b;\n    }" { (expression_statement "*piVar4 = 0x4b;" (assignment_expression "*piVar4 = 0x4b" (pointer_expression "*piVar4" * identifier) = number_literal) ;) }) (else_clause "else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" else (if_statement "if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" if (parenthesized_expression "(iVar3 == 3)" ( (binary_expression "iVar3 == 3" identifier == number_literal) )) (compound_statement "{\n      *piVar4 = 0;\n    }" { (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) })))) }))) (expression_statement "uVar5 = FUN_00015070(param_1);" (assignment_expression "uVar5 = FUN_00015070(param_1)" identifier = (call_expression "FUN_00015070(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0x16)" ( (binary_expression "iVar3 == 0x16" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (if_statement "if (param_9 != 0) {\n    iVar6 = param_9;\n  }" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar6 = param_9;\n  }" { (expression_statement "iVar6 = param_9;" (assignment_expression "iVar6 = param_9" identifier = identifier) ;) })) (expression_statement "error(iVar6,iVar3,"%s: %s",param_8,uVar5);" (call_expression "error(iVar6,iVar3,"%s: %s",param_8,uVar5)" identifier (argument_list "(iVar6,iVar3,"%s: %s",param_8,uVar5)" ( identifier , identifier , (string_literal ""%s: %s"" " string_content ") , identifier , identifier ))) ;) (labeled_statement "LAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00017750();\n  }" { (expression_statement "FUN_00017750();" (call_expression "FUN_00017750()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return CONCAT44(local_28,local_2c);" return (call_expression "CONCAT44(local_28,local_2c)" identifier (argument_list "(local_28,local_2c)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) <= (binary_expression IDENT - IDENT))) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) <= (binary_expression IDENT - IDENT))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression (unary_expression - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })))) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_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 = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "undefined8\nFUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}" (type_identifier "undefined8") (function_declarator "FUN_00015950(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)" (identifier "FUN_00015950") (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,\n            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "int param_9" (primitive_type "int") (identifier "param_9")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  uint local_2c;\n  uint local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x15959;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);\n  uVar2 = local_28;\n  uVar1 = local_2c;\n  if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }\n  uVar5 = FUN_00015070(param_1);\n  iVar3 = *piVar4;\n  if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }\n  iVar6 = 1;\n  if (param_9 != 0) {\n    iVar6 = param_9;\n  }\n  error(iVar6,iVar3,"%s: %s",param_8,uVar5);\nLAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }\n  return CONCAT44(local_28,local_2c);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x15959;" (assignment_expression "uStack_14 = 0x15959" (identifier "uStack_14") (= "=") (number_literal "0x15959")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);" (assignment_expression "iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7)" (identifier "iVar3") (= "=") (call_expression "FUN_00015af0(param_1,0,param_2,&local_2c,param_7)" (identifier "FUN_00015af0") (argument_list "(param_1,0,param_2,&local_2c,param_7)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (identifier "param_7") () ")")))) (; ";")) (expression_statement "uVar2 = local_28;" (assignment_expression "uVar2 = local_28" (identifier "uVar2") (= "=") (identifier "local_28")) (; ";")) (expression_statement "uVar1 = local_2c;" (assignment_expression "uVar1 = local_2c" (identifier "uVar1") (= "=") (identifier "local_2c")) (; ";")) (if_statement "if (iVar3 == 0) {\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }\n  else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;\n    piVar4 = __errno_location();\n    iVar3 = 0x22;\n    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }\n    *piVar4 = iVar3;\n  }" ({ "{") (if_statement "if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;" (if "if") (parenthesized_expression "((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28))" (( "(") (binary_expression "(param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&\n       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)" (parenthesized_expression "(param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4)" (( "(") (binary_expression "param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4" (binary_expression "param_4 <= local_28" (identifier "param_4") (<= "<=") (identifier "local_28")) (&& "&&") (binary_expression "(uint)(local_2c < param_3) <= local_28 - param_4" (call_expression "(uint)(local_2c < param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_2c < param_3)" (( "(") (binary_expression "local_2c < param_3" (identifier "local_2c") (< "<") (identifier "param_3")) () ")"))) (<= "<=") (binary_expression "local_28 - param_4" (identifier "local_28") (- "-") (identifier "param_4")))) () ")")) (&& "&&") (parenthesized_expression "(local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)" (( "(") (binary_expression "local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28" (binary_expression "local_28 <= param_6" (identifier "local_28") (<= "<=") (identifier "param_6")) (&& "&&") (binary_expression "(uint)(param_5 < local_2c) <= param_6 - local_28" (call_expression "(uint)(param_5 < local_2c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_5 < local_2c)" (( "(") (binary_expression "param_5 < local_2c" (identifier "param_5") (< "<") (identifier "local_2c")) () ")"))) (<= "<=") (binary_expression "param_6 - local_28" (identifier "param_6") (- "-") (identifier "local_28")))) () ")"))) () ")")) (goto_statement "goto LAB_00015a49;" (goto "goto") (statement_identifier "LAB_00015a49") (; ";"))) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = 0x22;" (assignment_expression "iVar3 = 0x22" (identifier "iVar3") (= "=") (number_literal "0x22")) (; ";")) (if_statement "if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {\n      iVar3 = 0x4b;\n    }" (if "if") (parenthesized_expression "(uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1))" (( "(") (binary_expression "uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)" (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "-uVar2 < (uint)(0x3fffffff < uVar1)" (unary_expression "-uVar2" (- "-") (identifier "uVar2")) (< "<") (call_expression "(uint)(0x3fffffff < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x3fffffff < uVar1)" (( "(") (binary_expression "0x3fffffff < uVar1" (number_literal "0x3fffffff") (< "<") (identifier "uVar1")) () ")"))))) () ")")) (compound_statement "{\n      iVar3 = 0x4b;\n    }" ({ "{") (expression_statement "iVar3 = 0x4b;" (assignment_expression "iVar3 = 0x4b" (identifier "iVar3") (= "=") (number_literal "0x4b")) (; ";")) (} "}"))) (expression_statement "*piVar4 = iVar3;" (assignment_expression "*piVar4 = iVar3" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "iVar3")) (; ";")) (} "}")) (else_clause "else {\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    piVar4 = __errno_location();\n    if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }\n  }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 1) {\n      *piVar4 = 0x4b;\n    }\n    else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *piVar4 = 0x4b;\n    }" ({ "{") (expression_statement "*piVar4 = 0x4b;" (assignment_expression "*piVar4 = 0x4b" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0x4b")) (; ";")) (} "}")) (else_clause "else if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" (else "else") (if_statement "if (iVar3 == 3) {\n      *piVar4 = 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 3)" (( "(") (binary_expression "iVar3 == 3" (identifier "iVar3") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n      *piVar4 = 0;\n    }" ({ "{") (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0")) (; ";")) (} "}"))))) (} "}")))) (expression_statement "uVar5 = FUN_00015070(param_1);" (assignment_expression "uVar5 = FUN_00015070(param_1)" (identifier "uVar5") (= "=") (call_expression "FUN_00015070(param_1)" (identifier "FUN_00015070") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" (identifier "iVar3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (if_statement "if (iVar3 == 0x16) {\n    iVar3 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0x16)" (( "(") (binary_expression "iVar3 == 0x16" (identifier "iVar3") (== "==") (number_literal "0x16")) () ")")) (compound_statement "{\n    iVar3 = 0;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_9 != 0) {\n    iVar6 = param_9;\n  }" (if "if") (parenthesized_expression "(param_9 != 0)" (( "(") (binary_expression "param_9 != 0" (identifier "param_9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = param_9;\n  }" ({ "{") (expression_statement "iVar6 = param_9;" (assignment_expression "iVar6 = param_9" (identifier "iVar6") (= "=") (identifier "param_9")) (; ";")) (} "}"))) (expression_statement "error(iVar6,iVar3,"%s: %s",param_8,uVar5);" (call_expression "error(iVar6,iVar3,"%s: %s",param_8,uVar5)" (identifier "error") (argument_list "(iVar6,iVar3,"%s: %s",param_8,uVar5)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar3") (, ",") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """)) (, ",") (identifier "param_8") (, ",") (identifier "uVar5") () ")"))) (; ";")) (labeled_statement "LAB_00015a49:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }" (statement_identifier "LAB_00015a49") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017750();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00017750();\n  }" ({ "{") (expression_statement "FUN_00017750();" (call_expression "FUN_00017750()" (identifier "FUN_00017750") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return CONCAT44(local_28,local_2c);" (return "return") (call_expression "CONCAT44(local_28,local_2c)" (identifier "CONCAT44") (argument_list "(local_28,local_2c)" (( "(") (identifier "local_28") (, ",") (identifier "local_2c") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(char *n_str,int base,type_1 min,type_1 max,char *suffixes,char *err,
                    int var_12)

{
  type_2 var_7;
  type_2 var_6;
  type_3 var_3;
  int *piVar4;
  int var_11;
  char *pcVar6;
  int iVar7;
  int var_1;
  type_1 tnum;
  int var_14;
  type_4 uStack_14;
  
  uStack_14 = 0x15959;
  var_14 = *(int *)(var_1 + 0x14);
  var_3 = var_2(n_str,(char **)0x0,base,&tnum,suffixes);
  var_6 = tnum._4_4_;
  var_7 = (type_2)tnum;
  if (var_3 == var_4) {
    if ((min._4_4_ <= tnum._4_4_ && (type_2)((type_2)tnum < (type_2)min) <= tnum._4_4_ - min._4_4_) &&
       (tnum._4_4_ <= max._4_4_ && (type_2)((type_2)max < (type_2)tnum) <= max._4_4_ - tnum._4_4_))
    goto LAB_00015a49;
    piVar4 = var_5();
    var_11 = 0x22;
    if (var_6 != 0 || -var_6 < (type_2)(0x3fffffff < var_7)) {
      var_11 = 0x4b;
    }
    *piVar4 = var_11;
  }
  else {
    piVar4 = var_5();
    if (var_3 == var_8) {
      *piVar4 = 0x4b;
    }
    else if (var_3 == var_9) {
      *piVar4 = 0;
    }
  }
  pcVar6 = var_10(n_str);
  var_11 = *piVar4;
  if (var_11 == 0x16) {
    var_11 = 0;
  }
  iVar7 = 1;
  if (var_12 != 0) {
    iVar7 = var_12;
  }
  var_13(iVar7,var_11,"%s: %s",err,pcVar6);
LAB_00015a49:
  if (var_14 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_15();
  }
  return var_16(tnum._4_4_,(type_2)tnum);
}


(translation_unit (function_definition type: (type_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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (binary_expression left: (identifier) right: (identifier))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (unary_expression argument: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (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))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (string_literal (string_content)) (identifier) (identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (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(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,uint param_5,
            uint param_6,undefined4 param_7,undefined4 param_8,int param_9)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  int *piVar4;
  undefined4 uVar5;
  int iVar6;
  int in_GS_OFFSET;
  uint local_2c;
  uint local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x15959;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = FUN_00015af0(param_1,0,param_2,&local_2c,param_7);
  uVar2 = local_28;
  uVar1 = local_2c;
  if (iVar3 == 0) {
    if ((param_4 <= local_28 && (uint)(local_2c < param_3) <= local_28 - param_4) &&
       (local_28 <= param_6 && (uint)(param_5 < local_2c) <= param_6 - local_28)) goto LAB_00015a49;
    piVar4 = __errno_location();
    iVar3 = 0x22;
    if (uVar2 != 0 || -uVar2 < (uint)(0x3fffffff < uVar1)) {
      iVar3 = 0x4b;
    }
    *piVar4 = iVar3;
  }
  else {
    piVar4 = __errno_location();
    if (iVar3 == 1) {
      *piVar4 = 0x4b;
    }
    else if (iVar3 == 3) {
      *piVar4 = 0;
    }
  }
  uVar5 = FUN_00015070(param_1);
  iVar3 = *piVar4;
  if (iVar3 == 0x16) {
    iVar3 = 0;
  }
  iVar6 = 1;
  if (param_9 != 0) {
    iVar6 = param_9;
  }
  error(iVar6,iVar3,"%s: %s",param_8,uVar5);
LAB_00015a49:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00017750();
  }
  return CONCAT44(local_28,local_2c);
}

