
int nextopt(char *optstring)

{
  char **ppcVar1;
  byte bVar2;
  char *pcVar3;
  byte *pbVar4;
  byte *pbVar5;
  byte *pbVar6;
  
  if ((optptr == (char *)0x0) || (pbVar6 = (byte *)optptr, *optptr == '\0')) {
    pcVar3 = *argptr;
    if (pcVar3 == (char *)0x0) {
      return 0;
    }
    if (*pcVar3 != '-') {
      return 0;
    }
    pbVar6 = (byte *)(pcVar3 + 1);
    if (pcVar3[1] == '\0') {
      return 0;
    }
    argptr = argptr + 1;
    if ((pcVar3[1] == '-') && (pcVar3[2] == '\0')) {
      return 0;
    }
  }
  bVar2 = *pbVar6;
  while( true ) {
    pbVar4 = (byte *)optstring;
    if (*pbVar4 == bVar2) {
      pbVar5 = pbVar6 + 1;
      if (pbVar4[1] == 0x3a) {
        pbVar4 = pbVar5;
        if (pbVar6[1] == 0) {
          ppcVar1 = argptr + 1;
          pbVar4 = (byte *)*argptr;
          argptr = ppcVar1;
          if (pbVar4 == (byte *)0x0) {
                    /* WARNING: Subroutine does not return */
            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);
          }
        }
        pbVar5 = (byte *)0x0;
        optionarg = (char *)pbVar4;
      }
      optptr = (char *)pbVar5;
      return (int)bVar2;
    }
    if (*pbVar4 == 0) break;
    optstring = (char *)(pbVar4 + 1);
    if (pbVar4[1] == 0x3a) {
      optstring = (char *)(pbVar4 + 2);
    }
  }
                    /* WARNING: Subroutine does not return */
  ash_msg_and_raise_error("illegal option -%c",(ulong)bVar2);
}



ulong FUN_001487ce(char *param_1)

{
  long *plVar1;
  char cVar2;
  long lVar4;
  byte *pbVar5;
  char *pcVar6;
  undefined1 auVar7 [16];
  long lVar3;
  
  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {
    pcVar6 = (char *)*DAT_001c6530;
    if (pcVar6 == (char *)0x0) {
      return 0;
    }
    if (*pcVar6 != '-') {
      return 0;
    }
    pbVar5 = (byte *)(pcVar6 + 1);
    if (pcVar6[1] == '\0') {
      return 0;
    }
    DAT_001c6530 = DAT_001c6530 + 1;
    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {
      return 0;
    }
  }
  auVar7._1_7_ = 0;
  auVar7[0] = *pbVar5;
  auVar7._8_8_ = pbVar5;
  do {
    cVar2 = *param_1;
    if (cVar2 == auVar7[0]) {
      lVar4 = auVar7._8_8_ + 1;
      if (param_1[1] != ':') goto LAB_001488ac;
      lVar3 = lVar4;
      if (*(char *)(auVar7._8_8_ + 1) != '\0') {
LAB_001488a0:
        lVar4 = 0;
        DAT_001c6528 = lVar3;
LAB_001488ac:
        DAT_001c6520 = (byte *)lVar4;
        return auVar7._0_8_ & 0xff;
      }
      plVar1 = DAT_001c6530 + 1;
      lVar3 = *DAT_001c6530;
      DAT_001c6530 = plVar1;
      if (lVar3 != 0) goto LAB_001488a0;
      param_1 = "no arg for -%c option";
      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);
      cVar2 = (char)lVar3;
    }
    pcVar6 = param_1;
    if (cVar2 == '\0') {
      pcVar6 = "illegal option -%c";
      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);
    }
    param_1 = pcVar6 + 1;
    if (pcVar6[1] == ':') {
      param_1 = pcVar6 + 2;
    }
  } while( true );
}


MOV RDX,qword ptr [0x001c6520]
TEST RDX,RDX
JZ 0x001487df
CMP byte ptr [RDX],0x0
JNZ 0x00148827
MOV RCX,qword ptr [0x001c6530]
MOV RAX,qword ptr [RCX]
TEST RAX,RAX
JZ 0x001488bb
CMP byte ptr [RAX],0x2d
JNZ 0x001488c1
LEA RDX,[RAX + 0x1]
MOVZX ESI,byte ptr [RAX + 0x1]
TEST SIL,SIL
JZ 0x001488c7
ADD RCX,0x8
MOV qword ptr [0x001c6530],RCX
CMP SIL,0x2d
JNZ 0x00148827
CMP byte ptr [RAX + 0x2],0x0
JZ 0x001488cd
SUB RSP,0x8
MOVZX EAX,byte ptr [RDX]
MOVZX ECX,byte ptr [RDI]
CMP CL,AL
JNZ 0x00148873
LEA RCX,[RDX + 0x1]
CMP byte ptr [RDI + 0x1],0x3a
JNZ 0x001488ac
CMP byte ptr [RDX + 0x1],0x0
JNZ 0x001488a0
MOV RDX,qword ptr [0x001c6530]
LEA RCX,[RDX + 0x8]
MOV qword ptr [0x001c6530],RCX
MOV RCX,qword ptr [RDX]
TEST RCX,RCX
JNZ 0x001488a0
MOVZX ESI,AL
LEA RDI,[0x1bbe78]
MOV EAX,0x0
CALL 0x001484c3
TEST CL,CL
JNZ 0x0014888b
MOVZX ESI,AL
LEA RDI,[0x1bbe65]
MOV EAX,0x0
CALL 0x001484c3
LEA RCX,[RDI + 0x1]
CMP byte ptr [RDI + 0x1],0x3a
JNZ 0x0014889b
ADD RDI,0x2
JMP 0x0014882e
MOV RDI,RCX
JMP 0x0014882e
MOV qword ptr [0x001c6528],RCX
MOV ECX,0x0
MOV qword ptr [0x001c6520],RCX
MOVZX EAX,AL
ADD RSP,0x8
RET
MOV EAX,0x0
RET
MOV EAX,0x0
RET
MOV EAX,0x0
RET
MOV EAX,0x0
RET
(translation_unit "ulong FUN_001487ce(char *param_1)\n\n{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}\n\n" (function_definition "ulong FUN_001487ce(char *param_1)\n\n{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_001487ce(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 auVar7 [16];" type_identifier (array_declarator "auVar7 [16]" identifier [ number_literal ]) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0))" ( (binary_expression "(DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)" (parenthesized_expression "(DAT_001c6520 == (byte *)0x0)" ( (binary_expression "DAT_001c6520 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)" ( (comma_expression "pbVar5 = DAT_001c6520, *DAT_001c6520 == 0" (assignment_expression "pbVar5 = DAT_001c6520" identifier = identifier) , (binary_expression "*DAT_001c6520 == 0" (pointer_expression "*DAT_001c6520" * identifier) == number_literal)) ))) )) (compound_statement "{\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }" { (expression_statement "pcVar6 = (char *)*DAT_001c6530;" (assignment_expression "pcVar6 = (char *)*DAT_001c6530" identifier = (cast_expression "(char *)*DAT_001c6530" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_001c6530" * identifier))) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*pcVar6 != '-') {\n      return 0;\n    }" if (parenthesized_expression "(*pcVar6 != '-')" ( (binary_expression "*pcVar6 != '-'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'-'" ' character ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)(pcVar6 + 1);" (assignment_expression "pbVar5 = (byte *)(pcVar6 + 1)" identifier = (cast_expression "(byte *)(pcVar6 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) )))) ;) (if_statement "if (pcVar6[1] == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(pcVar6[1] == '\0')" ( (binary_expression "pcVar6[1] == '\0'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_001c6530 = DAT_001c6530 + 1;" (assignment_expression "DAT_001c6530 = DAT_001c6530 + 1" identifier = (binary_expression "DAT_001c6530 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }" if (parenthesized_expression "((pcVar6[1] == '-') && (pcVar6[2] == '\0'))" ( (binary_expression "(pcVar6[1] == '-') && (pcVar6[2] == '\0')" (parenthesized_expression "(pcVar6[1] == '-')" ( (binary_expression "pcVar6[1] == '-'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(pcVar6[2] == '\0')" ( (binary_expression "pcVar6[2] == '\0'" (subscript_expression "pcVar6[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "auVar7._1_7_ = 0;" (assignment_expression "auVar7._1_7_ = 0" (field_expression "auVar7._1_7_" identifier . field_identifier) = number_literal) ;) (expression_statement "auVar7[0] = *pbVar5;" (assignment_expression "auVar7[0] = *pbVar5" (subscript_expression "auVar7[0]" identifier [ number_literal ]) = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "auVar7._8_8_ = pbVar5;" (assignment_expression "auVar7._8_8_ = pbVar5" (field_expression "auVar7._8_8_" identifier . field_identifier) = identifier) ;) (do_statement "do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );" do (compound_statement "{\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  }" { (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }" if (parenthesized_expression "(cVar2 == auVar7[0])" ( (binary_expression "cVar2 == auVar7[0]" identifier == (subscript_expression "auVar7[0]" identifier [ number_literal ])) )) (compound_statement "{\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }" { (expression_statement "lVar4 = auVar7._8_8_ + 1;" (assignment_expression "lVar4 = auVar7._8_8_ + 1" identifier = (binary_expression "auVar7._8_8_ + 1" (field_expression "auVar7._8_8_" identifier . field_identifier) + number_literal)) ;) (if_statement "if (param_1[1] != ':') goto LAB_001488ac;" if (parenthesized_expression "(param_1[1] != ':')" ( (binary_expression "param_1[1] != ':'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "':'" ' character ')) )) (goto_statement "goto LAB_001488ac;" goto statement_identifier ;)) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" identifier = identifier) ;) (if_statement "if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }" if (parenthesized_expression "(*(char *)(auVar7._8_8_ + 1) != '\0')" ( (binary_expression "*(char *)(auVar7._8_8_ + 1) != '\0'" (pointer_expression "*(char *)(auVar7._8_8_ + 1)" * (cast_expression "(char *)(auVar7._8_8_ + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(auVar7._8_8_ + 1)" ( (binary_expression "auVar7._8_8_ + 1" (field_expression "auVar7._8_8_" identifier . field_identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }" { (labeled_statement "LAB_001488a0:\n        lVar4 = 0;" statement_identifier : (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;)) (expression_statement "DAT_001c6528 = lVar3;" (assignment_expression "DAT_001c6528 = lVar3" identifier = identifier) ;) (labeled_statement "LAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;" statement_identifier : (expression_statement "DAT_001c6520 = (byte *)lVar4;" (assignment_expression "DAT_001c6520 = (byte *)lVar4" identifier = (cast_expression "(byte *)lVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (return_statement "return auVar7._0_8_ & 0xff;" return (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" identifier . field_identifier) & number_literal) ;) })) (expression_statement "plVar1 = DAT_001c6530 + 1;" (assignment_expression "plVar1 = DAT_001c6530 + 1" identifier = (binary_expression "DAT_001c6530 + 1" identifier + number_literal)) ;) (expression_statement "lVar3 = *DAT_001c6530;" (assignment_expression "lVar3 = *DAT_001c6530" identifier = (pointer_expression "*DAT_001c6530" * identifier)) ;) (expression_statement "DAT_001c6530 = plVar1;" (assignment_expression "DAT_001c6530 = plVar1" identifier = identifier) ;) (if_statement "if (lVar3 != 0) goto LAB_001488a0;" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001488a0;" goto statement_identifier ;)) (expression_statement "param_1 = "no arg for -%c option";" (assignment_expression "param_1 = "no arg for -%c option"" identifier = (string_literal ""no arg for -%c option"" " string_content ")) ;) (expression_statement "auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);" (assignment_expression "auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff)" identifier = (call_expression "FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff)" identifier (argument_list "("no arg for -%c option",auVar7._0_8_ & 0xff)" ( (string_literal ""no arg for -%c option"" " string_content ") , (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" identifier . field_identifier) & number_literal) )))) ;) (expression_statement "cVar2 = (char)lVar3;" (assignment_expression "cVar2 = (char)lVar3" identifier = (cast_expression "(char)lVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) })) (expression_statement "pcVar6 = param_1;" (assignment_expression "pcVar6 = param_1" identifier = identifier) ;) (if_statement "if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }" { (expression_statement "pcVar6 = "illegal option -%c";" (assignment_expression "pcVar6 = "illegal option -%c"" identifier = (string_literal ""illegal option -%c"" " string_content ")) ;) (expression_statement "auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);" (assignment_expression "auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff)" identifier = (call_expression "FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff)" identifier (argument_list "("illegal option -%c",auVar7._0_8_ & 0xff)" ( (string_literal ""illegal option -%c"" " string_content ") , (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" identifier . field_identifier) & number_literal) )))) ;) })) (expression_statement "param_1 = pcVar6 + 1;" (assignment_expression "param_1 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }" if (parenthesized_expression "(pcVar6[1] == ':')" ( (binary_expression "pcVar6[1] == ':'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "':'" ' character ')) )) (compound_statement "{\n      param_1 = pcVar6 + 2;\n    }" { (expression_statement "param_1 = pcVar6 + 2;" (assignment_expression "param_1 = pcVar6 + 2" identifier = (binary_expression "pcVar6 + 2" identifier + number_literal)) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int nextopt(char *optstring)\n\n{\n  char **ppcVar1;\n  byte bVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  \n  if ((optptr == (char *)0x0) || (pbVar6 = (byte *)optptr, *optptr == '\0')) {\n    pcVar3 = *argptr;\n    if (pcVar3 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar3 != '-') {\n      return 0;\n    }\n    pbVar6 = (byte *)(pcVar3 + 1);\n    if (pcVar3[1] == '\0') {\n      return 0;\n    }\n    argptr = argptr + 1;\n    if ((pcVar3[1] == '-') && (pcVar3[2] == '\0')) {\n      return 0;\n    }\n  }\n  bVar2 = *pbVar6;\n  while( true ) {\n    pbVar4 = (byte *)optstring;\n    if (*pbVar4 == bVar2) {\n      pbVar5 = pbVar6 + 1;\n      if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }\n      optptr = (char *)pbVar5;\n      return (int)bVar2;\n    }\n    if (*pbVar4 == 0) break;\n    optstring = (char *)(pbVar4 + 1);\n    if (pbVar4[1] == 0x3a) {\n      optstring = (char *)(pbVar4 + 2);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  ash_msg_and_raise_error("illegal option -%c",(ulong)bVar2);\n}\n\n" (function_definition "int nextopt(char *optstring)\n\n{\n  char **ppcVar1;\n  byte bVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  \n  if ((optptr == (char *)0x0) || (pbVar6 = (byte *)optptr, *optptr == '\0')) {\n    pcVar3 = *argptr;\n    if (pcVar3 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar3 != '-') {\n      return 0;\n    }\n    pbVar6 = (byte *)(pcVar3 + 1);\n    if (pcVar3[1] == '\0') {\n      return 0;\n    }\n    argptr = argptr + 1;\n    if ((pcVar3[1] == '-') && (pcVar3[2] == '\0')) {\n      return 0;\n    }\n  }\n  bVar2 = *pbVar6;\n  while( true ) {\n    pbVar4 = (byte *)optstring;\n    if (*pbVar4 == bVar2) {\n      pbVar5 = pbVar6 + 1;\n      if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }\n      optptr = (char *)pbVar5;\n      return (int)bVar2;\n    }\n    if (*pbVar4 == 0) break;\n    optstring = (char *)(pbVar4 + 1);\n    if (pbVar4[1] == 0x3a) {\n      optstring = (char *)(pbVar4 + 2);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  ash_msg_and_raise_error("illegal option -%c",(ulong)bVar2);\n}" primitive_type (function_declarator "nextopt(char *optstring)" identifier (parameter_list "(char *optstring)" ( (parameter_declaration "char *optstring" primitive_type (pointer_declarator "*optstring" * identifier)) ))) (compound_statement "{\n  char **ppcVar1;\n  byte bVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  \n  if ((optptr == (char *)0x0) || (pbVar6 = (byte *)optptr, *optptr == '\0')) {\n    pcVar3 = *argptr;\n    if (pcVar3 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar3 != '-') {\n      return 0;\n    }\n    pbVar6 = (byte *)(pcVar3 + 1);\n    if (pcVar3[1] == '\0') {\n      return 0;\n    }\n    argptr = argptr + 1;\n    if ((pcVar3[1] == '-') && (pcVar3[2] == '\0')) {\n      return 0;\n    }\n  }\n  bVar2 = *pbVar6;\n  while( true ) {\n    pbVar4 = (byte *)optstring;\n    if (*pbVar4 == bVar2) {\n      pbVar5 = pbVar6 + 1;\n      if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }\n      optptr = (char *)pbVar5;\n      return (int)bVar2;\n    }\n    if (*pbVar4 == 0) break;\n    optstring = (char *)(pbVar4 + 1);\n    if (pbVar4[1] == 0x3a) {\n      optstring = (char *)(pbVar4 + 2);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  ash_msg_and_raise_error("illegal option -%c",(ulong)bVar2);\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (if_statement "if ((optptr == (char *)0x0) || (pbVar6 = (byte *)optptr, *optptr == '\0')) {\n    pcVar3 = *argptr;\n    if (pcVar3 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar3 != '-') {\n      return 0;\n    }\n    pbVar6 = (byte *)(pcVar3 + 1);\n    if (pcVar3[1] == '\0') {\n      return 0;\n    }\n    argptr = argptr + 1;\n    if ((pcVar3[1] == '-') && (pcVar3[2] == '\0')) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((optptr == (char *)0x0) || (pbVar6 = (byte *)optptr, *optptr == '\0'))" ( (binary_expression "(optptr == (char *)0x0) || (pbVar6 = (byte *)optptr, *optptr == '\0')" (parenthesized_expression "(optptr == (char *)0x0)" ( (binary_expression "optptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pbVar6 = (byte *)optptr, *optptr == '\0')" ( (comma_expression "pbVar6 = (byte *)optptr, *optptr == '\0'" (assignment_expression "pbVar6 = (byte *)optptr" identifier = (cast_expression "(byte *)optptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*optptr == '\0'" (pointer_expression "*optptr" * identifier) == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    pcVar3 = *argptr;\n    if (pcVar3 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar3 != '-') {\n      return 0;\n    }\n    pbVar6 = (byte *)(pcVar3 + 1);\n    if (pcVar3[1] == '\0') {\n      return 0;\n    }\n    argptr = argptr + 1;\n    if ((pcVar3[1] == '-') && (pcVar3[2] == '\0')) {\n      return 0;\n    }\n  }" { (expression_statement "pcVar3 = *argptr;" (assignment_expression "pcVar3 = *argptr" identifier = (pointer_expression "*argptr" * identifier)) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*pcVar3 != '-') {\n      return 0;\n    }" if (parenthesized_expression "(*pcVar3 != '-')" ( (binary_expression "*pcVar3 != '-'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'-'" ' character ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar6 = (byte *)(pcVar3 + 1);" (assignment_expression "pbVar6 = (byte *)(pcVar3 + 1)" identifier = (cast_expression "(byte *)(pcVar3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (if_statement "if (pcVar3[1] == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(pcVar3[1] == '\0')" ( (binary_expression "pcVar3[1] == '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "argptr = argptr + 1;" (assignment_expression "argptr = argptr + 1" identifier = (binary_expression "argptr + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar3[1] == '-') && (pcVar3[2] == '\0')) {\n      return 0;\n    }" if (parenthesized_expression "((pcVar3[1] == '-') && (pcVar3[2] == '\0'))" ( (binary_expression "(pcVar3[1] == '-') && (pcVar3[2] == '\0')" (parenthesized_expression "(pcVar3[1] == '-')" ( (binary_expression "pcVar3[1] == '-'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(pcVar3[2] == '\0')" ( (binary_expression "pcVar3[2] == '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "bVar2 = *pbVar6;" (assignment_expression "bVar2 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (while_statement "while( true ) {\n    pbVar4 = (byte *)optstring;\n    if (*pbVar4 == bVar2) {\n      pbVar5 = pbVar6 + 1;\n      if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }\n      optptr = (char *)pbVar5;\n      return (int)bVar2;\n    }\n    if (*pbVar4 == 0) break;\n    optstring = (char *)(pbVar4 + 1);\n    if (pbVar4[1] == 0x3a) {\n      optstring = (char *)(pbVar4 + 2);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pbVar4 = (byte *)optstring;\n    if (*pbVar4 == bVar2) {\n      pbVar5 = pbVar6 + 1;\n      if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }\n      optptr = (char *)pbVar5;\n      return (int)bVar2;\n    }\n    if (*pbVar4 == 0) break;\n    optstring = (char *)(pbVar4 + 1);\n    if (pbVar4[1] == 0x3a) {\n      optstring = (char *)(pbVar4 + 2);\n    }\n  }" { (expression_statement "pbVar4 = (byte *)optstring;" (assignment_expression "pbVar4 = (byte *)optstring" identifier = (cast_expression "(byte *)optstring" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (*pbVar4 == bVar2) {\n      pbVar5 = pbVar6 + 1;\n      if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }\n      optptr = (char *)pbVar5;\n      return (int)bVar2;\n    }" if (parenthesized_expression "(*pbVar4 == bVar2)" ( (binary_expression "*pbVar4 == bVar2" (pointer_expression "*pbVar4" * identifier) == identifier) )) (compound_statement "{\n      pbVar5 = pbVar6 + 1;\n      if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }\n      optptr = (char *)pbVar5;\n      return (int)bVar2;\n    }" { (expression_statement "pbVar5 = pbVar6 + 1;" (assignment_expression "pbVar5 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar4[1] == 0x3a) {\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }" if (parenthesized_expression "(pbVar4[1] == 0x3a)" ( (binary_expression "pbVar4[1] == 0x3a" (subscript_expression "pbVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        pbVar4 = pbVar5;\n        if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }\n        pbVar5 = (byte *)0x0;\n        optionarg = (char *)pbVar4;\n      }" { (expression_statement "pbVar4 = pbVar5;" (assignment_expression "pbVar4 = pbVar5" identifier = identifier) ;) (if_statement "if (pbVar6[1] == 0) {\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }" if (parenthesized_expression "(pbVar6[1] == 0)" ( (binary_expression "pbVar6[1] == 0" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          ppcVar1 = argptr + 1;\n          pbVar4 = (byte *)*argptr;\n          argptr = ppcVar1;\n          if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }\n        }" { (expression_statement "ppcVar1 = argptr + 1;" (assignment_expression "ppcVar1 = argptr + 1" identifier = (binary_expression "argptr + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = (byte *)*argptr;" (assignment_expression "pbVar4 = (byte *)*argptr" identifier = (cast_expression "(byte *)*argptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*argptr" * identifier))) ;) (expression_statement "argptr = ppcVar1;" (assignment_expression "argptr = ppcVar1" identifier = identifier) ;) (if_statement "if (pbVar4 == (byte *)0x0) {\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }" if (parenthesized_expression "(pbVar4 == (byte *)0x0)" ( (binary_expression "pbVar4 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n            ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);\n          }" { comment (expression_statement "ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2);" (call_expression "ash_msg_and_raise_error("no arg for -%c option",(ulong)bVar2)" identifier (argument_list "("no arg for -%c option",(ulong)bVar2)" ( (string_literal ""no arg for -%c option"" " string_content ") , (cast_expression "(ulong)bVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) })) })) (expression_statement "pbVar5 = (byte *)0x0;" (assignment_expression "pbVar5 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "optionarg = (char *)pbVar4;" (assignment_expression "optionarg = (char *)pbVar4" identifier = (cast_expression "(char *)pbVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "optptr = (char *)pbVar5;" (assignment_expression "optptr = (char *)pbVar5" identifier = (cast_expression "(char *)pbVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return (int)bVar2;" return (cast_expression "(int)bVar2" ( (type_descriptor "int" primitive_type) ) identifier) ;) })) (if_statement "if (*pbVar4 == 0) break;" if (parenthesized_expression "(*pbVar4 == 0)" ( (binary_expression "*pbVar4 == 0" (pointer_expression "*pbVar4" * identifier) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "optstring = (char *)(pbVar4 + 1);" (assignment_expression "optstring = (char *)(pbVar4 + 1)" identifier = (cast_expression "(char *)(pbVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 1)" ( (binary_expression "pbVar4 + 1" identifier + number_literal) )))) ;) (if_statement "if (pbVar4[1] == 0x3a) {\n      optstring = (char *)(pbVar4 + 2);\n    }" if (parenthesized_expression "(pbVar4[1] == 0x3a)" ( (binary_expression "pbVar4[1] == 0x3a" (subscript_expression "pbVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      optstring = (char *)(pbVar4 + 2);\n    }" { (expression_statement "optstring = (char *)(pbVar4 + 2);" (assignment_expression "optstring = (char *)(pbVar4 + 2)" identifier = (cast_expression "(char *)(pbVar4 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 2)" ( (binary_expression "pbVar4 + 2" identifier + number_literal) )))) ;) })) })) comment (expression_statement "ash_msg_and_raise_error("illegal option -%c",(ulong)bVar2);" (call_expression "ash_msg_and_raise_error("illegal option -%c",(ulong)bVar2)" identifier (argument_list "("illegal option -%c",(ulong)bVar2)" ( (string_literal ""illegal option -%c"" " string_content ") , (cast_expression "(ulong)bVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) })))
(translation_unit "ulong FUN_001487ce(char *param_1)\n\n{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}\n\n" (function_definition "ulong FUN_001487ce(char *param_1)\n\n{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_001487ce(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 auVar7 [16];" type_identifier (array_declarator "auVar7 [16]" identifier [ number_literal ]) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0))" ( (binary_expression "(DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)" (parenthesized_expression "(DAT_001c6520 == (byte *)0x0)" ( (binary_expression "DAT_001c6520 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)" ( (comma_expression "pbVar5 = DAT_001c6520, *DAT_001c6520 == 0" (assignment_expression "pbVar5 = DAT_001c6520" identifier = identifier) , (binary_expression "*DAT_001c6520 == 0" (pointer_expression "*DAT_001c6520" * identifier) == number_literal)) ))) )) (compound_statement "{\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }" { (expression_statement "pcVar6 = (char *)*DAT_001c6530;" (assignment_expression "pcVar6 = (char *)*DAT_001c6530" identifier = (cast_expression "(char *)*DAT_001c6530" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_001c6530" * identifier))) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*pcVar6 != '-') {\n      return 0;\n    }" if (parenthesized_expression "(*pcVar6 != '-')" ( (binary_expression "*pcVar6 != '-'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'-'" ' character ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)(pcVar6 + 1);" (assignment_expression "pbVar5 = (byte *)(pcVar6 + 1)" identifier = (cast_expression "(byte *)(pcVar6 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) )))) ;) (if_statement "if (pcVar6[1] == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(pcVar6[1] == '\0')" ( (binary_expression "pcVar6[1] == '\0'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_001c6530 = DAT_001c6530 + 1;" (assignment_expression "DAT_001c6530 = DAT_001c6530 + 1" identifier = (binary_expression "DAT_001c6530 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }" if (parenthesized_expression "((pcVar6[1] == '-') && (pcVar6[2] == '\0'))" ( (binary_expression "(pcVar6[1] == '-') && (pcVar6[2] == '\0')" (parenthesized_expression "(pcVar6[1] == '-')" ( (binary_expression "pcVar6[1] == '-'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(pcVar6[2] == '\0')" ( (binary_expression "pcVar6[2] == '\0'" (subscript_expression "pcVar6[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "auVar7._1_7_ = 0;" (assignment_expression "auVar7._1_7_ = 0" (field_expression "auVar7._1_7_" identifier . field_identifier) = number_literal) ;) (expression_statement "auVar7[0] = *pbVar5;" (assignment_expression "auVar7[0] = *pbVar5" (subscript_expression "auVar7[0]" identifier [ number_literal ]) = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "auVar7._8_8_ = pbVar5;" (assignment_expression "auVar7._8_8_ = pbVar5" (field_expression "auVar7._8_8_" identifier . field_identifier) = identifier) ;) (do_statement "do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );" do (compound_statement "{\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  }" { (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }" if (parenthesized_expression "(cVar2 == auVar7[0])" ( (binary_expression "cVar2 == auVar7[0]" identifier == (subscript_expression "auVar7[0]" identifier [ number_literal ])) )) (compound_statement "{\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }" { (expression_statement "lVar4 = auVar7._8_8_ + 1;" (assignment_expression "lVar4 = auVar7._8_8_ + 1" identifier = (binary_expression "auVar7._8_8_ + 1" (field_expression "auVar7._8_8_" identifier . field_identifier) + number_literal)) ;) (if_statement "if (param_1[1] != ':') goto LAB_001488ac;" if (parenthesized_expression "(param_1[1] != ':')" ( (binary_expression "param_1[1] != ':'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "':'" ' character ')) )) (goto_statement "goto LAB_001488ac;" goto statement_identifier ;)) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" identifier = identifier) ;) (if_statement "if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }" if (parenthesized_expression "(*(char *)(auVar7._8_8_ + 1) != '\0')" ( (binary_expression "*(char *)(auVar7._8_8_ + 1) != '\0'" (pointer_expression "*(char *)(auVar7._8_8_ + 1)" * (cast_expression "(char *)(auVar7._8_8_ + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(auVar7._8_8_ + 1)" ( (binary_expression "auVar7._8_8_ + 1" (field_expression "auVar7._8_8_" identifier . field_identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }" { (labeled_statement "LAB_001488a0:\n        lVar4 = 0;" statement_identifier : (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;)) (expression_statement "DAT_001c6528 = lVar3;" (assignment_expression "DAT_001c6528 = lVar3" identifier = identifier) ;) (labeled_statement "LAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;" statement_identifier : (expression_statement "DAT_001c6520 = (byte *)lVar4;" (assignment_expression "DAT_001c6520 = (byte *)lVar4" identifier = (cast_expression "(byte *)lVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (return_statement "return auVar7._0_8_ & 0xff;" return (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" identifier . field_identifier) & number_literal) ;) })) (expression_statement "plVar1 = DAT_001c6530 + 1;" (assignment_expression "plVar1 = DAT_001c6530 + 1" identifier = (binary_expression "DAT_001c6530 + 1" identifier + number_literal)) ;) (expression_statement "lVar3 = *DAT_001c6530;" (assignment_expression "lVar3 = *DAT_001c6530" identifier = (pointer_expression "*DAT_001c6530" * identifier)) ;) (expression_statement "DAT_001c6530 = plVar1;" (assignment_expression "DAT_001c6530 = plVar1" identifier = identifier) ;) (if_statement "if (lVar3 != 0) goto LAB_001488a0;" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001488a0;" goto statement_identifier ;)) (expression_statement "param_1 = "no arg for -%c option";" (assignment_expression "param_1 = "no arg for -%c option"" identifier = (string_literal ""no arg for -%c option"" " string_content ")) ;) (expression_statement "auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);" (assignment_expression "auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff)" identifier = (call_expression "FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff)" identifier (argument_list "("no arg for -%c option",auVar7._0_8_ & 0xff)" ( (string_literal ""no arg for -%c option"" " string_content ") , (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" identifier . field_identifier) & number_literal) )))) ;) (expression_statement "cVar2 = (char)lVar3;" (assignment_expression "cVar2 = (char)lVar3" identifier = (cast_expression "(char)lVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) })) (expression_statement "pcVar6 = param_1;" (assignment_expression "pcVar6 = param_1" identifier = identifier) ;) (if_statement "if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }" { (expression_statement "pcVar6 = "illegal option -%c";" (assignment_expression "pcVar6 = "illegal option -%c"" identifier = (string_literal ""illegal option -%c"" " string_content ")) ;) (expression_statement "auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);" (assignment_expression "auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff)" identifier = (call_expression "FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff)" identifier (argument_list "("illegal option -%c",auVar7._0_8_ & 0xff)" ( (string_literal ""illegal option -%c"" " string_content ") , (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" identifier . field_identifier) & number_literal) )))) ;) })) (expression_statement "param_1 = pcVar6 + 1;" (assignment_expression "param_1 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }" if (parenthesized_expression "(pcVar6[1] == ':')" ( (binary_expression "pcVar6[1] == ':'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "':'" ' character ')) )) (compound_statement "{\n      param_1 = pcVar6 + 2;\n    }" { (expression_statement "param_1 = pcVar6 + 2;" (assignment_expression "param_1 = pcVar6 + 2" identifier = (binary_expression "pcVar6 + 2" identifier + number_literal)) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * IDENT) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT . field_identifier) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;)) (return_statement return (binary_expression (field_expression IDENT . field_identifier) & LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , (binary_expression (field_expression IDENT . field_identifier) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , (binary_expression (field_expression IDENT . field_identifier) & LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "ulong FUN_001487ce(char *param_1)\n\n{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}" (type_identifier "ulong") (function_declarator "FUN_001487ce(char *param_1)" (identifier "FUN_001487ce") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  char cVar2;\n  long lVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  undefined1 auVar7 [16];\n  long lVar3;\n  \n  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }\n  auVar7._1_7_ = 0;\n  auVar7[0] = *pbVar5;\n  auVar7._8_8_ = pbVar5;\n  do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined1 auVar7 [16];" (type_identifier "undefined1") (array_declarator "auVar7 [16]" (identifier "auVar7") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (if_statement "if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0))" (( "(") (binary_expression "(DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)" (parenthesized_expression "(DAT_001c6520 == (byte *)0x0)" (( "(") (binary_expression "DAT_001c6520 == (byte *)0x0" (identifier "DAT_001c6520") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)" (( "(") (comma_expression "pbVar5 = DAT_001c6520, *DAT_001c6520 == 0" (assignment_expression "pbVar5 = DAT_001c6520" (identifier "pbVar5") (= "=") (identifier "DAT_001c6520")) (, ",") (binary_expression "*DAT_001c6520 == 0" (pointer_expression "*DAT_001c6520" (* "*") (identifier "DAT_001c6520")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    pcVar6 = (char *)*DAT_001c6530;\n    if (pcVar6 == (char *)0x0) {\n      return 0;\n    }\n    if (*pcVar6 != '-') {\n      return 0;\n    }\n    pbVar5 = (byte *)(pcVar6 + 1);\n    if (pcVar6[1] == '\0') {\n      return 0;\n    }\n    DAT_001c6530 = DAT_001c6530 + 1;\n    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "pcVar6 = (char *)*DAT_001c6530;" (assignment_expression "pcVar6 = (char *)*DAT_001c6530" (identifier "pcVar6") (= "=") (cast_expression "(char *)*DAT_001c6530" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*DAT_001c6530" (* "*") (identifier "DAT_001c6530")))) (; ";")) (if_statement "if (pcVar6 == (char *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(pcVar6 == (char *)0x0)" (( "(") (binary_expression "pcVar6 == (char *)0x0" (identifier "pcVar6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*pcVar6 != '-') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*pcVar6 != '-')" (( "(") (binary_expression "*pcVar6 != '-'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (!= "!=") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)(pcVar6 + 1);" (assignment_expression "pbVar5 = (byte *)(pcVar6 + 1)" (identifier "pbVar5") (= "=") (cast_expression "(byte *)(pcVar6 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar6 + 1)" (( "(") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (pcVar6[1] == '\0') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(pcVar6[1] == '\0')" (( "(") (binary_expression "pcVar6[1] == '\0'" (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "DAT_001c6530 = DAT_001c6530 + 1;" (assignment_expression "DAT_001c6530 = DAT_001c6530 + 1" (identifier "DAT_001c6530") (= "=") (binary_expression "DAT_001c6530 + 1" (identifier "DAT_001c6530") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((pcVar6[1] == '-') && (pcVar6[2] == '\0'))" (( "(") (binary_expression "(pcVar6[1] == '-') && (pcVar6[2] == '\0')" (parenthesized_expression "(pcVar6[1] == '-')" (( "(") (binary_expression "pcVar6[1] == '-'" (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar6[2] == '\0')" (( "(") (binary_expression "pcVar6[2] == '\0'" (subscript_expression "pcVar6[2]" (identifier "pcVar6") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "auVar7._1_7_ = 0;" (assignment_expression "auVar7._1_7_ = 0" (field_expression "auVar7._1_7_" (identifier "auVar7") (. ".") (field_identifier "_1_7_")) (= "=") (number_literal "0")) (; ";")) (expression_statement "auVar7[0] = *pbVar5;" (assignment_expression "auVar7[0] = *pbVar5" (subscript_expression "auVar7[0]" (identifier "auVar7") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5"))) (; ";")) (expression_statement "auVar7._8_8_ = pbVar5;" (assignment_expression "auVar7._8_8_ = pbVar5" (field_expression "auVar7._8_8_" (identifier "auVar7") (. ".") (field_identifier "_8_8_")) (= "=") (identifier "pbVar5")) (; ";")) (do_statement "do {\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    cVar2 = *param_1;\n    if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }\n    pcVar6 = param_1;\n    if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }\n    param_1 = pcVar6 + 1;\n    if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }\n  }" ({ "{") (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar2 == auVar7[0]) {\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }" (if "if") (parenthesized_expression "(cVar2 == auVar7[0])" (( "(") (binary_expression "cVar2 == auVar7[0]" (identifier "cVar2") (== "==") (subscript_expression "auVar7[0]" (identifier "auVar7") ([ "[") (number_literal "0") (] "]"))) () ")")) (compound_statement "{\n      lVar4 = auVar7._8_8_ + 1;\n      if (param_1[1] != ':') goto LAB_001488ac;\n      lVar3 = lVar4;\n      if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }\n      plVar1 = DAT_001c6530 + 1;\n      lVar3 = *DAT_001c6530;\n      DAT_001c6530 = plVar1;\n      if (lVar3 != 0) goto LAB_001488a0;\n      param_1 = "no arg for -%c option";\n      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);\n      cVar2 = (char)lVar3;\n    }" ({ "{") (expression_statement "lVar4 = auVar7._8_8_ + 1;" (assignment_expression "lVar4 = auVar7._8_8_ + 1" (identifier "lVar4") (= "=") (binary_expression "auVar7._8_8_ + 1" (field_expression "auVar7._8_8_" (identifier "auVar7") (. ".") (field_identifier "_8_8_")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_1[1] != ':') goto LAB_001488ac;" (if "if") (parenthesized_expression "(param_1[1] != ':')" (( "(") (binary_expression "param_1[1] != ':'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (goto_statement "goto LAB_001488ac;" (goto "goto") (statement_identifier "LAB_001488ac") (; ";"))) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" (identifier "lVar3") (= "=") (identifier "lVar4")) (; ";")) (if_statement "if (*(char *)(auVar7._8_8_ + 1) != '\0') {\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }" (if "if") (parenthesized_expression "(*(char *)(auVar7._8_8_ + 1) != '\0')" (( "(") (binary_expression "*(char *)(auVar7._8_8_ + 1) != '\0'" (pointer_expression "*(char *)(auVar7._8_8_ + 1)" (* "*") (cast_expression "(char *)(auVar7._8_8_ + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(auVar7._8_8_ + 1)" (( "(") (binary_expression "auVar7._8_8_ + 1" (field_expression "auVar7._8_8_" (identifier "auVar7") (. ".") (field_identifier "_8_8_")) (+ "+") (number_literal "1")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_001488a0:\n        lVar4 = 0;\n        DAT_001c6528 = lVar3;\nLAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;\n        return auVar7._0_8_ & 0xff;\n      }" ({ "{") (labeled_statement "LAB_001488a0:\n        lVar4 = 0;" (statement_identifier "LAB_001488a0") (: ":") (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" (identifier "lVar4") (= "=") (number_literal "0")) (; ";"))) (expression_statement "DAT_001c6528 = lVar3;" (assignment_expression "DAT_001c6528 = lVar3" (identifier "DAT_001c6528") (= "=") (identifier "lVar3")) (; ";")) (labeled_statement "LAB_001488ac:\n        DAT_001c6520 = (byte *)lVar4;" (statement_identifier "LAB_001488ac") (: ":") (expression_statement "DAT_001c6520 = (byte *)lVar4;" (assignment_expression "DAT_001c6520 = (byte *)lVar4" (identifier "DAT_001c6520") (= "=") (cast_expression "(byte *)lVar4" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "lVar4"))) (; ";"))) (return_statement "return auVar7._0_8_ & 0xff;" (return "return") (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" (identifier "auVar7") (. ".") (field_identifier "_0_8_")) (& "&") (number_literal "0xff")) (; ";")) (} "}"))) (expression_statement "plVar1 = DAT_001c6530 + 1;" (assignment_expression "plVar1 = DAT_001c6530 + 1" (identifier "plVar1") (= "=") (binary_expression "DAT_001c6530 + 1" (identifier "DAT_001c6530") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar3 = *DAT_001c6530;" (assignment_expression "lVar3 = *DAT_001c6530" (identifier "lVar3") (= "=") (pointer_expression "*DAT_001c6530" (* "*") (identifier "DAT_001c6530"))) (; ";")) (expression_statement "DAT_001c6530 = plVar1;" (assignment_expression "DAT_001c6530 = plVar1" (identifier "DAT_001c6530") (= "=") (identifier "plVar1")) (; ";")) (if_statement "if (lVar3 != 0) goto LAB_001488a0;" (if "if") (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001488a0;" (goto "goto") (statement_identifier "LAB_001488a0") (; ";"))) (expression_statement "param_1 = "no arg for -%c option";" (assignment_expression "param_1 = "no arg for -%c option"" (identifier "param_1") (= "=") (string_literal ""no arg for -%c option"" (" """) (string_content "no arg for -%c option") (" """))) (; ";")) (expression_statement "auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);" (assignment_expression "auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff)" (identifier "auVar7") (= "=") (call_expression "FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff)" (identifier "FUN_001484c3") (argument_list "("no arg for -%c option",auVar7._0_8_ & 0xff)" (( "(") (string_literal ""no arg for -%c option"" (" """) (string_content "no arg for -%c option") (" """)) (, ",") (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" (identifier "auVar7") (. ".") (field_identifier "_0_8_")) (& "&") (number_literal "0xff")) () ")")))) (; ";")) (expression_statement "cVar2 = (char)lVar3;" (assignment_expression "cVar2 = (char)lVar3" (identifier "cVar2") (= "=") (cast_expression "(char)lVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "lVar3"))) (; ";")) (} "}"))) (expression_statement "pcVar6 = param_1;" (assignment_expression "pcVar6 = param_1" (identifier "pcVar6") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (cVar2 == '\0') {\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar6 = "illegal option -%c";\n      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);\n    }" ({ "{") (expression_statement "pcVar6 = "illegal option -%c";" (assignment_expression "pcVar6 = "illegal option -%c"" (identifier "pcVar6") (= "=") (string_literal ""illegal option -%c"" (" """) (string_content "illegal option -%c") (" """))) (; ";")) (expression_statement "auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);" (assignment_expression "auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff)" (identifier "auVar7") (= "=") (call_expression "FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff)" (identifier "FUN_001484c3") (argument_list "("illegal option -%c",auVar7._0_8_ & 0xff)" (( "(") (string_literal ""illegal option -%c"" (" """) (string_content "illegal option -%c") (" """)) (, ",") (binary_expression "auVar7._0_8_ & 0xff" (field_expression "auVar7._0_8_" (identifier "auVar7") (. ".") (field_identifier "_0_8_")) (& "&") (number_literal "0xff")) () ")")))) (; ";")) (} "}"))) (expression_statement "param_1 = pcVar6 + 1;" (assignment_expression "param_1 = pcVar6 + 1" (identifier "param_1") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pcVar6[1] == ':') {\n      param_1 = pcVar6 + 2;\n    }" (if "if") (parenthesized_expression "(pcVar6[1] == ':')" (( "(") (binary_expression "pcVar6[1] == ':'" (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (compound_statement "{\n      param_1 = pcVar6 + 2;\n    }" ({ "{") (expression_statement "param_1 = pcVar6 + 2;" (assignment_expression "param_1 = pcVar6 + 2" (identifier "param_1") (= "=") (binary_expression "pcVar6 + 2" (identifier "pcVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

int function_1(char *optstring)

{
  char **ppcVar1;
  type_1 var_4;
  char *var_2;
  type_1 *var_6;
  type_1 *pbVar5;
  type_1 *var_5;
  
  if ((var_1 == (char *)0x0) || (var_5 = (type_1 *)var_1, *var_1 == '\0')) {
    var_2 = *var_3;
    if (var_2 == (char *)0x0) {
      return 0;
    }
    if (*var_2 != '-') {
      return 0;
    }
    var_5 = (type_1 *)(var_2 + 1);
    if (var_2[1] == '\0') {
      return 0;
    }
    var_3 = var_3 + 1;
    if ((var_2[1] == '-') && (var_2[2] == '\0')) {
      return 0;
    }
  }
  var_4 = *var_5;
  while( true ) {
    var_6 = (type_1 *)optstring;
    if (*var_6 == var_4) {
      pbVar5 = var_5 + 1;
      if (var_6[1] == 0x3a) {
        var_6 = pbVar5;
        if (var_5[1] == 0) {
          ppcVar1 = var_3 + 1;
          var_6 = (type_1 *)*var_3;
          var_3 = ppcVar1;
          if (var_6 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
            var_7("no arg for -%c option",(type_2)var_4);
          }
        }
        pbVar5 = (type_1 *)0x0;
        optionarg = (char *)var_6;
      }
      var_1 = (char *)pbVar5;
      return (int)var_4;
    }
    if (*var_6 == 0) break;
    optstring = (char *)(var_6 + 1);
    if (var_6[1] == 0x3a) {
      optstring = (char *)(var_6 + 2);
    }
  }
                    /* WARNING: Subroutine does not return */
  var_7("illegal option -%c",(type_2)var_4);
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (return_statement (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))) (expression_statement (assignment_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: (identifier))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) condition: (parenthesized_expression (true))))))

ulong MASKED(char *param_1)

{
  long *plVar1;
  char cVar2;
  long lVar4;
  byte *pbVar5;
  char *pcVar6;
  undefined1 auVar7 [16];
  long lVar3;
  
  if ((DAT_001c6520 == (byte *)0x0) || (pbVar5 = DAT_001c6520, *DAT_001c6520 == 0)) {
    pcVar6 = (char *)*DAT_001c6530;
    if (pcVar6 == (char *)0x0) {
      return 0;
    }
    if (*pcVar6 != '-') {
      return 0;
    }
    pbVar5 = (byte *)(pcVar6 + 1);
    if (pcVar6[1] == '\0') {
      return 0;
    }
    DAT_001c6530 = DAT_001c6530 + 1;
    if ((pcVar6[1] == '-') && (pcVar6[2] == '\0')) {
      return 0;
    }
  }
  auVar7._1_7_ = 0;
  auVar7[0] = *pbVar5;
  auVar7._8_8_ = pbVar5;
  do {
    cVar2 = *param_1;
    if (cVar2 == auVar7[0]) {
      lVar4 = auVar7._8_8_ + 1;
      if (param_1[1] != ':') goto LAB_001488ac;
      lVar3 = lVar4;
      if (*(char *)(auVar7._8_8_ + 1) != '\0') {
LAB_001488a0:
        lVar4 = 0;
        DAT_001c6528 = lVar3;
LAB_001488ac:
        DAT_001c6520 = (byte *)lVar4;
        return auVar7._0_8_ & 0xff;
      }
      plVar1 = DAT_001c6530 + 1;
      lVar3 = *DAT_001c6530;
      DAT_001c6530 = plVar1;
      if (lVar3 != 0) goto LAB_001488a0;
      param_1 = "no arg for -%c option";
      auVar7 = FUN_001484c3("no arg for -%c option",auVar7._0_8_ & 0xff);
      cVar2 = (char)lVar3;
    }
    pcVar6 = param_1;
    if (cVar2 == '\0') {
      pcVar6 = "illegal option -%c";
      auVar7 = FUN_001484c3("illegal option -%c",auVar7._0_8_ & 0xff);
    }
    param_1 = pcVar6 + 1;
    if (pcVar6[1] == ':') {
      param_1 = pcVar6 + 2;
    }
  } while( true );
}

