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

void xstrtol_fatal(strtol_error err,int opt_idx,char c,rpl_option *long_options,char *arg)

{
  char *pcVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  char *pcVar5;
  char option_buffer [2];
  
  iVar2 = exit_failure;
  if (err < LONGINT_INVALID) {
    if (err < LONGINT_INVALID_SUFFIX_CHAR) {
      if (err != LONGINT_OVERFLOW) goto LAB_00024496;
      pcVar1 = "%s%s argument \'%s\' too large";
    }
    else {
      pcVar1 = "invalid suffix in %s%s argument \'%s\'";
    }
  }
  else {
    if (err != LONGINT_INVALID) {
LAB_00024496:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    pcVar1 = "invalid %s%s argument \'%s\'";
  }
  if (opt_idx < 0) {
    option_buffer[0] = c;
    pcVar5 = option_buffer;
    puVar4 = &DAT_0002b27d + -opt_idx;
    option_buffer[1] = '\0';
  }
  else {
    pcVar5 = long_options[opt_idx].name;
    puVar4 = &DAT_0002b27d;
  }
  uVar3 = dcgettext(0,pcVar1,5);
                    /* WARNING: Subroutine does not return */
  error(iVar2,0,uVar3,puVar4,pcVar5,arg);
}



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

void FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)

{
  char *pcVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  int in_GS_OFFSET;
  undefined1 local_22;
  undefined1 local_21;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uVar2 = DAT_000332a8;
  uStack_14 = 0x24419;
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (param_1 < 4) {
    if (param_1 < 2) {
      if (param_1 != 1) goto LAB_00024496;
      pcVar1 = "%s%s argument \'%s\' too large";
    }
    else {
      pcVar1 = "invalid suffix in %s%s argument \'%s\'";
    }
  }
  else {
    if (param_1 != 4) {
LAB_00024496:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    pcVar1 = "invalid %s%s argument \'%s\'";
  }
  if (param_2 < 0) {
    local_22 = param_3;
    puVar5 = &local_22;
    puVar4 = &DAT_0002b27d + -param_2;
    local_21 = 0;
  }
  else {
    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);
    puVar4 = &DAT_0002b27d;
  }
  uVar3 = dcgettext(0,pcVar1,5);
                    /* WARNING: Subroutine does not return */
  error(uVar2,0,uVar3,puVar4,puVar5,param_5);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015920
ADD EBX,0xebe7
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x50]
MOV ECX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0xc],EDI
MOV ESI,dword ptr [ESP + 0x4c]
LEA EBP,[EBX + 0x2a8]
MOV EDI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],EDI
XOR EDI,EDI
MOV EBP,dword ptr [EBP]
CMP ECX,0x3
JA 0x000244a0
CMP ECX,0x2
JNC 0x000244c6
CMP ECX,0x1
JNZ 0x00024496
LEA ECX,[EBX + 0xffff8245]
TEST EAX,EAX
JS 0x000244af
SHL EAX,0x4
MOV EDI,dword ptr [ESI + EAX*0x1]
LEA ESI,[EBX + 0xffff827d]
SUB ESP,0x4
PUSH 0x5
PUSH ECX
PUSH 0x0
CALL 0x000121b0
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x14]
PUSH EDI
PUSH ESI
PUSH EAX
PUSH 0x0
PUSH EBP
CALL 0x00012360
CALL 0x000126f0
CMP ECX,0x4
JNZ 0x00024496
LEA ECX,[EBX + 0xffff8262]
TEST EAX,EAX
JNS 0x00024469
LEA ESI,[EBX + 0xffff827d]
MOV byte ptr [ESP + 0x1a],DL
LEA EDI,[ESP + 0x1a]
SUB ESI,EAX
MOV byte ptr [ESP + 0x1b],0x0
JMP 0x00024475
LEA ECX,[EBX + 0xffff8280]
JMP 0x00024465
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    /* WARNING: Subroutine does not return */\n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}\n\n" comment (function_definition "void FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    /* WARNING: Subroutine does not return */\n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}" primitive_type (function_declarator "FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)" identifier (parameter_list "(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    /* WARNING: Subroutine does not return */\n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_22;" type_identifier identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uVar2 = DAT_000332a8;" (assignment_expression "uVar2 = DAT_000332a8" identifier = identifier) ;) (expression_statement "uStack_14 = 0x24419;" (assignment_expression "uStack_14 = 0x24419" identifier = number_literal) ;) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" if (parenthesized_expression "(param_1 < 4)" ( (binary_expression "param_1 < 4" identifier < number_literal) )) (compound_statement "{\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }" { (if_statement "if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" if (parenthesized_expression "(param_1 < 2)" ( (binary_expression "param_1 < 2" identifier < number_literal) )) (compound_statement "{\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }" { (if_statement "if (param_1 != 1) goto LAB_00024496;" if (parenthesized_expression "(param_1 != 1)" ( (binary_expression "param_1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00024496;" goto statement_identifier ;)) (expression_statement "pcVar1 = "%s%s argument \'%s\' too large";" (assignment_expression "pcVar1 = "%s%s argument \'%s\' too large"" identifier = (string_literal ""%s%s argument \'%s\' too large"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" else (compound_statement "{\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" { (expression_statement "pcVar1 = "invalid suffix in %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid suffix in %s%s argument \'%s\'"" identifier = (string_literal ""invalid suffix in %s%s argument \'%s\'"" " string_content escape_sequence string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" else (compound_statement "{\n    if (param_1 != 4) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" { (if_statement "if (param_1 != 4) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(param_1 != 4)" ( (binary_expression "param_1 != 4" identifier != number_literal) )) (compound_statement "{\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { (labeled_statement "LAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "pcVar1 = "invalid %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid %s%s argument \'%s\'"" identifier = (string_literal ""invalid %s%s argument \'%s\'"" " string_content escape_sequence string_content escape_sequence ")) ;) }))) (if_statement "if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }" { (expression_statement "local_22 = param_3;" (assignment_expression "local_22 = param_3" identifier = identifier) ;) (expression_statement "puVar5 = &local_22;" (assignment_expression "puVar5 = &local_22" identifier = (pointer_expression "&local_22" & identifier)) ;) (expression_statement "puVar4 = &DAT_0002b27d + -param_2;" (assignment_expression "puVar4 = &DAT_0002b27d + -param_2" identifier = (binary_expression "&DAT_0002b27d + -param_2" (pointer_expression "&DAT_0002b27d" & identifier) + (unary_expression "-param_2" - identifier))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" else (compound_statement "{\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" { (expression_statement "puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);" (assignment_expression "puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10)" identifier = (pointer_expression "*(undefined1 **)(param_4 + param_2 * 0x10)" * (cast_expression "(undefined1 **)(param_4 + param_2 * 0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + param_2 * 0x10)" ( (binary_expression "param_4 + param_2 * 0x10" identifier + (binary_expression "param_2 * 0x10" identifier * number_literal)) ))))) ;) (expression_statement "puVar4 = &DAT_0002b27d;" (assignment_expression "puVar4 = &DAT_0002b27d" identifier = (pointer_expression "&DAT_0002b27d" & identifier)) ;) }))) (expression_statement "uVar3 = dcgettext(0,pcVar1,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar1,5)" identifier = (call_expression "dcgettext(0,pcVar1,5)" identifier (argument_list "(0,pcVar1,5)" ( number_literal , identifier , number_literal )))) ;) comment (expression_statement "error(uVar2,0,uVar3,puVar4,puVar5,param_5);" (call_expression "error(uVar2,0,uVar3,puVar4,puVar5,param_5)" identifier (argument_list "(uVar2,0,uVar3,puVar4,puVar5,param_5)" ( identifier , number_literal , identifier , identifier , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid xstrtol_fatal(strtol_error err,int opt_idx,char c,rpl_option *long_options,char *arg)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char option_buffer [2];\n  \n  iVar2 = exit_failure;\n  if (err < LONGINT_INVALID) {\n    if (err < LONGINT_INVALID_SUFFIX_CHAR) {\n      if (err != LONGINT_OVERFLOW) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (err != LONGINT_INVALID) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (opt_idx < 0) {\n    option_buffer[0] = c;\n    pcVar5 = option_buffer;\n    puVar4 = &DAT_0002b27d + -opt_idx;\n    option_buffer[1] = '\0';\n  }\n  else {\n    pcVar5 = long_options[opt_idx].name;\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    /* WARNING: Subroutine does not return */\n  error(iVar2,0,uVar3,puVar4,pcVar5,arg);\n}\n\n" comment comment (function_definition "void xstrtol_fatal(strtol_error err,int opt_idx,char c,rpl_option *long_options,char *arg)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char option_buffer [2];\n  \n  iVar2 = exit_failure;\n  if (err < LONGINT_INVALID) {\n    if (err < LONGINT_INVALID_SUFFIX_CHAR) {\n      if (err != LONGINT_OVERFLOW) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (err != LONGINT_INVALID) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (opt_idx < 0) {\n    option_buffer[0] = c;\n    pcVar5 = option_buffer;\n    puVar4 = &DAT_0002b27d + -opt_idx;\n    option_buffer[1] = '\0';\n  }\n  else {\n    pcVar5 = long_options[opt_idx].name;\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    /* WARNING: Subroutine does not return */\n  error(iVar2,0,uVar3,puVar4,pcVar5,arg);\n}" primitive_type (function_declarator "xstrtol_fatal(strtol_error err,int opt_idx,char c,rpl_option *long_options,char *arg)" identifier (parameter_list "(strtol_error err,int opt_idx,char c,rpl_option *long_options,char *arg)" ( (parameter_declaration "strtol_error err" type_identifier identifier) , (parameter_declaration "int opt_idx" primitive_type identifier) , (parameter_declaration "char c" primitive_type identifier) , (parameter_declaration "rpl_option *long_options" type_identifier (pointer_declarator "*long_options" * identifier)) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char option_buffer [2];\n  \n  iVar2 = exit_failure;\n  if (err < LONGINT_INVALID) {\n    if (err < LONGINT_INVALID_SUFFIX_CHAR) {\n      if (err != LONGINT_OVERFLOW) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (err != LONGINT_INVALID) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (opt_idx < 0) {\n    option_buffer[0] = c;\n    pcVar5 = option_buffer;\n    puVar4 = &DAT_0002b27d + -opt_idx;\n    option_buffer[1] = '\0';\n  }\n  else {\n    pcVar5 = long_options[opt_idx].name;\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    /* WARNING: Subroutine does not return */\n  error(iVar2,0,uVar3,puVar4,pcVar5,arg);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char option_buffer [2];" primitive_type (array_declarator "option_buffer [2]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = exit_failure;" (assignment_expression "iVar2 = exit_failure" identifier = identifier) ;) (if_statement "if (err < LONGINT_INVALID) {\n    if (err < LONGINT_INVALID_SUFFIX_CHAR) {\n      if (err != LONGINT_OVERFLOW) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (err != LONGINT_INVALID) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" if (parenthesized_expression "(err < LONGINT_INVALID)" ( (binary_expression "err < LONGINT_INVALID" identifier < identifier) )) (compound_statement "{\n    if (err < LONGINT_INVALID_SUFFIX_CHAR) {\n      if (err != LONGINT_OVERFLOW) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }" { (if_statement "if (err < LONGINT_INVALID_SUFFIX_CHAR) {\n      if (err != LONGINT_OVERFLOW) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" if (parenthesized_expression "(err < LONGINT_INVALID_SUFFIX_CHAR)" ( (binary_expression "err < LONGINT_INVALID_SUFFIX_CHAR" identifier < identifier) )) (compound_statement "{\n      if (err != LONGINT_OVERFLOW) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }" { (if_statement "if (err != LONGINT_OVERFLOW) goto LAB_00024496;" if (parenthesized_expression "(err != LONGINT_OVERFLOW)" ( (binary_expression "err != LONGINT_OVERFLOW" identifier != identifier) )) (goto_statement "goto LAB_00024496;" goto statement_identifier ;)) (expression_statement "pcVar1 = "%s%s argument \'%s\' too large";" (assignment_expression "pcVar1 = "%s%s argument \'%s\' too large"" identifier = (string_literal ""%s%s argument \'%s\' too large"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" else (compound_statement "{\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" { (expression_statement "pcVar1 = "invalid suffix in %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid suffix in %s%s argument \'%s\'"" identifier = (string_literal ""invalid suffix in %s%s argument \'%s\'"" " string_content escape_sequence string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    if (err != LONGINT_INVALID) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" else (compound_statement "{\n    if (err != LONGINT_INVALID) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" { (if_statement "if (err != LONGINT_INVALID) {\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(err != LONGINT_INVALID)" ( (binary_expression "err != LONGINT_INVALID" identifier != identifier) )) (compound_statement "{\nLAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { (labeled_statement "LAB_00024496:\n                    /* WARNING: Subroutine does not return */\n      abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "pcVar1 = "invalid %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid %s%s argument \'%s\'"" identifier = (string_literal ""invalid %s%s argument \'%s\'"" " string_content escape_sequence string_content escape_sequence ")) ;) }))) (if_statement "if (opt_idx < 0) {\n    option_buffer[0] = c;\n    pcVar5 = option_buffer;\n    puVar4 = &DAT_0002b27d + -opt_idx;\n    option_buffer[1] = '\0';\n  }\n  else {\n    pcVar5 = long_options[opt_idx].name;\n    puVar4 = &DAT_0002b27d;\n  }" if (parenthesized_expression "(opt_idx < 0)" ( (binary_expression "opt_idx < 0" identifier < number_literal) )) (compound_statement "{\n    option_buffer[0] = c;\n    pcVar5 = option_buffer;\n    puVar4 = &DAT_0002b27d + -opt_idx;\n    option_buffer[1] = '\0';\n  }" { (expression_statement "option_buffer[0] = c;" (assignment_expression "option_buffer[0] = c" (subscript_expression "option_buffer[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar5 = option_buffer;" (assignment_expression "pcVar5 = option_buffer" identifier = identifier) ;) (expression_statement "puVar4 = &DAT_0002b27d + -opt_idx;" (assignment_expression "puVar4 = &DAT_0002b27d + -opt_idx" identifier = (binary_expression "&DAT_0002b27d + -opt_idx" (pointer_expression "&DAT_0002b27d" & identifier) + (unary_expression "-opt_idx" - identifier))) ;) (expression_statement "option_buffer[1] = '\0';" (assignment_expression "option_buffer[1] = '\0'" (subscript_expression "option_buffer[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    pcVar5 = long_options[opt_idx].name;\n    puVar4 = &DAT_0002b27d;\n  }" else (compound_statement "{\n    pcVar5 = long_options[opt_idx].name;\n    puVar4 = &DAT_0002b27d;\n  }" { (expression_statement "pcVar5 = long_options[opt_idx].name;" (assignment_expression "pcVar5 = long_options[opt_idx].name" identifier = (field_expression "long_options[opt_idx].name" (subscript_expression "long_options[opt_idx]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "puVar4 = &DAT_0002b27d;" (assignment_expression "puVar4 = &DAT_0002b27d" identifier = (pointer_expression "&DAT_0002b27d" & identifier)) ;) }))) (expression_statement "uVar3 = dcgettext(0,pcVar1,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar1,5)" identifier = (call_expression "dcgettext(0,pcVar1,5)" identifier (argument_list "(0,pcVar1,5)" ( number_literal , identifier , number_literal )))) ;) comment (expression_statement "error(iVar2,0,uVar3,puVar4,pcVar5,arg);" (call_expression "error(iVar2,0,uVar3,puVar4,pcVar5,arg)" identifier (argument_list "(iVar2,0,uVar3,puVar4,pcVar5,arg)" ( identifier , number_literal , identifier , identifier , identifier , identifier ))) ;) })))
(translation_unit "void FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    \n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}\n\n" (function_definition "void FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    \n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}" primitive_type (function_declarator "FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)" identifier (parameter_list "(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    \n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_22;" type_identifier identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uVar2 = DAT_000332a8;" (assignment_expression "uVar2 = DAT_000332a8" identifier = identifier) ;) (expression_statement "uStack_14 = 0x24419;" (assignment_expression "uStack_14 = 0x24419" identifier = number_literal) ;) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" if (parenthesized_expression "(param_1 < 4)" ( (binary_expression "param_1 < 4" identifier < number_literal) )) (compound_statement "{\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }" { (if_statement "if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" if (parenthesized_expression "(param_1 < 2)" ( (binary_expression "param_1 < 2" identifier < number_literal) )) (compound_statement "{\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }" { (if_statement "if (param_1 != 1) goto LAB_00024496;" if (parenthesized_expression "(param_1 != 1)" ( (binary_expression "param_1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_00024496;" goto statement_identifier ;)) (expression_statement "pcVar1 = "%s%s argument \'%s\' too large";" (assignment_expression "pcVar1 = "%s%s argument \'%s\' too large"" identifier = (string_literal ""%s%s argument \'%s\' too large"" " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause "else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" else (compound_statement "{\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" { (expression_statement "pcVar1 = "invalid suffix in %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid suffix in %s%s argument \'%s\'"" identifier = (string_literal ""invalid suffix in %s%s argument \'%s\'"" " string_content escape_sequence string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" else (compound_statement "{\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" { (if_statement "if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }" if (parenthesized_expression "(param_1 != 4)" ( (binary_expression "param_1 != 4" identifier != number_literal) )) (compound_statement "{\nLAB_00024496:\n                    \n      abort();\n    }" { (labeled_statement "LAB_00024496:\n                    \n      abort();" statement_identifier : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "pcVar1 = "invalid %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid %s%s argument \'%s\'"" identifier = (string_literal ""invalid %s%s argument \'%s\'"" " string_content escape_sequence string_content escape_sequence ")) ;) }))) (if_statement "if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }" { (expression_statement "local_22 = param_3;" (assignment_expression "local_22 = param_3" identifier = identifier) ;) (expression_statement "puVar5 = &local_22;" (assignment_expression "puVar5 = &local_22" identifier = (pointer_expression "&local_22" & identifier)) ;) (expression_statement "puVar4 = &DAT_0002b27d + -param_2;" (assignment_expression "puVar4 = &DAT_0002b27d + -param_2" identifier = (binary_expression "&DAT_0002b27d + -param_2" (pointer_expression "&DAT_0002b27d" & identifier) + (unary_expression "-param_2" - identifier))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" else (compound_statement "{\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" { (expression_statement "puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);" (assignment_expression "puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10)" identifier = (pointer_expression "*(undefined1 **)(param_4 + param_2 * 0x10)" * (cast_expression "(undefined1 **)(param_4 + param_2 * 0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + param_2 * 0x10)" ( (binary_expression "param_4 + param_2 * 0x10" identifier + (binary_expression "param_2 * 0x10" identifier * number_literal)) ))))) ;) (expression_statement "puVar4 = &DAT_0002b27d;" (assignment_expression "puVar4 = &DAT_0002b27d" identifier = (pointer_expression "&DAT_0002b27d" & identifier)) ;) }))) (expression_statement "uVar3 = dcgettext(0,pcVar1,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar1,5)" identifier = (call_expression "dcgettext(0,pcVar1,5)" identifier (argument_list "(0,pcVar1,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "error(uVar2,0,uVar3,puVar4,puVar5,param_5);" (call_expression "error(uVar2,0,uVar3,puVar4,puVar5,param_5)" identifier (argument_list "(uVar2,0,uVar3,puVar4,puVar5,param_5)" ( identifier , number_literal , identifier , identifier , 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) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence ")) ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence ")) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression & IDENT) + (unary_expression - IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    \n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}" (primitive_type "void") (function_declarator "FUN_00024410(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)" (identifier "FUN_00024410") (parameter_list "(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 param_3" (type_identifier "undefined1") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 local_22;\n  undefined1 local_21;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uVar2 = DAT_000332a8;\n  uStack_14 = 0x24419;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }\n  if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }\n  uVar3 = dcgettext(0,pcVar1,5);\n                    \n  error(uVar2,0,uVar3,puVar4,puVar5,param_5);\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_22;" (type_identifier "undefined1") (identifier "local_22") (; ";")) (declaration "undefined1 local_21;" (type_identifier "undefined1") (identifier "local_21") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uVar2 = DAT_000332a8;" (assignment_expression "uVar2 = DAT_000332a8" (identifier "uVar2") (= "=") (identifier "DAT_000332a8")) (; ";")) (expression_statement "uStack_14 = 0x24419;" (assignment_expression "uStack_14 = 0x24419" (identifier "uStack_14") (= "=") (number_literal "0x24419")) (; ";")) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 < 4) {\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }\n  else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" (if "if") (parenthesized_expression "(param_1 < 4)" (( "(") (binary_expression "param_1 < 4" (identifier "param_1") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }\n  }" ({ "{") (if_statement "if (param_1 < 2) {\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }\n    else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" (if "if") (parenthesized_expression "(param_1 < 2)" (( "(") (binary_expression "param_1 < 2" (identifier "param_1") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      if (param_1 != 1) goto LAB_00024496;\n      pcVar1 = "%s%s argument \'%s\' too large";\n    }" ({ "{") (if_statement "if (param_1 != 1) goto LAB_00024496;" (if "if") (parenthesized_expression "(param_1 != 1)" (( "(") (binary_expression "param_1 != 1" (identifier "param_1") (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_00024496;" (goto "goto") (statement_identifier "LAB_00024496") (; ";"))) (expression_statement "pcVar1 = "%s%s argument \'%s\' too large";" (assignment_expression "pcVar1 = "%s%s argument \'%s\' too large"" (identifier "pcVar1") (= "=") (string_literal ""%s%s argument \'%s\' too large"" (" """) (string_content "%s%s argument ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " too large") (" """))) (; ";")) (} "}")) (else_clause "else {\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" (else "else") (compound_statement "{\n      pcVar1 = "invalid suffix in %s%s argument \'%s\'";\n    }" ({ "{") (expression_statement "pcVar1 = "invalid suffix in %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid suffix in %s%s argument \'%s\'"" (identifier "pcVar1") (= "=") (string_literal ""invalid suffix in %s%s argument \'%s\'"" (" """) (string_content "invalid suffix in %s%s argument ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" (else "else") (compound_statement "{\n    if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }\n    pcVar1 = "invalid %s%s argument \'%s\'";\n  }" ({ "{") (if_statement "if (param_1 != 4) {\nLAB_00024496:\n                    \n      abort();\n    }" (if "if") (parenthesized_expression "(param_1 != 4)" (( "(") (binary_expression "param_1 != 4" (identifier "param_1") (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\nLAB_00024496:\n                    \n      abort();\n    }" ({ "{") (labeled_statement "LAB_00024496:\n                    \n      abort();" (statement_identifier "LAB_00024496") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "pcVar1 = "invalid %s%s argument \'%s\'";" (assignment_expression "pcVar1 = "invalid %s%s argument \'%s\'"" (identifier "pcVar1") (= "=") (string_literal ""invalid %s%s argument \'%s\'"" (" """) (string_content "invalid %s%s argument ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """))) (; ";")) (} "}")))) (if_statement "if (param_2 < 0) {\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }\n  else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    local_22 = param_3;\n    puVar5 = &local_22;\n    puVar4 = &DAT_0002b27d + -param_2;\n    local_21 = 0;\n  }" ({ "{") (expression_statement "local_22 = param_3;" (assignment_expression "local_22 = param_3" (identifier "local_22") (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar5 = &local_22;" (assignment_expression "puVar5 = &local_22" (identifier "puVar5") (= "=") (pointer_expression "&local_22" (& "&") (identifier "local_22"))) (; ";")) (expression_statement "puVar4 = &DAT_0002b27d + -param_2;" (assignment_expression "puVar4 = &DAT_0002b27d + -param_2" (identifier "puVar4") (= "=") (binary_expression "&DAT_0002b27d + -param_2" (pointer_expression "&DAT_0002b27d" (& "&") (identifier "DAT_0002b27d")) (+ "+") (unary_expression "-param_2" (- "-") (identifier "param_2")))) (; ";")) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" (identifier "local_21") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" (else "else") (compound_statement "{\n    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);\n    puVar4 = &DAT_0002b27d;\n  }" ({ "{") (expression_statement "puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);" (assignment_expression "puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined1 **)(param_4 + param_2 * 0x10)" (* "*") (cast_expression "(undefined1 **)(param_4 + param_2 * 0x10)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_4 + param_2 * 0x10)" (( "(") (binary_expression "param_4 + param_2 * 0x10" (identifier "param_4") (+ "+") (binary_expression "param_2 * 0x10" (identifier "param_2") (* "*") (number_literal "0x10"))) () ")"))))) (; ";")) (expression_statement "puVar4 = &DAT_0002b27d;" (assignment_expression "puVar4 = &DAT_0002b27d" (identifier "puVar4") (= "=") (pointer_expression "&DAT_0002b27d" (& "&") (identifier "DAT_0002b27d"))) (; ";")) (} "}")))) (expression_statement "uVar3 = dcgettext(0,pcVar1,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar1,5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,pcVar1,5)" (identifier "dcgettext") (argument_list "(0,pcVar1,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar1") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar2,0,uVar3,puVar4,puVar5,param_5);" (call_expression "error(uVar2,0,uVar3,puVar4,puVar5,param_5)" (identifier "error") (argument_list "(uVar2,0,uVar3,puVar4,puVar5,param_5)" (( "(") (identifier "uVar2") (, ",") (number_literal "0") (, ",") (identifier "uVar3") (, ",") (identifier "puVar4") (, ",") (identifier "puVar5") (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 var_1,int var_6,char c,type_2 *long_options,char *arg)

{
  char *pcVar1;
  int iVar2;
  type_3 uVar3;
  type_4 *puVar4;
  char *pcVar5;
  char option_buffer [2];
  
  iVar2 = exit_failure;
  if (var_1 < var_2) {
    if (var_1 < var_3) {
      if (var_1 != var_4) goto LAB_00024496;
      pcVar1 = "%s%s argument \'%s\' too large";
    }
    else {
      pcVar1 = "invalid suffix in %s%s argument \'%s\'";
    }
  }
  else {
    if (var_1 != var_2) {
LAB_00024496:
                    /* WARNING: Subroutine does not return */
      var_5();
    }
    pcVar1 = "invalid %s%s argument \'%s\'";
  }
  if (var_6 < 0) {
    option_buffer[0] = c;
    pcVar5 = option_buffer;
    puVar4 = &DAT_0002b27d + -var_6;
    option_buffer[1] = '\0';
  }
  else {
    pcVar5 = long_options[var_6].name;
    puVar4 = &DAT_0002b27d;
  }
  uVar3 = var_7(0,pcVar1,5);
                    /* WARNING: Subroutine does not return */
  var_8(iVar2,0,uVar3,puVar4,pcVar5,arg);
}


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

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

void MASKED(uint param_1,int param_2,undefined1 param_3,int param_4,undefined4 param_5)

{
  char *pcVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  int in_GS_OFFSET;
  undefined1 local_22;
  undefined1 local_21;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uVar2 = DAT_000332a8;
  uStack_14 = 0x24419;
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (param_1 < 4) {
    if (param_1 < 2) {
      if (param_1 != 1) goto LAB_00024496;
      pcVar1 = "%s%s argument \'%s\' too large";
    }
    else {
      pcVar1 = "invalid suffix in %s%s argument \'%s\'";
    }
  }
  else {
    if (param_1 != 4) {
LAB_00024496:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    pcVar1 = "invalid %s%s argument \'%s\'";
  }
  if (param_2 < 0) {
    local_22 = param_3;
    puVar5 = &local_22;
    puVar4 = &DAT_0002b27d + -param_2;
    local_21 = 0;
  }
  else {
    puVar5 = *(undefined1 **)(param_4 + param_2 * 0x10);
    puVar4 = &DAT_0002b27d;
  }
  uVar3 = dcgettext(0,pcVar1,5);
                    /* WARNING: Subroutine does not return */
  error(uVar2,0,uVar3,puVar4,puVar5,param_5);
}

