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

int getopts_builtin(WORD_LIST *list)

{
  int *piVar1;
  int iVar2;
  char cVar3;
  char *name;
  word_list *pwVar4;
  char *pcVar5;
  int iVar6;
  char **__ptr;
  char **argv;
  char **ppcVar7;
  word_list *pwVar8;
  uint uVar9;
  uint uVar10;
  int iVar11;
  int in_GS_OFFSET;
  char *local_50;
  int local_40;
  int ac;
  char strval [2];
  char numval [16];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (list != (WORD_LIST *)0x0) {
    reset_internal_getopt();
    iVar6 = internal_getopt(list,"");
    if (iVar6 == -1) {
      __ptr = make_builtin_argv(loptend,&ac);
      if (ac < 3) {
        builtin_usage();
        iVar6 = 0x102;
      }
      else {
        local_50 = __ptr[1];
        name = __ptr[2];
        cVar3 = *local_50;
        if (cVar3 == ':') {
          local_50 = local_50 + 1;
          local_40 = sh_opterr;
          sh_opterr = 0;
        }
        if (ac + -2 == 1) {
          if (rest_of_args == (WORD_LIST *)0x0) {
            iVar6 = 0;
            do {
              if ((&dollar_vars)[iVar6] == (char *)0x0) break;
              iVar6 = iVar6 + 1;
            } while (iVar6 != 10);
            sh_getopt_restore_state(&dollar_vars);
            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);
          }
          else {
            iVar6 = 0;
            do {
              iVar11 = iVar6;
              iVar6 = iVar11 + 1;
              pwVar8 = rest_of_args;
              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;
            } while (iVar6 != 10);
            iVar11 = iVar11 + 2;
            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {
LAB_000ae9f0:
              iVar6 = iVar11;
              iVar11 = iVar11 + 1;
            }
            iVar11 = 0;
            argv = strvec_create(iVar6 + 2);
            ppcVar7 = argv;
            do {
              piVar1 = (int *)(&dollar_vars + iVar11);
              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;
              iVar11 = iVar11 + 1;
              *ppcVar7 = (char *)*piVar1;
              ppcVar7 = ppcVar7 + 1;
            } while (iVar11 != 10);
            ppcVar7 = argv + 10;
LAB_000aea2a:
            pwVar8 = rest_of_args;
            if (rest_of_args != (WORD_LIST *)0x0) {
              do {
                pwVar4 = pwVar8->next;
                argv[iVar11] = pwVar8->word->word;
                iVar11 = iVar11 + 1;
                pwVar8 = pwVar4;
              } while (pwVar4 != (word_list *)0x0);
              ppcVar7 = argv + iVar11;
            }
            *ppcVar7 = (char *)0x0;
            sh_getopt_restore_state(argv);
            local_50 = (char *)sh_getopt(iVar11,argv,local_50);
            free(argv);
          }
        }
        else {
          sh_getopt_restore_state(__ptr + 2);
          pcVar5 = __ptr[2];
          __ptr[2] = dollar_vars;
          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);
          __ptr[2] = pcVar5;
        }
        if (cVar3 == ':') {
          sh_opterr = local_40;
        }
        if (sh_optind < 10) {
          numval[0xe] = (char)sh_optind + '0';
          iVar11 = 0xe;
        }
        else {
          uVar9 = sh_optind;
          iVar6 = 0xf;
          do {
            iVar11 = iVar6 + -1;
            uVar10 = uVar9 / 10;
            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';
            uVar9 = uVar10;
            iVar6 = iVar11;
          } while (uVar10 != 0);
        }
        numval[0xf] = '\0';
        bind_variable("OPTIND",numval + iVar11,0);
        if (local_50 == (char *)0x3f) {
          if (sh_optarg == (char *)0x0) {
LAB_000aec80:
            iVar6 = getopts_bind_variable(name,"?");
            if (cVar3 == ':') {
LAB_000aec98:
              strval[1] = '\0';
              strval[0] = (char)sh_optopt;
              bind_variable("OPTARG",strval,0);
              goto LAB_000aeb2e;
            }
          }
          else {
            if (*sh_optarg != '\0') goto LAB_000aeafc;
LAB_000aec3d:
            if (cVar3 == ':') {
              iVar6 = getopts_bind_variable(name,":");
              goto LAB_000aec98;
            }
            iVar6 = getopts_bind_variable(name,"?");
          }
          unbind_variable_noref("OPTARG");
        }
        else if (local_50 == (char *)0xffffffff) {
          iVar6 = 1;
          unbind_variable_noref("OPTARG");
          getopts_bind_variable(name,"?");
        }
        else {
          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;
          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;
LAB_000aeafc:
          bind_variable("OPTARG",sh_optarg,0);
          strval[1] = '\0';
          strval[0] = (char)local_50;
          iVar6 = getopts_bind_variable(name,strval);
        }
      }
LAB_000aeb2e:
      free(__ptr);
      goto LAB_000ae926;
    }
    if (iVar6 == -99) {
      builtin_help();
      iVar6 = 0x102;
      goto LAB_000ae926;
    }
  }
  builtin_usage();
  iVar6 = 0x102;
LAB_000ae926:
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar6;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 getopts_builtin(int param_1)

{
  int *piVar1;
  char cVar2;
  undefined4 *puVar3;
  int iVar4;
  void *__ptr;
  int *__ptr_00;
  int *piVar5;
  undefined4 *puVar6;
  uint uVar7;
  uint uVar8;
  undefined4 uVar9;
  int iVar10;
  int in_GS_OFFSET;
  char *local_50;
  undefined4 local_40;
  int local_38;
  undefined1 local_32;
  char local_31 [15];
  char local_22;
  undefined1 local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xae8d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 != 0) {
    reset_internal_getopt();
    iVar4 = internal_getopt(param_1,&DAT_00106524);
    if (iVar4 == -1) {
      __ptr = (void *)make_builtin_argv(loptend,&local_38);
      if (local_38 < 3) {
        builtin_usage();
        uVar9 = 0x102;
      }
      else {
        local_50 = *(char **)((int)__ptr + 4);
        cVar2 = *local_50;
        if (cVar2 == ':') {
          local_50 = local_50 + 1;
          local_40 = sh_opterr;
          sh_opterr = 0;
        }
        if (local_38 + -2 == 1) {
          if (rest_of_args == (undefined4 *)0x0) {
            iVar4 = 0;
            do {
              if ((&dollar_vars)[iVar4] == 0) break;
              iVar4 = iVar4 + 1;
            } while (iVar4 != 10);
            sh_getopt_restore_state(&dollar_vars);
            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);
          }
          else {
            iVar4 = 0;
            do {
              iVar10 = iVar4;
              iVar4 = iVar10 + 1;
              puVar6 = rest_of_args;
              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;
            } while (iVar4 != 10);
            iVar10 = iVar10 + 2;
            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;
                puVar6 = (undefined4 *)*puVar6) {
LAB_000ae9f0:
              iVar4 = iVar10;
              iVar10 = iVar10 + 1;
            }
            iVar10 = 0;
            __ptr_00 = (int *)strvec_create(iVar4 + 2);
            piVar5 = __ptr_00;
            do {
              piVar1 = &dollar_vars + iVar10;
              if (*piVar1 == 0) goto LAB_000aea2a;
              iVar10 = iVar10 + 1;
              *piVar5 = *piVar1;
              piVar5 = piVar5 + 1;
            } while (iVar10 != 10);
            piVar5 = __ptr_00 + 10;
LAB_000aea2a:
            puVar6 = rest_of_args;
            if (rest_of_args != (undefined4 *)0x0) {
              do {
                puVar3 = (undefined4 *)*puVar6;
                __ptr_00[iVar10] = *(int *)puVar6[1];
                iVar10 = iVar10 + 1;
                puVar6 = puVar3;
              } while (puVar3 != (undefined4 *)0x0);
              piVar5 = __ptr_00 + iVar10;
            }
            *piVar5 = 0;
            sh_getopt_restore_state(__ptr_00);
            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);
            free(__ptr_00);
          }
        }
        else {
          sh_getopt_restore_state((int)__ptr + 8);
          uVar9 = *(undefined4 *)((int)__ptr + 8);
          *(undefined4 *)((int)__ptr + 8) = dollar_vars;
          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);
          *(undefined4 *)((int)__ptr + 8) = uVar9;
        }
        if (cVar2 == ':') {
          sh_opterr = local_40;
        }
        if ((int)sh_optind < 10) {
          local_22 = (char)sh_optind + '0';
          iVar10 = 0xe;
        }
        else {
          uVar7 = sh_optind;
          iVar4 = 0xf;
          do {
            iVar10 = iVar4 + -1;
            uVar8 = uVar7 / 10;
            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';
            uVar7 = uVar8;
            iVar4 = iVar10;
          } while (uVar8 != 0);
        }
        local_21 = 0;
        bind_variable("OPTIND",local_31 + iVar10 + 1,0);
        if (local_50 == (char *)0x3f) {
          if (sh_optarg == (char *)0x0) {
LAB_000aec80:
            uVar9 = FUN_000ae830();
            if (cVar2 == ':') {
LAB_000aec98:
              local_31[0] = '\0';
              local_32 = (undefined1)sh_optopt;
              bind_variable("OPTARG",&local_32,0);
              goto LAB_000aeb2e;
            }
          }
          else {
            if (*sh_optarg != '\0') goto LAB_000aeafc;
LAB_000aec3d:
            if (cVar2 == ':') {
              uVar9 = FUN_000ae830();
              goto LAB_000aec98;
            }
            uVar9 = FUN_000ae830();
          }
          unbind_variable_noref("OPTARG");
        }
        else if (local_50 == (char *)0xffffffff) {
          uVar9 = 1;
          unbind_variable_noref("OPTARG");
          FUN_000ae830();
        }
        else {
          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;
          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;
LAB_000aeafc:
          bind_variable("OPTARG",sh_optarg,0);
          local_31[0] = '\0';
          local_32 = local_50._0_1_;
          uVar9 = FUN_000ae830();
        }
      }
LAB_000aeb2e:
      free(__ptr);
      goto LAB_000ae926;
    }
    if (iVar4 == -99) {
      builtin_help();
      uVar9 = 0x102;
      goto LAB_000ae926;
    }
  }
  builtin_usage();
  uVar9 = 0x102;
LAB_000ae926:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar9;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000ecc40();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x9b727
SUB ESP,0x4c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x60]
TEST ESI,ESI
JZ 0x000ae91c
CALL 0x000b3030
SUB ESP,0x8
LEA EAX,[EBX + 0xfffbc524]
PUSH EAX
PUSH ESI
CALL 0x000b2be0
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x000ae948
CMP EAX,-0x63
JZ 0x000aebd0
CALL 0x0009b510
MOV ESI,0x102
MOV EDI,dword ptr [ESP + 0x3c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x000aed13
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[ESP + 0x2c]
PUSH EAX
LEA EAX,[EBX + 0xd8a4]
PUSH dword ptr [EAX]
CALL 0x0009bc20
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
CMP EDI,0x2
JLE 0x000aec70
MOV EAX,dword ptr [ESP + 0x8]
SUB EDI,0x2
MOV ECX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x14],EAX
MOVZX EAX,byte ptr [ECX]
MOV dword ptr [ESP + 0xc],ECX
MOV byte ptr [ESP + 0x13],AL
CMP AL,0x3a
JNZ 0x000ae9a8
LEA EAX,[EBX + 0x16e8]
ADD dword ptr [ESP + 0xc],0x1
MOV ESI,dword ptr [EAX]
MOV dword ptr [EAX],0x0
MOV dword ptr [ESP + 0x1c],ESI
CMP EDI,0x1
JNZ 0x000aebe0
LEA EAX,[EBX + 0x5cf0]
MOV ECX,dword ptr [EAX]
MOV dword ptr [ESP + 0x18],EAX
TEST ECX,ECX
JZ 0x000aeb48
LEA EBP,[EBX + 0x8e20]
XOR EDX,EDX
LEA ESI,[ESI]
MOV ESI,dword ptr [EBP + EDX*0x4]
LEA EAX,[EDX + 0x1]
TEST ESI,ESI
JZ 0x000ae9f0
MOV EDX,EAX
CMP EAX,0xa
JNZ 0x000ae9d0
MOV ECX,dword ptr [ECX]
LEA EDX,[EAX + 0x1]
TEST ECX,ECX
JZ 0x000ae9fb
LEA ESI,[ESI]
NOP
MOV ECX,dword ptr [ECX]
MOV EAX,EDX
LEA EDX,[EAX + 0x1]
TEST ECX,ECX
JNZ 0x000ae9f0
SUB ESP,0xc
ADD EAX,0x2
XOR ESI,ESI
PUSH EAX
CALL 0x000bf0d0
ADD ESP,0x10
MOV EDI,EAX
NOP
MOV EDX,dword ptr [EBP + ESI*0x4]
MOV ECX,EAX
TEST EDX,EDX
JZ 0x000aea2a
ADD ESI,0x1
MOV dword ptr [EAX],EDX
LEA EAX,[ECX + 0x4]
CMP ESI,0xa
JNZ 0x000aea10
LEA ECX,[EDI + 0x28]
MOV EAX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x000aea4c
LEA ESI,[ESI]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EDX]
MOV dword ptr [EDI + ESI*0x4],EDX
ADD ESI,0x1
TEST EAX,EAX
JNZ 0x000aea38
LEA ECX,[EDI + ESI*0x4]
SUB ESP,0xc
MOV dword ptr [ECX],0x0
PUSH EDI
CALL 0x000b2ac0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x10]
PUSH EDI
PUSH ESI
CALL 0x000b2810
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x0002f200
ADD ESP,0x10
CMP byte ptr [ESP + 0x13],0x3a
JNZ 0x000aea8b
LEA EAX,[EBX + 0x16e8]
MOV EDI,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],EDI
LEA EAX,[EBX + 0x782c]
MOV ECX,dword ptr [EAX]
CMP ECX,0x9
JG 0x000aeb88
ADD ECX,0x30
MOV byte ptr [ESP + 0x3b],0x0
MOV EBP,0xe
LEA EDI,[ESP + 0x2c]
MOV byte ptr [ESP + 0x3a],CL
SUB ESP,0x4
ADD EDI,EBP
LEA EAX,[EBX + 0xfffa5975]
PUSH 0x0
PUSH EDI
PUSH EAX
CALL 0x00055560
ADD ESP,0x10
CMP dword ptr [ESP + 0xc],0x3f
JZ 0x000aec28
CMP dword ptr [ESP + 0xc],-0x1
JZ 0x000aece8
CMP dword ptr [ESP + 0xc],-0x2
JZ 0x000aec80
CMP dword ptr [ESP + 0xc],-0x3
JZ 0x000aec3d
LEA EAX,[EBX + 0x7830]
MOV EAX,dword ptr [EAX]
SUB ESP,0x4
PUSH 0x0
PUSH EAX
LEA EAX,[EBX + 0xfffb8999]
PUSH EAX
CALL 0x00055560
MOVZX EAX,byte ptr [ESP + 0x1c]
LEA EDX,[ESP + 0x3a]
MOV byte ptr [ESP + 0x3b],0x0
MOV byte ptr [ESP + 0x3a],AL
MOV EAX,dword ptr [ESP + 0x24]
CALL 0x000ae830
ADD ESP,0x10
MOV ESI,EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x0002f200
ADD ESP,0x10
JMP 0x000ae926
LEA EBP,[EBX + 0x8e20]
XOR ESI,ESI
MOV EDI,dword ptr [EBP + ESI*0x4]
TEST EDI,EDI
JZ 0x000aeb60
ADD ESI,0x1
CMP ESI,0xa
JNZ 0x000aeb50
SUB ESP,0xc
PUSH EBP
CALL 0x000b2ac0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x10]
PUSH EBP
PUSH ESI
CALL 0x000b2810
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
JMP 0x000aea78
MOV byte ptr [ESP + 0x3b],0x0
MOV ESI,0xf
LEA EDI,[ESP + 0x2c]
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,0xcccccccd
SUB ESI,0x1
MUL ECX
MOV EBP,ESI
SHR EDX,0x3
LEA EAX,[EDX + EDX*0x4]
ADD EAX,EAX
SUB ECX,EAX
ADD ECX,0x30
MOV byte ptr [EDI + ESI*0x1],CL
MOV ECX,EDX
TEST EDX,EDX
JNZ 0x000aeba0
JMP 0x000aeab1
CALL 0x000a3450
MOV ESI,0x102
JMP 0x000ae926
MOV ESI,dword ptr [ESP + 0x8]
SUB ESP,0xc
LEA EBP,[ESI + 0x8]
PUSH EBP
CALL 0x000b2ac0
LEA EAX,[EBX + 0x8e20]
MOV ECX,ESI
MOV ESI,dword ptr [ESI + 0x8]
MOV dword ptr [ESP + 0x18],ECX
ADD ESP,0xc
MOV EAX,dword ptr [EAX]
MOV dword ptr [ECX + 0x8],EAX
PUSH dword ptr [ESP + 0x10]
PUSH EBP
PUSH EDI
CALL 0x000b2810
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV dword ptr [ECX + 0x8],ESI
JMP 0x000aea78
LEA EAX,[EBX + 0x7830]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x000aec80
CMP byte ptr [EAX],0x0
JNZ 0x000aeafc
CMP byte ptr [ESP + 0x13],0x3a
JZ 0x000aecd0
MOV EAX,dword ptr [ESP + 0x14]
LEA EDX,[EBX + 0xfffa30ab]
CALL 0x000ae830
MOV ESI,EAX
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb8999]
PUSH EAX
CALL 0x000572d0
ADD ESP,0x10
JMP 0x000aeb2e
CALL 0x0009b510
MOV ESI,0x102
JMP 0x000aeb2e
MOV EAX,dword ptr [ESP + 0x14]
LEA EDX,[EBX + 0xfffa30ab]
CALL 0x000ae830
CMP byte ptr [ESP + 0x13],0x3a
MOV ESI,EAX
JNZ 0x000aec59
LEA EAX,[EBX + 0x16e4]
MOV byte ptr [ESP + 0x2b],0x0
SUB ESP,0x4
MOV EAX,dword ptr [EAX]
MOV byte ptr [ESP + 0x2e],AL
PUSH 0x0
LEA EAX,[ESP + 0x32]
PUSH EAX
LEA EAX,[EBX + 0xfffb8999]
PUSH EAX
CALL 0x00055560
ADD ESP,0x10
JMP 0x000aeb2e
MOV EAX,dword ptr [ESP + 0x14]
LEA EDX,[EBX + 0xfffb8405]
CALL 0x000ae830
MOV ESI,EAX
JMP 0x000aec98
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb8999]
MOV ESI,0x1
PUSH EAX
CALL 0x000572d0
MOV EAX,dword ptr [ESP + 0x24]
LEA EDX,[EBX + 0xfffa30ab]
CALL 0x000ae830
ADD ESP,0x10
JMP 0x000aeb2e
CALL 0x000ecc40
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 getopts_builtin(int param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000ecc40();\n}\n\n" comment (function_definition "undefined4 getopts_builtin(int param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000ecc40();\n}" type_identifier (function_declarator "getopts_builtin(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000ecc40();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_50;" primitive_type (pointer_declarator "*local_50" * identifier) ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined1 local_32;" type_identifier identifier ;) (declaration "char local_31 [15];" primitive_type (array_declarator "local_31 [15]" identifier [ number_literal ]) ;) (declaration "char local_22;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xae8d9;" (assignment_expression "uStack_14 = 0xae8d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" { (expression_statement "reset_internal_getopt();" (call_expression "reset_internal_getopt()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = internal_getopt(param_1,&DAT_00106524);" (assignment_expression "iVar4 = internal_getopt(param_1,&DAT_00106524)" identifier = (call_expression "internal_getopt(param_1,&DAT_00106524)" identifier (argument_list "(param_1,&DAT_00106524)" ( identifier , (pointer_expression "&DAT_00106524" & identifier) )))) ;) (if_statement "if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" { (expression_statement "__ptr = (void *)make_builtin_argv(loptend,&local_38);" (assignment_expression "__ptr = (void *)make_builtin_argv(loptend,&local_38)" identifier = (cast_expression "(void *)make_builtin_argv(loptend,&local_38)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_builtin_argv(loptend,&local_38)" identifier (argument_list "(loptend,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) ))))) ;) (if_statement "if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" if (parenthesized_expression "(local_38 < 3)" ( (binary_expression "local_38 < 3" identifier < number_literal) )) (compound_statement "{\n        builtin_usage();\n        uVar9 = 0x102;\n      }" { (expression_statement "builtin_usage();" (call_expression "builtin_usage()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" identifier = number_literal) ;) }) (else_clause "else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" else (compound_statement "{\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" { (expression_statement "local_50 = *(char **)((int)__ptr + 4);" (assignment_expression "local_50 = *(char **)((int)__ptr + 4)" identifier = (pointer_expression "*(char **)((int)__ptr + 4)" * (cast_expression "(char **)((int)__ptr + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 4)" ( (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "cVar2 = *local_50;" (assignment_expression "cVar2 = *local_50" identifier = (pointer_expression "*local_50" * identifier)) ;) (if_statement "if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" { (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" identifier = (binary_expression "local_50 + 1" identifier + number_literal)) ;) (expression_statement "local_40 = sh_opterr;" (assignment_expression "local_40 = sh_opterr" identifier = identifier) ;) (expression_statement "sh_opterr = 0;" (assignment_expression "sh_opterr = 0" identifier = number_literal) ;) })) (if_statement "if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" if (parenthesized_expression "(local_38 + -2 == 1)" ( (binary_expression "local_38 + -2 == 1" (binary_expression "local_38 + -2" identifier + number_literal) == number_literal) )) (compound_statement "{\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }" { (if_statement "if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" if (parenthesized_expression "(rest_of_args == (undefined4 *)0x0)" ( (binary_expression "rest_of_args == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);" do (compound_statement "{\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            }" { (if_statement "if ((&dollar_vars)[iVar4] == 0) break;" if (parenthesized_expression "((&dollar_vars)[iVar4] == 0)" ( (binary_expression "(&dollar_vars)[iVar4] == 0" (subscript_expression "(&dollar_vars)[iVar4]" (parenthesized_expression "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) )) [ identifier ]) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 10)" ( (binary_expression "iVar4 != 10" identifier != number_literal) )) ;) (expression_statement "sh_getopt_restore_state(&dollar_vars);" (call_expression "sh_getopt_restore_state(&dollar_vars)" identifier (argument_list "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) ))) ;) (expression_statement "local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50)" identifier = (cast_expression "(char *)sh_getopt(iVar4,&dollar_vars,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(iVar4,&dollar_vars,local_50)" identifier (argument_list "(iVar4,&dollar_vars,local_50)" ( identifier , (pointer_expression "&dollar_vars" & identifier) , identifier ))))) ;) }) (else_clause "else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" else (compound_statement "{\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);" do (compound_statement "{\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            }" { (expression_statement "iVar10 = iVar4;" (assignment_expression "iVar10 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar10 + 1;" (assignment_expression "iVar4 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = rest_of_args;" (assignment_expression "puVar6 = rest_of_args" identifier = identifier) ;) (if_statement "if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;" if (parenthesized_expression "((&dollar_vars)[iVar10] == 0)" ( (binary_expression "(&dollar_vars)[iVar10] == 0" (subscript_expression "(&dollar_vars)[iVar10]" (parenthesized_expression "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) )) [ identifier ]) == number_literal) )) (goto_statement "goto LAB_000ae9f0;" goto statement_identifier ;)) }) while (parenthesized_expression "(iVar4 != 10)" ( (binary_expression "iVar4 != 10" identifier != number_literal) )) ;) (expression_statement "iVar10 = iVar10 + 2;" (assignment_expression "iVar10 = iVar10 + 2" identifier = (binary_expression "iVar10 + 2" identifier + number_literal)) ;) (for_statement "for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }" for ( (assignment_expression "puVar6 = (undefined4 *)*rest_of_args" identifier = (cast_expression "(undefined4 *)*rest_of_args" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*rest_of_args" * identifier))) ; (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar6 = (undefined4 *)*puVar6" identifier = (cast_expression "(undefined4 *)*puVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) ) (compound_statement "{\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }" { (labeled_statement "LAB_000ae9f0:\n              iVar4 = iVar10;" statement_identifier : (expression_statement "iVar4 = iVar10;" (assignment_expression "iVar4 = iVar10" identifier = identifier) ;)) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "__ptr_00 = (int *)strvec_create(iVar4 + 2);" (assignment_expression "__ptr_00 = (int *)strvec_create(iVar4 + 2)" identifier = (cast_expression "(int *)strvec_create(iVar4 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strvec_create(iVar4 + 2)" identifier (argument_list "(iVar4 + 2)" ( (binary_expression "iVar4 + 2" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = __ptr_00;" (assignment_expression "piVar5 = __ptr_00" identifier = identifier) ;) (do_statement "do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);" do (compound_statement "{\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            }" { (expression_statement "piVar1 = &dollar_vars + iVar10;" (assignment_expression "piVar1 = &dollar_vars + iVar10" identifier = (binary_expression "&dollar_vars + iVar10" (pointer_expression "&dollar_vars" & identifier) + identifier)) ;) (if_statement "if (*piVar1 == 0) goto LAB_000aea2a;" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (goto_statement "goto LAB_000aea2a;" goto statement_identifier ;)) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "*piVar5 = *piVar1;" (assignment_expression "*piVar5 = *piVar1" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != 10)" ( (binary_expression "iVar10 != 10" identifier != number_literal) )) ;) (expression_statement "piVar5 = __ptr_00 + 10;" (assignment_expression "piVar5 = __ptr_00 + 10" identifier = (binary_expression "__ptr_00 + 10" identifier + number_literal)) ;) (labeled_statement "LAB_000aea2a:\n            puVar6 = rest_of_args;" statement_identifier : (expression_statement "puVar6 = rest_of_args;" (assignment_expression "puVar6 = rest_of_args" identifier = identifier) ;)) (if_statement "if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }" if (parenthesized_expression "(rest_of_args != (undefined4 *)0x0)" ( (binary_expression "rest_of_args != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }" { (do_statement "do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);" do (compound_statement "{\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              }" { (expression_statement "puVar3 = (undefined4 *)*puVar6;" (assignment_expression "puVar3 = (undefined4 *)*puVar6" identifier = (cast_expression "(undefined4 *)*puVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "__ptr_00[iVar10] = *(int *)puVar6[1];" (assignment_expression "__ptr_00[iVar10] = *(int *)puVar6[1]" (subscript_expression "__ptr_00[iVar10]" identifier [ identifier ]) = (pointer_expression "*(int *)puVar6[1]" * (cast_expression "(int *)puVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ])))) ;) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar5 = __ptr_00 + iVar10;" (assignment_expression "piVar5 = __ptr_00 + iVar10" identifier = (binary_expression "__ptr_00 + iVar10" identifier + identifier)) ;) })) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "sh_getopt_restore_state(__ptr_00);" (call_expression "sh_getopt_restore_state(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50)" identifier = (cast_expression "(char *)sh_getopt(iVar10,__ptr_00,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(iVar10,__ptr_00,local_50)" identifier (argument_list "(iVar10,__ptr_00,local_50)" ( identifier , identifier , identifier ))))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }))) }) (else_clause "else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" else (compound_statement "{\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" { (expression_statement "sh_getopt_restore_state((int)__ptr + 8);" (call_expression "sh_getopt_restore_state((int)__ptr + 8)" identifier (argument_list "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ;) (expression_statement "uVar9 = *(undefined4 *)((int)__ptr + 8);" (assignment_expression "uVar9 = *(undefined4 *)((int)__ptr + 8)" identifier = (pointer_expression "*(undefined4 *)((int)__ptr + 8)" * (cast_expression "(undefined4 *)((int)__ptr + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)__ptr + 8) = dollar_vars;" (assignment_expression "*(undefined4 *)((int)__ptr + 8) = dollar_vars" (pointer_expression "*(undefined4 *)((int)__ptr + 8)" * (cast_expression "(undefined4 *)((int)__ptr + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" identifier = (cast_expression "(char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" identifier (argument_list "(local_38 + -2,(int)__ptr + 8,local_50)" ( (binary_expression "local_38 + -2" identifier + number_literal) , (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))))) ;) (expression_statement "*(undefined4 *)((int)__ptr + 8) = uVar9;" (assignment_expression "*(undefined4 *)((int)__ptr + 8) = uVar9" (pointer_expression "*(undefined4 *)((int)__ptr + 8)" * (cast_expression "(undefined4 *)((int)__ptr + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) }))) (if_statement "if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          sh_opterr = local_40;\n        }" { (expression_statement "sh_opterr = local_40;" (assignment_expression "sh_opterr = local_40" identifier = identifier) ;) })) (if_statement "if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" if (parenthesized_expression "((int)sh_optind < 10)" ( (binary_expression "(int)sh_optind < 10" (cast_expression "(int)sh_optind" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }" { (expression_statement "local_22 = (char)sh_optind + '0';" (assignment_expression "local_22 = (char)sh_optind + '0'" identifier = (binary_expression "(char)sh_optind + '0'" (cast_expression "(char)sh_optind" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) (expression_statement "iVar10 = 0xe;" (assignment_expression "iVar10 = 0xe" identifier = number_literal) ;) }) (else_clause "else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" else (compound_statement "{\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" { (expression_statement "uVar7 = sh_optind;" (assignment_expression "uVar7 = sh_optind" identifier = identifier) ;) (expression_statement "iVar4 = 0xf;" (assignment_expression "iVar4 = 0xf" identifier = number_literal) ;) (do_statement "do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);" do (compound_statement "{\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          }" { (expression_statement "iVar10 = iVar4 + -1;" (assignment_expression "iVar10 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar7 / 10;" (assignment_expression "uVar8 = uVar7 / 10" identifier = (binary_expression "uVar7 / 10" identifier / number_literal)) ;) (expression_statement "local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';" (assignment_expression "local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0'" (subscript_expression "local_31[iVar4]" identifier [ identifier ]) = (binary_expression "(char)uVar7 + (char)uVar8 * -10 + '0'" (binary_expression "(char)uVar7 + (char)uVar8 * -10" (cast_expression "(char)uVar7" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar8 * -10" (cast_expression "(char)uVar8" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" identifier = identifier) ;) (expression_statement "iVar4 = iVar10;" (assignment_expression "iVar4 = iVar10" identifier = identifier) ;) }) while (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) ;) }))) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) (expression_statement "bind_variable("OPTIND",local_31 + iVar10 + 1,0);" (call_expression "bind_variable("OPTIND",local_31 + iVar10 + 1,0)" identifier (argument_list "("OPTIND",local_31 + iVar10 + 1,0)" ( (string_literal ""OPTIND"" " string_content ") , (binary_expression "local_31 + iVar10 + 1" (binary_expression "local_31 + iVar10" identifier + identifier) + number_literal) , number_literal ))) ;) (if_statement "if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" if (parenthesized_expression "(local_50 == (char *)0x3f)" ( (binary_expression "local_50 == (char *)0x3f" identifier == (cast_expression "(char *)0x3f" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }" { (if_statement "if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" if (parenthesized_expression "(sh_optarg == (char *)0x0)" ( (binary_expression "sh_optarg == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }" { (labeled_statement "LAB_000aec80:\n            uVar9 = FUN_000ae830();" statement_identifier : (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }" { (labeled_statement "LAB_000aec98:\n              local_31[0] = '\0';" statement_identifier : (expression_statement "local_31[0] = '\0';" (assignment_expression "local_31[0] = '\0'" (subscript_expression "local_31[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "local_32 = (undefined1)sh_optopt;" (assignment_expression "local_32 = (undefined1)sh_optopt" identifier = (cast_expression "(undefined1)sh_optopt" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "bind_variable("OPTARG",&local_32,0);" (call_expression "bind_variable("OPTARG",&local_32,0)" identifier (argument_list "("OPTARG",&local_32,0)" ( (string_literal ""OPTARG"" " string_content ") , (pointer_expression "&local_32" & identifier) , number_literal ))) ;) (goto_statement "goto LAB_000aeb2e;" goto statement_identifier ;) })) }) (else_clause "else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" else (compound_statement "{\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" { (if_statement "if (*sh_optarg != '\0') goto LAB_000aeafc;" if (parenthesized_expression "(*sh_optarg != '\0')" ( (binary_expression "*sh_optarg != '\0'" (pointer_expression "*sh_optarg" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aeafc;" goto statement_identifier ;)) (labeled_statement "LAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" statement_identifier : (if_statement "if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" { (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000aec98;" goto statement_identifier ;) }))) (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" identifier (argument_list "("OPTARG")" ( (string_literal ""OPTARG"" " string_content ") ))) ;) }) (else_clause "else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" else (if_statement "if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" if (parenthesized_expression "(local_50 == (char *)0xffffffff)" ( (binary_expression "local_50 == (char *)0xffffffff" identifier == (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }" { (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" identifier (argument_list "("OPTARG")" ( (string_literal ""OPTARG"" " string_content ") ))) ;) (expression_statement "FUN_000ae830();" (call_expression "FUN_000ae830()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" else (compound_statement "{\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" { (if_statement "if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;" if (parenthesized_expression "(local_50 == (char *)0xfffffffe)" ( (binary_expression "local_50 == (char *)0xfffffffe" identifier == (cast_expression "(char *)0xfffffffe" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aec80;" goto statement_identifier ;)) (if_statement "if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;" if (parenthesized_expression "(local_50 == (char *)0xfffffffd)" ( (binary_expression "local_50 == (char *)0xfffffffd" identifier == (cast_expression "(char *)0xfffffffd" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aec3d;" goto statement_identifier ;)) (labeled_statement "LAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);" statement_identifier : (expression_statement "bind_variable("OPTARG",sh_optarg,0);" (call_expression "bind_variable("OPTARG",sh_optarg,0)" identifier (argument_list "("OPTARG",sh_optarg,0)" ( (string_literal ""OPTARG"" " string_content ") , identifier , number_literal ))) ;)) (expression_statement "local_31[0] = '\0';" (assignment_expression "local_31[0] = '\0'" (subscript_expression "local_31[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_32 = local_50._0_1_;" (assignment_expression "local_32 = local_50._0_1_" identifier = (field_expression "local_50._0_1_" identifier . field_identifier)) ;) (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;) }))))) }))) (labeled_statement "LAB_000aeb2e:\n      free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (goto_statement "goto LAB_000ae926;" goto statement_identifier ;) })) (if_statement "if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }" if (parenthesized_expression "(iVar4 == -99)" ( (binary_expression "iVar4 == -99" identifier == number_literal) )) (compound_statement "{\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }" { (expression_statement "builtin_help();" (call_expression "builtin_help()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" identifier = number_literal) ;) (goto_statement "goto LAB_000ae926;" goto statement_identifier ;) })) })) (expression_statement "builtin_usage();" (call_expression "builtin_usage()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" identifier = number_literal) ;) (labeled_statement "LAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar9;\n  }" { (return_statement "return uVar9;" return identifier ;) }))) comment (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint getopts_builtin(WORD_LIST *list)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  char *name;\n  word_list *pwVar4;\n  char *pcVar5;\n  int iVar6;\n  char **__ptr;\n  char **argv;\n  char **ppcVar7;\n  word_list *pwVar8;\n  uint uVar9;\n  uint uVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  char *local_50;\n  int local_40;\n  int ac;\n  char strval [2];\n  char numval [16];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (list != (WORD_LIST *)0x0) {\n    reset_internal_getopt();\n    iVar6 = internal_getopt(list,"");\n    if (iVar6 == -1) {\n      __ptr = make_builtin_argv(loptend,&ac);\n      if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar6 == -99) {\n      builtin_help();\n      iVar6 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  iVar6 = 0x102;\nLAB_000ae926:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int getopts_builtin(WORD_LIST *list)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  char *name;\n  word_list *pwVar4;\n  char *pcVar5;\n  int iVar6;\n  char **__ptr;\n  char **argv;\n  char **ppcVar7;\n  word_list *pwVar8;\n  uint uVar9;\n  uint uVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  char *local_50;\n  int local_40;\n  int ac;\n  char strval [2];\n  char numval [16];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (list != (WORD_LIST *)0x0) {\n    reset_internal_getopt();\n    iVar6 = internal_getopt(list,"");\n    if (iVar6 == -1) {\n      __ptr = make_builtin_argv(loptend,&ac);\n      if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar6 == -99) {\n      builtin_help();\n      iVar6 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  iVar6 = 0x102;\nLAB_000ae926:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "getopts_builtin(WORD_LIST *list)" identifier (parameter_list "(WORD_LIST *list)" ( (parameter_declaration "WORD_LIST *list" type_identifier (pointer_declarator "*list" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  char *name;\n  word_list *pwVar4;\n  char *pcVar5;\n  int iVar6;\n  char **__ptr;\n  char **argv;\n  char **ppcVar7;\n  word_list *pwVar8;\n  uint uVar9;\n  uint uVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  char *local_50;\n  int local_40;\n  int ac;\n  char strval [2];\n  char numval [16];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (list != (WORD_LIST *)0x0) {\n    reset_internal_getopt();\n    iVar6 = internal_getopt(list,"");\n    if (iVar6 == -1) {\n      __ptr = make_builtin_argv(loptend,&ac);\n      if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar6 == -99) {\n      builtin_help();\n      iVar6 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  iVar6 = 0x102;\nLAB_000ae926:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "word_list *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char **__ptr;" primitive_type (pointer_declarator "**__ptr" * (pointer_declarator "*__ptr" * identifier)) ;) (declaration "char **argv;" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier)) ;) (declaration "char **ppcVar7;" primitive_type (pointer_declarator "**ppcVar7" * (pointer_declarator "*ppcVar7" * identifier)) ;) (declaration "word_list *pwVar8;" type_identifier (pointer_declarator "*pwVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_50;" primitive_type (pointer_declarator "*local_50" * identifier) ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int ac;" primitive_type identifier ;) (declaration "char strval [2];" primitive_type (array_declarator "strval [2]" identifier [ number_literal ]) ;) (declaration "char numval [16];" primitive_type (array_declarator "numval [16]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (list != (WORD_LIST *)0x0) {\n    reset_internal_getopt();\n    iVar6 = internal_getopt(list,"");\n    if (iVar6 == -1) {\n      __ptr = make_builtin_argv(loptend,&ac);\n      if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar6 == -99) {\n      builtin_help();\n      iVar6 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" if (parenthesized_expression "(list != (WORD_LIST *)0x0)" ( (binary_expression "list != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    reset_internal_getopt();\n    iVar6 = internal_getopt(list,"");\n    if (iVar6 == -1) {\n      __ptr = make_builtin_argv(loptend,&ac);\n      if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar6 == -99) {\n      builtin_help();\n      iVar6 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" { (expression_statement "reset_internal_getopt();" (call_expression "reset_internal_getopt()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = internal_getopt(list,"");" (assignment_expression "iVar6 = internal_getopt(list,"")" identifier = (call_expression "internal_getopt(list,"")" identifier (argument_list "(list,"")" ( identifier , (string_literal """" " ") )))) ;) (if_statement "if (iVar6 == -1) {\n      __ptr = make_builtin_argv(loptend,&ac);\n      if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (compound_statement "{\n      __ptr = make_builtin_argv(loptend,&ac);\n      if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" { (expression_statement "__ptr = make_builtin_argv(loptend,&ac);" (assignment_expression "__ptr = make_builtin_argv(loptend,&ac)" identifier = (call_expression "make_builtin_argv(loptend,&ac)" identifier (argument_list "(loptend,&ac)" ( identifier , (pointer_expression "&ac" & identifier) )))) ;) (if_statement "if (ac < 3) {\n        builtin_usage();\n        iVar6 = 0x102;\n      }\n      else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }" if (parenthesized_expression "(ac < 3)" ( (binary_expression "ac < 3" identifier < number_literal) )) (compound_statement "{\n        builtin_usage();\n        iVar6 = 0x102;\n      }" { (expression_statement "builtin_usage();" (call_expression "builtin_usage()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = 0x102;" (assignment_expression "iVar6 = 0x102" identifier = number_literal) ;) }) (else_clause "else {\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }" else (compound_statement "{\n        local_50 = __ptr[1];\n        name = __ptr[2];\n        cVar3 = *local_50;\n        if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }\n        if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }\n        if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }\n        numval[0xf] = '\0';\n        bind_variable("OPTIND",numval + iVar11,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }\n      }" { (expression_statement "local_50 = __ptr[1];" (assignment_expression "local_50 = __ptr[1]" identifier = (subscript_expression "__ptr[1]" identifier [ number_literal ])) ;) (expression_statement "name = __ptr[2];" (assignment_expression "name = __ptr[2]" identifier = (subscript_expression "__ptr[2]" identifier [ number_literal ])) ;) (expression_statement "cVar3 = *local_50;" (assignment_expression "cVar3 = *local_50" identifier = (pointer_expression "*local_50" * identifier)) ;) (if_statement "if (cVar3 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" if (parenthesized_expression "(cVar3 == ':')" ( (binary_expression "cVar3 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" { (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" identifier = (binary_expression "local_50 + 1" identifier + number_literal)) ;) (expression_statement "local_40 = sh_opterr;" (assignment_expression "local_40 = sh_opterr" identifier = identifier) ;) (expression_statement "sh_opterr = 0;" (assignment_expression "sh_opterr = 0" identifier = number_literal) ;) })) (if_statement "if (ac + -2 == 1) {\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }\n        else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }" if (parenthesized_expression "(ac + -2 == 1)" ( (binary_expression "ac + -2 == 1" (binary_expression "ac + -2" identifier + number_literal) == number_literal) )) (compound_statement "{\n          if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }\n        }" { (if_statement "if (rest_of_args == (WORD_LIST *)0x0) {\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }\n          else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }" if (parenthesized_expression "(rest_of_args == (WORD_LIST *)0x0)" ( (binary_expression "rest_of_args == (WORD_LIST *)0x0" identifier == (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar6 = 0;\n            do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            } while (iVar6 != 10);" do (compound_statement "{\n              if ((&dollar_vars)[iVar6] == (char *)0x0) break;\n              iVar6 = iVar6 + 1;\n            }" { (if_statement "if ((&dollar_vars)[iVar6] == (char *)0x0) break;" if (parenthesized_expression "((&dollar_vars)[iVar6] == (char *)0x0)" ( (binary_expression "(&dollar_vars)[iVar6] == (char *)0x0" (subscript_expression "(&dollar_vars)[iVar6]" (parenthesized_expression "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) )) [ identifier ]) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 10)" ( (binary_expression "iVar6 != 10" identifier != number_literal) )) ;) (expression_statement "sh_getopt_restore_state(&dollar_vars);" (call_expression "sh_getopt_restore_state(&dollar_vars)" identifier (argument_list "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) ))) ;) (expression_statement "local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar6,&dollar_vars,local_50)" identifier = (cast_expression "(char *)sh_getopt(iVar6,&dollar_vars,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(iVar6,&dollar_vars,local_50)" identifier (argument_list "(iVar6,&dollar_vars,local_50)" ( identifier , (pointer_expression "&dollar_vars" & identifier) , identifier ))))) ;) }) (else_clause "else {\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }" else (compound_statement "{\n            iVar6 = 0;\n            do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);\n            iVar11 = iVar11 + 2;\n            for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }\n            iVar11 = 0;\n            argv = strvec_create(iVar6 + 2);\n            ppcVar7 = argv;\n            do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);\n            ppcVar7 = argv + 10;\nLAB_000aea2a:\n            pwVar8 = rest_of_args;\n            if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }\n            *ppcVar7 = (char *)0x0;\n            sh_getopt_restore_state(argv);\n            local_50 = (char *)sh_getopt(iVar11,argv,local_50);\n            free(argv);\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            } while (iVar6 != 10);" do (compound_statement "{\n              iVar11 = iVar6;\n              iVar6 = iVar11 + 1;\n              pwVar8 = rest_of_args;\n              if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;\n            }" { (expression_statement "iVar11 = iVar6;" (assignment_expression "iVar11 = iVar6" identifier = identifier) ;) (expression_statement "iVar6 = iVar11 + 1;" (assignment_expression "iVar6 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "pwVar8 = rest_of_args;" (assignment_expression "pwVar8 = rest_of_args" identifier = identifier) ;) (if_statement "if ((&dollar_vars)[iVar11] == (char *)0x0) goto LAB_000ae9f0;" if (parenthesized_expression "((&dollar_vars)[iVar11] == (char *)0x0)" ( (binary_expression "(&dollar_vars)[iVar11] == (char *)0x0" (subscript_expression "(&dollar_vars)[iVar11]" (parenthesized_expression "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) )) [ identifier ]) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000ae9f0;" goto statement_identifier ;)) }) while (parenthesized_expression "(iVar6 != 10)" ( (binary_expression "iVar6 != 10" identifier != number_literal) )) ;) (expression_statement "iVar11 = iVar11 + 2;" (assignment_expression "iVar11 = iVar11 + 2" identifier = (binary_expression "iVar11 + 2" identifier + number_literal)) ;) (for_statement "for (pwVar8 = rest_of_args->next; pwVar8 != (word_list *)0x0; pwVar8 = pwVar8->next) {\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }" for ( (assignment_expression "pwVar8 = rest_of_args->next" identifier = (field_expression "rest_of_args->next" identifier -> field_identifier)) ; (binary_expression "pwVar8 != (word_list *)0x0" identifier != (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pwVar8 = pwVar8->next" identifier = (field_expression "pwVar8->next" identifier -> field_identifier)) ) (compound_statement "{\nLAB_000ae9f0:\n              iVar6 = iVar11;\n              iVar11 = iVar11 + 1;\n            }" { (labeled_statement "LAB_000ae9f0:\n              iVar6 = iVar11;" statement_identifier : (expression_statement "iVar6 = iVar11;" (assignment_expression "iVar6 = iVar11" identifier = identifier) ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "argv = strvec_create(iVar6 + 2);" (assignment_expression "argv = strvec_create(iVar6 + 2)" identifier = (call_expression "strvec_create(iVar6 + 2)" identifier (argument_list "(iVar6 + 2)" ( (binary_expression "iVar6 + 2" identifier + number_literal) )))) ;) (expression_statement "ppcVar7 = argv;" (assignment_expression "ppcVar7 = argv" identifier = identifier) ;) (do_statement "do {\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            } while (iVar11 != 10);" do (compound_statement "{\n              piVar1 = (int *)(&dollar_vars + iVar11);\n              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;\n              iVar11 = iVar11 + 1;\n              *ppcVar7 = (char *)*piVar1;\n              ppcVar7 = ppcVar7 + 1;\n            }" { (expression_statement "piVar1 = (int *)(&dollar_vars + iVar11);" (assignment_expression "piVar1 = (int *)(&dollar_vars + iVar11)" identifier = (cast_expression "(int *)(&dollar_vars + iVar11)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&dollar_vars + iVar11)" ( (binary_expression "&dollar_vars + iVar11" (pointer_expression "&dollar_vars" & identifier) + identifier) )))) ;) (if_statement "if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;" if (parenthesized_expression "((char *)*piVar1 == (char *)0x0)" ( (binary_expression "(char *)*piVar1 == (char *)0x0" (cast_expression "(char *)*piVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aea2a;" goto statement_identifier ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "*ppcVar7 = (char *)*piVar1;" (assignment_expression "*ppcVar7 = (char *)*piVar1" (pointer_expression "*ppcVar7" * identifier) = (cast_expression "(char *)*piVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "ppcVar7 = ppcVar7 + 1;" (assignment_expression "ppcVar7 = ppcVar7 + 1" identifier = (binary_expression "ppcVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar11 != 10)" ( (binary_expression "iVar11 != 10" identifier != number_literal) )) ;) (expression_statement "ppcVar7 = argv + 10;" (assignment_expression "ppcVar7 = argv + 10" identifier = (binary_expression "argv + 10" identifier + number_literal)) ;) (labeled_statement "LAB_000aea2a:\n            pwVar8 = rest_of_args;" statement_identifier : (expression_statement "pwVar8 = rest_of_args;" (assignment_expression "pwVar8 = rest_of_args" identifier = identifier) ;)) (if_statement "if (rest_of_args != (WORD_LIST *)0x0) {\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }" if (parenthesized_expression "(rest_of_args != (WORD_LIST *)0x0)" ( (binary_expression "rest_of_args != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);\n              ppcVar7 = argv + iVar11;\n            }" { (do_statement "do {\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              } while (pwVar4 != (word_list *)0x0);" do (compound_statement "{\n                pwVar4 = pwVar8->next;\n                argv[iVar11] = pwVar8->word->word;\n                iVar11 = iVar11 + 1;\n                pwVar8 = pwVar4;\n              }" { (expression_statement "pwVar4 = pwVar8->next;" (assignment_expression "pwVar4 = pwVar8->next" identifier = (field_expression "pwVar8->next" identifier -> field_identifier)) ;) (expression_statement "argv[iVar11] = pwVar8->word->word;" (assignment_expression "argv[iVar11] = pwVar8->word->word" (subscript_expression "argv[iVar11]" identifier [ identifier ]) = (field_expression "pwVar8->word->word" (field_expression "pwVar8->word" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "pwVar8 = pwVar4;" (assignment_expression "pwVar8 = pwVar4" identifier = identifier) ;) }) while (parenthesized_expression "(pwVar4 != (word_list *)0x0)" ( (binary_expression "pwVar4 != (word_list *)0x0" identifier != (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "ppcVar7 = argv + iVar11;" (assignment_expression "ppcVar7 = argv + iVar11" identifier = (binary_expression "argv + iVar11" identifier + identifier)) ;) })) (expression_statement "*ppcVar7 = (char *)0x0;" (assignment_expression "*ppcVar7 = (char *)0x0" (pointer_expression "*ppcVar7" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sh_getopt_restore_state(argv);" (call_expression "sh_getopt_restore_state(argv)" identifier (argument_list "(argv)" ( identifier ))) ;) (expression_statement "local_50 = (char *)sh_getopt(iVar11,argv,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar11,argv,local_50)" identifier = (cast_expression "(char *)sh_getopt(iVar11,argv,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(iVar11,argv,local_50)" identifier (argument_list "(iVar11,argv,local_50)" ( identifier , identifier , identifier ))))) ;) (expression_statement "free(argv);" (call_expression "free(argv)" identifier (argument_list "(argv)" ( identifier ))) ;) }))) }) (else_clause "else {\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }" else (compound_statement "{\n          sh_getopt_restore_state(__ptr + 2);\n          pcVar5 = __ptr[2];\n          __ptr[2] = dollar_vars;\n          local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);\n          __ptr[2] = pcVar5;\n        }" { (expression_statement "sh_getopt_restore_state(__ptr + 2);" (call_expression "sh_getopt_restore_state(__ptr + 2)" identifier (argument_list "(__ptr + 2)" ( (binary_expression "__ptr + 2" identifier + number_literal) ))) ;) (expression_statement "pcVar5 = __ptr[2];" (assignment_expression "pcVar5 = __ptr[2]" identifier = (subscript_expression "__ptr[2]" identifier [ number_literal ])) ;) (expression_statement "__ptr[2] = dollar_vars;" (assignment_expression "__ptr[2] = dollar_vars" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(ac + -2,__ptr + 2,local_50)" identifier = (cast_expression "(char *)sh_getopt(ac + -2,__ptr + 2,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(ac + -2,__ptr + 2,local_50)" identifier (argument_list "(ac + -2,__ptr + 2,local_50)" ( (binary_expression "ac + -2" identifier + number_literal) , (binary_expression "__ptr + 2" identifier + number_literal) , identifier ))))) ;) (expression_statement "__ptr[2] = pcVar5;" (assignment_expression "__ptr[2] = pcVar5" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (cVar3 == ':') {\n          sh_opterr = local_40;\n        }" if (parenthesized_expression "(cVar3 == ':')" ( (binary_expression "cVar3 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          sh_opterr = local_40;\n        }" { (expression_statement "sh_opterr = local_40;" (assignment_expression "sh_opterr = local_40" identifier = identifier) ;) })) (if_statement "if (sh_optind < 10) {\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }\n        else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }" if (parenthesized_expression "(sh_optind < 10)" ( (binary_expression "sh_optind < 10" identifier < number_literal) )) (compound_statement "{\n          numval[0xe] = (char)sh_optind + '0';\n          iVar11 = 0xe;\n        }" { (expression_statement "numval[0xe] = (char)sh_optind + '0';" (assignment_expression "numval[0xe] = (char)sh_optind + '0'" (subscript_expression "numval[0xe]" identifier [ number_literal ]) = (binary_expression "(char)sh_optind + '0'" (cast_expression "(char)sh_optind" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) (expression_statement "iVar11 = 0xe;" (assignment_expression "iVar11 = 0xe" identifier = number_literal) ;) }) (else_clause "else {\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }" else (compound_statement "{\n          uVar9 = sh_optind;\n          iVar6 = 0xf;\n          do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);\n        }" { (expression_statement "uVar9 = sh_optind;" (assignment_expression "uVar9 = sh_optind" identifier = identifier) ;) (expression_statement "iVar6 = 0xf;" (assignment_expression "iVar6 = 0xf" identifier = number_literal) ;) (do_statement "do {\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          } while (uVar10 != 0);" do (compound_statement "{\n            iVar11 = iVar6 + -1;\n            uVar10 = uVar9 / 10;\n            strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';\n            uVar9 = uVar10;\n            iVar6 = iVar11;\n          }" { (expression_statement "iVar11 = iVar6 + -1;" (assignment_expression "iVar11 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "uVar10 = uVar9 / 10;" (assignment_expression "uVar10 = uVar9 / 10" identifier = (binary_expression "uVar9 / 10" identifier / number_literal)) ;) (expression_statement "strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0';" (assignment_expression "strval[iVar6 + 1] = (char)uVar9 + (char)uVar10 * -10 + '0'" (subscript_expression "strval[iVar6 + 1]" identifier [ (binary_expression "iVar6 + 1" identifier + number_literal) ]) = (binary_expression "(char)uVar9 + (char)uVar10 * -10 + '0'" (binary_expression "(char)uVar9 + (char)uVar10 * -10" (cast_expression "(char)uVar9" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar10 * -10" (cast_expression "(char)uVar10" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar9 = uVar10;" (assignment_expression "uVar9 = uVar10" identifier = identifier) ;) (expression_statement "iVar6 = iVar11;" (assignment_expression "iVar6 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) ;) }))) (expression_statement "numval[0xf] = '\0';" (assignment_expression "numval[0xf] = '\0'" (subscript_expression "numval[0xf]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bind_variable("OPTIND",numval + iVar11,0);" (call_expression "bind_variable("OPTIND",numval + iVar11,0)" identifier (argument_list "("OPTIND",numval + iVar11,0)" ( (string_literal ""OPTIND"" " string_content ") , (binary_expression "numval + iVar11" identifier + identifier) , number_literal ))) ;) (if_statement "if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }" if (parenthesized_expression "(local_50 == (char *)0x3f)" ( (binary_expression "local_50 == (char *)0x3f" identifier == (cast_expression "(char *)0x3f" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }\n          unbind_variable_noref("OPTARG");\n        }" { (if_statement "if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }" if (parenthesized_expression "(sh_optarg == (char *)0x0)" ( (binary_expression "sh_optarg == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");\n            if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }\n          }" { (labeled_statement "LAB_000aec80:\n            iVar6 = getopts_bind_variable(name,"?");" statement_identifier : (expression_statement "iVar6 = getopts_bind_variable(name,"?");" (assignment_expression "iVar6 = getopts_bind_variable(name,"?")" identifier = (call_expression "getopts_bind_variable(name,"?")" identifier (argument_list "(name,"?")" ( identifier , (string_literal ""?"" " string_content ") )))) ;)) (if_statement "if (cVar3 == ':') {\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }" if (parenthesized_expression "(cVar3 == ':')" ( (binary_expression "cVar3 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\nLAB_000aec98:\n              strval[1] = '\0';\n              strval[0] = (char)sh_optopt;\n              bind_variable("OPTARG",strval,0);\n              goto LAB_000aeb2e;\n            }" { (labeled_statement "LAB_000aec98:\n              strval[1] = '\0';" statement_identifier : (expression_statement "strval[1] = '\0';" (assignment_expression "strval[1] = '\0'" (subscript_expression "strval[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "strval[0] = (char)sh_optopt;" (assignment_expression "strval[0] = (char)sh_optopt" (subscript_expression "strval[0]" identifier [ number_literal ]) = (cast_expression "(char)sh_optopt" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "bind_variable("OPTARG",strval,0);" (call_expression "bind_variable("OPTARG",strval,0)" identifier (argument_list "("OPTARG",strval,0)" ( (string_literal ""OPTARG"" " string_content ") , identifier , number_literal ))) ;) (goto_statement "goto LAB_000aeb2e;" goto statement_identifier ;) })) }) (else_clause "else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }" else (compound_statement "{\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }\n            iVar6 = getopts_bind_variable(name,"?");\n          }" { (if_statement "if (*sh_optarg != '\0') goto LAB_000aeafc;" if (parenthesized_expression "(*sh_optarg != '\0')" ( (binary_expression "*sh_optarg != '\0'" (pointer_expression "*sh_optarg" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aeafc;" goto statement_identifier ;)) (labeled_statement "LAB_000aec3d:\n            if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }" statement_identifier : (if_statement "if (cVar3 == ':') {\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }" if (parenthesized_expression "(cVar3 == ':')" ( (binary_expression "cVar3 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n              iVar6 = getopts_bind_variable(name,":");\n              goto LAB_000aec98;\n            }" { (expression_statement "iVar6 = getopts_bind_variable(name,":");" (assignment_expression "iVar6 = getopts_bind_variable(name,":")" identifier = (call_expression "getopts_bind_variable(name,":")" identifier (argument_list "(name,":")" ( identifier , (string_literal "":"" " string_content ") )))) ;) (goto_statement "goto LAB_000aec98;" goto statement_identifier ;) }))) (expression_statement "iVar6 = getopts_bind_variable(name,"?");" (assignment_expression "iVar6 = getopts_bind_variable(name,"?")" identifier = (call_expression "getopts_bind_variable(name,"?")" identifier (argument_list "(name,"?")" ( identifier , (string_literal ""?"" " string_content ") )))) ;) }))) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" identifier (argument_list "("OPTARG")" ( (string_literal ""OPTARG"" " string_content ") ))) ;) }) (else_clause "else if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }" else (if_statement "if (local_50 == (char *)0xffffffff) {\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }" if (parenthesized_expression "(local_50 == (char *)0xffffffff)" ( (binary_expression "local_50 == (char *)0xffffffff" identifier == (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar6 = 1;\n          unbind_variable_noref("OPTARG");\n          getopts_bind_variable(name,"?");\n        }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" identifier (argument_list "("OPTARG")" ( (string_literal ""OPTARG"" " string_content ") ))) ;) (expression_statement "getopts_bind_variable(name,"?");" (call_expression "getopts_bind_variable(name,"?")" identifier (argument_list "(name,"?")" ( identifier , (string_literal ""?"" " string_content ") ))) ;) }) (else_clause "else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }" else (compound_statement "{\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          strval[1] = '\0';\n          strval[0] = (char)local_50;\n          iVar6 = getopts_bind_variable(name,strval);\n        }" { (if_statement "if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;" if (parenthesized_expression "(local_50 == (char *)0xfffffffe)" ( (binary_expression "local_50 == (char *)0xfffffffe" identifier == (cast_expression "(char *)0xfffffffe" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aec80;" goto statement_identifier ;)) (if_statement "if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;" if (parenthesized_expression "(local_50 == (char *)0xfffffffd)" ( (binary_expression "local_50 == (char *)0xfffffffd" identifier == (cast_expression "(char *)0xfffffffd" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aec3d;" goto statement_identifier ;)) (labeled_statement "LAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);" statement_identifier : (expression_statement "bind_variable("OPTARG",sh_optarg,0);" (call_expression "bind_variable("OPTARG",sh_optarg,0)" identifier (argument_list "("OPTARG",sh_optarg,0)" ( (string_literal ""OPTARG"" " string_content ") , identifier , number_literal ))) ;)) (expression_statement "strval[1] = '\0';" (assignment_expression "strval[1] = '\0'" (subscript_expression "strval[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "strval[0] = (char)local_50;" (assignment_expression "strval[0] = (char)local_50" (subscript_expression "strval[0]" identifier [ number_literal ]) = (cast_expression "(char)local_50" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar6 = getopts_bind_variable(name,strval);" (assignment_expression "iVar6 = getopts_bind_variable(name,strval)" identifier = (call_expression "getopts_bind_variable(name,strval)" identifier (argument_list "(name,strval)" ( identifier , identifier )))) ;) }))))) }))) (labeled_statement "LAB_000aeb2e:\n      free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (goto_statement "goto LAB_000ae926;" goto statement_identifier ;) })) (if_statement "if (iVar6 == -99) {\n      builtin_help();\n      iVar6 = 0x102;\n      goto LAB_000ae926;\n    }" if (parenthesized_expression "(iVar6 == -99)" ( (binary_expression "iVar6 == -99" identifier == number_literal) )) (compound_statement "{\n      builtin_help();\n      iVar6 = 0x102;\n      goto LAB_000ae926;\n    }" { (expression_statement "builtin_help();" (call_expression "builtin_help()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = 0x102;" (assignment_expression "iVar6 = 0x102" identifier = number_literal) ;) (goto_statement "goto LAB_000ae926;" goto statement_identifier ;) })) })) (expression_statement "builtin_usage();" (call_expression "builtin_usage()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar6 = 0x102;" (assignment_expression "iVar6 = 0x102" identifier = number_literal) ;) (labeled_statement "LAB_000ae926:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar6;\n  }" { (return_statement "return iVar6;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 getopts_builtin(int param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    \n  FUN_000ecc40();\n}\n\n" (function_definition "undefined4 getopts_builtin(int param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    \n  FUN_000ecc40();\n}" type_identifier (function_declarator "getopts_builtin(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    \n  FUN_000ecc40();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_50;" primitive_type (pointer_declarator "*local_50" * identifier) ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined1 local_32;" type_identifier identifier ;) (declaration "char local_31 [15];" primitive_type (array_declarator "local_31 [15]" identifier [ number_literal ]) ;) (declaration "char local_22;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xae8d9;" (assignment_expression "uStack_14 = 0xae8d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" { (expression_statement "reset_internal_getopt();" (call_expression "reset_internal_getopt()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = internal_getopt(param_1,&DAT_00106524);" (assignment_expression "iVar4 = internal_getopt(param_1,&DAT_00106524)" identifier = (call_expression "internal_getopt(param_1,&DAT_00106524)" identifier (argument_list "(param_1,&DAT_00106524)" ( identifier , (pointer_expression "&DAT_00106524" & identifier) )))) ;) (if_statement "if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" { (expression_statement "__ptr = (void *)make_builtin_argv(loptend,&local_38);" (assignment_expression "__ptr = (void *)make_builtin_argv(loptend,&local_38)" identifier = (cast_expression "(void *)make_builtin_argv(loptend,&local_38)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_builtin_argv(loptend,&local_38)" identifier (argument_list "(loptend,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) ))))) ;) (if_statement "if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" if (parenthesized_expression "(local_38 < 3)" ( (binary_expression "local_38 < 3" identifier < number_literal) )) (compound_statement "{\n        builtin_usage();\n        uVar9 = 0x102;\n      }" { (expression_statement "builtin_usage();" (call_expression "builtin_usage()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" identifier = number_literal) ;) }) (else_clause "else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" else (compound_statement "{\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" { (expression_statement "local_50 = *(char **)((int)__ptr + 4);" (assignment_expression "local_50 = *(char **)((int)__ptr + 4)" identifier = (pointer_expression "*(char **)((int)__ptr + 4)" * (cast_expression "(char **)((int)__ptr + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 4)" ( (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "cVar2 = *local_50;" (assignment_expression "cVar2 = *local_50" identifier = (pointer_expression "*local_50" * identifier)) ;) (if_statement "if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" { (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" identifier = (binary_expression "local_50 + 1" identifier + number_literal)) ;) (expression_statement "local_40 = sh_opterr;" (assignment_expression "local_40 = sh_opterr" identifier = identifier) ;) (expression_statement "sh_opterr = 0;" (assignment_expression "sh_opterr = 0" identifier = number_literal) ;) })) (if_statement "if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" if (parenthesized_expression "(local_38 + -2 == 1)" ( (binary_expression "local_38 + -2 == 1" (binary_expression "local_38 + -2" identifier + number_literal) == number_literal) )) (compound_statement "{\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }" { (if_statement "if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" if (parenthesized_expression "(rest_of_args == (undefined4 *)0x0)" ( (binary_expression "rest_of_args == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);" do (compound_statement "{\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            }" { (if_statement "if ((&dollar_vars)[iVar4] == 0) break;" if (parenthesized_expression "((&dollar_vars)[iVar4] == 0)" ( (binary_expression "(&dollar_vars)[iVar4] == 0" (subscript_expression "(&dollar_vars)[iVar4]" (parenthesized_expression "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) )) [ identifier ]) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 10)" ( (binary_expression "iVar4 != 10" identifier != number_literal) )) ;) (expression_statement "sh_getopt_restore_state(&dollar_vars);" (call_expression "sh_getopt_restore_state(&dollar_vars)" identifier (argument_list "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) ))) ;) (expression_statement "local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50)" identifier = (cast_expression "(char *)sh_getopt(iVar4,&dollar_vars,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(iVar4,&dollar_vars,local_50)" identifier (argument_list "(iVar4,&dollar_vars,local_50)" ( identifier , (pointer_expression "&dollar_vars" & identifier) , identifier ))))) ;) }) (else_clause "else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" else (compound_statement "{\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);" do (compound_statement "{\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            }" { (expression_statement "iVar10 = iVar4;" (assignment_expression "iVar10 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar10 + 1;" (assignment_expression "iVar4 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = rest_of_args;" (assignment_expression "puVar6 = rest_of_args" identifier = identifier) ;) (if_statement "if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;" if (parenthesized_expression "((&dollar_vars)[iVar10] == 0)" ( (binary_expression "(&dollar_vars)[iVar10] == 0" (subscript_expression "(&dollar_vars)[iVar10]" (parenthesized_expression "(&dollar_vars)" ( (pointer_expression "&dollar_vars" & identifier) )) [ identifier ]) == number_literal) )) (goto_statement "goto LAB_000ae9f0;" goto statement_identifier ;)) }) while (parenthesized_expression "(iVar4 != 10)" ( (binary_expression "iVar4 != 10" identifier != number_literal) )) ;) (expression_statement "iVar10 = iVar10 + 2;" (assignment_expression "iVar10 = iVar10 + 2" identifier = (binary_expression "iVar10 + 2" identifier + number_literal)) ;) (for_statement "for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }" for ( (assignment_expression "puVar6 = (undefined4 *)*rest_of_args" identifier = (cast_expression "(undefined4 *)*rest_of_args" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*rest_of_args" * identifier))) ; (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar6 = (undefined4 *)*puVar6" identifier = (cast_expression "(undefined4 *)*puVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) ) (compound_statement "{\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }" { (labeled_statement "LAB_000ae9f0:\n              iVar4 = iVar10;" statement_identifier : (expression_statement "iVar4 = iVar10;" (assignment_expression "iVar4 = iVar10" identifier = identifier) ;)) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "__ptr_00 = (int *)strvec_create(iVar4 + 2);" (assignment_expression "__ptr_00 = (int *)strvec_create(iVar4 + 2)" identifier = (cast_expression "(int *)strvec_create(iVar4 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strvec_create(iVar4 + 2)" identifier (argument_list "(iVar4 + 2)" ( (binary_expression "iVar4 + 2" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = __ptr_00;" (assignment_expression "piVar5 = __ptr_00" identifier = identifier) ;) (do_statement "do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);" do (compound_statement "{\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            }" { (expression_statement "piVar1 = &dollar_vars + iVar10;" (assignment_expression "piVar1 = &dollar_vars + iVar10" identifier = (binary_expression "&dollar_vars + iVar10" (pointer_expression "&dollar_vars" & identifier) + identifier)) ;) (if_statement "if (*piVar1 == 0) goto LAB_000aea2a;" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (goto_statement "goto LAB_000aea2a;" goto statement_identifier ;)) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "*piVar5 = *piVar1;" (assignment_expression "*piVar5 = *piVar1" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != 10)" ( (binary_expression "iVar10 != 10" identifier != number_literal) )) ;) (expression_statement "piVar5 = __ptr_00 + 10;" (assignment_expression "piVar5 = __ptr_00 + 10" identifier = (binary_expression "__ptr_00 + 10" identifier + number_literal)) ;) (labeled_statement "LAB_000aea2a:\n            puVar6 = rest_of_args;" statement_identifier : (expression_statement "puVar6 = rest_of_args;" (assignment_expression "puVar6 = rest_of_args" identifier = identifier) ;)) (if_statement "if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }" if (parenthesized_expression "(rest_of_args != (undefined4 *)0x0)" ( (binary_expression "rest_of_args != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }" { (do_statement "do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);" do (compound_statement "{\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              }" { (expression_statement "puVar3 = (undefined4 *)*puVar6;" (assignment_expression "puVar3 = (undefined4 *)*puVar6" identifier = (cast_expression "(undefined4 *)*puVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "__ptr_00[iVar10] = *(int *)puVar6[1];" (assignment_expression "__ptr_00[iVar10] = *(int *)puVar6[1]" (subscript_expression "__ptr_00[iVar10]" identifier [ identifier ]) = (pointer_expression "*(int *)puVar6[1]" * (cast_expression "(int *)puVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ])))) ;) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar5 = __ptr_00 + iVar10;" (assignment_expression "piVar5 = __ptr_00 + iVar10" identifier = (binary_expression "__ptr_00 + iVar10" identifier + identifier)) ;) })) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "sh_getopt_restore_state(__ptr_00);" (call_expression "sh_getopt_restore_state(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50)" identifier = (cast_expression "(char *)sh_getopt(iVar10,__ptr_00,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(iVar10,__ptr_00,local_50)" identifier (argument_list "(iVar10,__ptr_00,local_50)" ( identifier , identifier , identifier ))))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }))) }) (else_clause "else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" else (compound_statement "{\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" { (expression_statement "sh_getopt_restore_state((int)__ptr + 8);" (call_expression "sh_getopt_restore_state((int)__ptr + 8)" identifier (argument_list "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ;) (expression_statement "uVar9 = *(undefined4 *)((int)__ptr + 8);" (assignment_expression "uVar9 = *(undefined4 *)((int)__ptr + 8)" identifier = (pointer_expression "*(undefined4 *)((int)__ptr + 8)" * (cast_expression "(undefined4 *)((int)__ptr + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)__ptr + 8) = dollar_vars;" (assignment_expression "*(undefined4 *)((int)__ptr + 8) = dollar_vars" (pointer_expression "*(undefined4 *)((int)__ptr + 8)" * (cast_expression "(undefined4 *)((int)__ptr + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" identifier = (cast_expression "(char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" identifier (argument_list "(local_38 + -2,(int)__ptr + 8,local_50)" ( (binary_expression "local_38 + -2" identifier + number_literal) , (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))))) ;) (expression_statement "*(undefined4 *)((int)__ptr + 8) = uVar9;" (assignment_expression "*(undefined4 *)((int)__ptr + 8) = uVar9" (pointer_expression "*(undefined4 *)((int)__ptr + 8)" * (cast_expression "(undefined4 *)((int)__ptr + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) }))) (if_statement "if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          sh_opterr = local_40;\n        }" { (expression_statement "sh_opterr = local_40;" (assignment_expression "sh_opterr = local_40" identifier = identifier) ;) })) (if_statement "if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" if (parenthesized_expression "((int)sh_optind < 10)" ( (binary_expression "(int)sh_optind < 10" (cast_expression "(int)sh_optind" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }" { (expression_statement "local_22 = (char)sh_optind + '0';" (assignment_expression "local_22 = (char)sh_optind + '0'" identifier = (binary_expression "(char)sh_optind + '0'" (cast_expression "(char)sh_optind" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) (expression_statement "iVar10 = 0xe;" (assignment_expression "iVar10 = 0xe" identifier = number_literal) ;) }) (else_clause "else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" else (compound_statement "{\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" { (expression_statement "uVar7 = sh_optind;" (assignment_expression "uVar7 = sh_optind" identifier = identifier) ;) (expression_statement "iVar4 = 0xf;" (assignment_expression "iVar4 = 0xf" identifier = number_literal) ;) (do_statement "do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);" do (compound_statement "{\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          }" { (expression_statement "iVar10 = iVar4 + -1;" (assignment_expression "iVar10 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar7 / 10;" (assignment_expression "uVar8 = uVar7 / 10" identifier = (binary_expression "uVar7 / 10" identifier / number_literal)) ;) (expression_statement "local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';" (assignment_expression "local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0'" (subscript_expression "local_31[iVar4]" identifier [ identifier ]) = (binary_expression "(char)uVar7 + (char)uVar8 * -10 + '0'" (binary_expression "(char)uVar7 + (char)uVar8 * -10" (cast_expression "(char)uVar7" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar8 * -10" (cast_expression "(char)uVar8" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" identifier = identifier) ;) (expression_statement "iVar4 = iVar10;" (assignment_expression "iVar4 = iVar10" identifier = identifier) ;) }) while (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) ;) }))) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) (expression_statement "bind_variable("OPTIND",local_31 + iVar10 + 1,0);" (call_expression "bind_variable("OPTIND",local_31 + iVar10 + 1,0)" identifier (argument_list "("OPTIND",local_31 + iVar10 + 1,0)" ( (string_literal ""OPTIND"" " string_content ") , (binary_expression "local_31 + iVar10 + 1" (binary_expression "local_31 + iVar10" identifier + identifier) + number_literal) , number_literal ))) ;) (if_statement "if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" if (parenthesized_expression "(local_50 == (char *)0x3f)" ( (binary_expression "local_50 == (char *)0x3f" identifier == (cast_expression "(char *)0x3f" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }" { (if_statement "if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" if (parenthesized_expression "(sh_optarg == (char *)0x0)" ( (binary_expression "sh_optarg == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }" { (labeled_statement "LAB_000aec80:\n            uVar9 = FUN_000ae830();" statement_identifier : (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }" { (labeled_statement "LAB_000aec98:\n              local_31[0] = '\0';" statement_identifier : (expression_statement "local_31[0] = '\0';" (assignment_expression "local_31[0] = '\0'" (subscript_expression "local_31[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "local_32 = (undefined1)sh_optopt;" (assignment_expression "local_32 = (undefined1)sh_optopt" identifier = (cast_expression "(undefined1)sh_optopt" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "bind_variable("OPTARG",&local_32,0);" (call_expression "bind_variable("OPTARG",&local_32,0)" identifier (argument_list "("OPTARG",&local_32,0)" ( (string_literal ""OPTARG"" " string_content ") , (pointer_expression "&local_32" & identifier) , number_literal ))) ;) (goto_statement "goto LAB_000aeb2e;" goto statement_identifier ;) })) }) (else_clause "else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" else (compound_statement "{\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" { (if_statement "if (*sh_optarg != '\0') goto LAB_000aeafc;" if (parenthesized_expression "(*sh_optarg != '\0')" ( (binary_expression "*sh_optarg != '\0'" (pointer_expression "*sh_optarg" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aeafc;" goto statement_identifier ;)) (labeled_statement "LAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" statement_identifier : (if_statement "if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" if (parenthesized_expression "(cVar2 == ':')" ( (binary_expression "cVar2 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" { (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000aec98;" goto statement_identifier ;) }))) (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" identifier (argument_list "("OPTARG")" ( (string_literal ""OPTARG"" " string_content ") ))) ;) }) (else_clause "else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" else (if_statement "if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" if (parenthesized_expression "(local_50 == (char *)0xffffffff)" ( (binary_expression "local_50 == (char *)0xffffffff" identifier == (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }" { (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" identifier (argument_list "("OPTARG")" ( (string_literal ""OPTARG"" " string_content ") ))) ;) (expression_statement "FUN_000ae830();" (call_expression "FUN_000ae830()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" else (compound_statement "{\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" { (if_statement "if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;" if (parenthesized_expression "(local_50 == (char *)0xfffffffe)" ( (binary_expression "local_50 == (char *)0xfffffffe" identifier == (cast_expression "(char *)0xfffffffe" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aec80;" goto statement_identifier ;)) (if_statement "if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;" if (parenthesized_expression "(local_50 == (char *)0xfffffffd)" ( (binary_expression "local_50 == (char *)0xfffffffd" identifier == (cast_expression "(char *)0xfffffffd" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aec3d;" goto statement_identifier ;)) (labeled_statement "LAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);" statement_identifier : (expression_statement "bind_variable("OPTARG",sh_optarg,0);" (call_expression "bind_variable("OPTARG",sh_optarg,0)" identifier (argument_list "("OPTARG",sh_optarg,0)" ( (string_literal ""OPTARG"" " string_content ") , identifier , number_literal ))) ;)) (expression_statement "local_31[0] = '\0';" (assignment_expression "local_31[0] = '\0'" (subscript_expression "local_31[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_32 = local_50._0_1_;" (assignment_expression "local_32 = local_50._0_1_" identifier = (field_expression "local_50._0_1_" identifier . field_identifier)) ;) (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" identifier = (call_expression "FUN_000ae830()" identifier (argument_list "()" ( )))) ;) }))))) }))) (labeled_statement "LAB_000aeb2e:\n      free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (goto_statement "goto LAB_000ae926;" goto statement_identifier ;) })) (if_statement "if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }" if (parenthesized_expression "(iVar4 == -99)" ( (binary_expression "iVar4 == -99" identifier == number_literal) )) (compound_statement "{\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }" { (expression_statement "builtin_help();" (call_expression "builtin_help()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" identifier = number_literal) ;) (goto_statement "goto LAB_000ae926;" goto statement_identifier ;) })) })) (expression_statement "builtin_usage();" (call_expression "builtin_usage()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" identifier = number_literal) ;) (labeled_statement "LAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar9;\n  }" { (return_statement "return uVar9;" return identifier ;) }))) (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) == LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression & IDENT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (binary_expression (binary_expression IDENT + IDENT) + LIT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression & IDENT) , LIT ))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , LIT ))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))))) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 getopts_builtin(int param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    \n  FUN_000ecc40();\n}" (type_identifier "undefined4") (function_declarator "getopts_builtin(int param_1)" (identifier "getopts_builtin") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  void *__ptr;\n  int *__ptr_00;\n  int *piVar5;\n  undefined4 *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  char *local_50;\n  undefined4 local_40;\n  int local_38;\n  undefined1 local_32;\n  char local_31 [15];\n  char local_22;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xae8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }\n  builtin_usage();\n  uVar9 = 0x102;\nLAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }\n                    \n  FUN_000ecc40();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int *__ptr_00;" (primitive_type "int") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_50;" (primitive_type "char") (pointer_declarator "*local_50" (* "*") (identifier "local_50")) (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "undefined1 local_32;" (type_identifier "undefined1") (identifier "local_32") (; ";")) (declaration "char local_31 [15];" (primitive_type "char") (array_declarator "local_31 [15]" (identifier "local_31") ([ "[") (number_literal "15") (] "]")) (; ";")) (declaration "char local_22;" (primitive_type "char") (identifier "local_22") (; ";")) (declaration "undefined1 local_21;" (type_identifier "undefined1") (identifier "local_21") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xae8d9;" (assignment_expression "uStack_14 = 0xae8d9" (identifier "uStack_14") (= "=") (number_literal "0xae8d9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 != 0) {\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    reset_internal_getopt();\n    iVar4 = internal_getopt(param_1,&DAT_00106524);\n    if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }\n    if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }\n  }" ({ "{") (expression_statement "reset_internal_getopt();" (call_expression "reset_internal_getopt()" (identifier "reset_internal_getopt") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = internal_getopt(param_1,&DAT_00106524);" (assignment_expression "iVar4 = internal_getopt(param_1,&DAT_00106524)" (identifier "iVar4") (= "=") (call_expression "internal_getopt(param_1,&DAT_00106524)" (identifier "internal_getopt") (argument_list "(param_1,&DAT_00106524)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&DAT_00106524" (& "&") (identifier "DAT_00106524")) () ")")))) (; ";")) (if_statement "if (iVar4 == -1) {\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      __ptr = (void *)make_builtin_argv(loptend,&local_38);\n      if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }\nLAB_000aeb2e:\n      free(__ptr);\n      goto LAB_000ae926;\n    }" ({ "{") (expression_statement "__ptr = (void *)make_builtin_argv(loptend,&local_38);" (assignment_expression "__ptr = (void *)make_builtin_argv(loptend,&local_38)" (identifier "__ptr") (= "=") (cast_expression "(void *)make_builtin_argv(loptend,&local_38)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "make_builtin_argv(loptend,&local_38)" (identifier "make_builtin_argv") (argument_list "(loptend,&local_38)" (( "(") (identifier "loptend") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")"))))) (; ";")) (if_statement "if (local_38 < 3) {\n        builtin_usage();\n        uVar9 = 0x102;\n      }\n      else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" (if "if") (parenthesized_expression "(local_38 < 3)" (( "(") (binary_expression "local_38 < 3" (identifier "local_38") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n        builtin_usage();\n        uVar9 = 0x102;\n      }" ({ "{") (expression_statement "builtin_usage();" (call_expression "builtin_usage()" (identifier "builtin_usage") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" (identifier "uVar9") (= "=") (number_literal "0x102")) (; ";")) (} "}")) (else_clause "else {\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" (else "else") (compound_statement "{\n        local_50 = *(char **)((int)__ptr + 4);\n        cVar2 = *local_50;\n        if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }\n        if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }\n        if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }\n        if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }\n        local_21 = 0;\n        bind_variable("OPTIND",local_31 + iVar10 + 1,0);\n        if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }\n      }" ({ "{") (expression_statement "local_50 = *(char **)((int)__ptr + 4);" (assignment_expression "local_50 = *(char **)((int)__ptr + 4)" (identifier "local_50") (= "=") (pointer_expression "*(char **)((int)__ptr + 4)" (* "*") (cast_expression "(char **)((int)__ptr + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 4)" (( "(") (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "cVar2 = *local_50;" (assignment_expression "cVar2 = *local_50" (identifier "cVar2") (= "=") (pointer_expression "*local_50" (* "*") (identifier "local_50"))) (; ";")) (if_statement "if (cVar2 == ':') {\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" (if "if") (parenthesized_expression "(cVar2 == ':')" (( "(") (binary_expression "cVar2 == ':'" (identifier "cVar2") (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (compound_statement "{\n          local_50 = local_50 + 1;\n          local_40 = sh_opterr;\n          sh_opterr = 0;\n        }" ({ "{") (expression_statement "local_50 = local_50 + 1;" (assignment_expression "local_50 = local_50 + 1" (identifier "local_50") (= "=") (binary_expression "local_50 + 1" (identifier "local_50") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_40 = sh_opterr;" (assignment_expression "local_40 = sh_opterr" (identifier "local_40") (= "=") (identifier "sh_opterr")) (; ";")) (expression_statement "sh_opterr = 0;" (assignment_expression "sh_opterr = 0" (identifier "sh_opterr") (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (local_38 + -2 == 1) {\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }\n        else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" (if "if") (parenthesized_expression "(local_38 + -2 == 1)" (( "(") (binary_expression "local_38 + -2 == 1" (binary_expression "local_38 + -2" (identifier "local_38") (+ "+") (number_literal "-2")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }\n        }" ({ "{") (if_statement "if (rest_of_args == (undefined4 *)0x0) {\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }\n          else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" (if "if") (parenthesized_expression "(rest_of_args == (undefined4 *)0x0)" (( "(") (binary_expression "rest_of_args == (undefined4 *)0x0" (identifier "rest_of_args") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar4 = 0;\n            do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);\n            sh_getopt_restore_state(&dollar_vars);\n            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);\n          }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            } while (iVar4 != 10);" (do "do") (compound_statement "{\n              if ((&dollar_vars)[iVar4] == 0) break;\n              iVar4 = iVar4 + 1;\n            }" ({ "{") (if_statement "if ((&dollar_vars)[iVar4] == 0) break;" (if "if") (parenthesized_expression "((&dollar_vars)[iVar4] == 0)" (( "(") (binary_expression "(&dollar_vars)[iVar4] == 0" (subscript_expression "(&dollar_vars)[iVar4]" (parenthesized_expression "(&dollar_vars)" (( "(") (pointer_expression "&dollar_vars" (& "&") (identifier "dollar_vars")) () ")")) ([ "[") (identifier "iVar4") (] "]")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 10)" (( "(") (binary_expression "iVar4 != 10" (identifier "iVar4") (!= "!=") (number_literal "10")) () ")")) (; ";")) (expression_statement "sh_getopt_restore_state(&dollar_vars);" (call_expression "sh_getopt_restore_state(&dollar_vars)" (identifier "sh_getopt_restore_state") (argument_list "(&dollar_vars)" (( "(") (pointer_expression "&dollar_vars" (& "&") (identifier "dollar_vars")) () ")"))) (; ";")) (expression_statement "local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50)" (identifier "local_50") (= "=") (cast_expression "(char *)sh_getopt(iVar4,&dollar_vars,local_50)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sh_getopt(iVar4,&dollar_vars,local_50)" (identifier "sh_getopt") (argument_list "(iVar4,&dollar_vars,local_50)" (( "(") (identifier "iVar4") (, ",") (pointer_expression "&dollar_vars" (& "&") (identifier "dollar_vars")) (, ",") (identifier "local_50") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" (else "else") (compound_statement "{\n            iVar4 = 0;\n            do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);\n            iVar10 = iVar10 + 2;\n            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }\n            iVar10 = 0;\n            __ptr_00 = (int *)strvec_create(iVar4 + 2);\n            piVar5 = __ptr_00;\n            do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);\n            piVar5 = __ptr_00 + 10;\nLAB_000aea2a:\n            puVar6 = rest_of_args;\n            if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }\n            *piVar5 = 0;\n            sh_getopt_restore_state(__ptr_00);\n            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);\n            free(__ptr_00);\n          }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            } while (iVar4 != 10);" (do "do") (compound_statement "{\n              iVar10 = iVar4;\n              iVar4 = iVar10 + 1;\n              puVar6 = rest_of_args;\n              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;\n            }" ({ "{") (expression_statement "iVar10 = iVar4;" (assignment_expression "iVar10 = iVar4" (identifier "iVar10") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar4 = iVar10 + 1;" (assignment_expression "iVar4 = iVar10 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = rest_of_args;" (assignment_expression "puVar6 = rest_of_args" (identifier "puVar6") (= "=") (identifier "rest_of_args")) (; ";")) (if_statement "if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;" (if "if") (parenthesized_expression "((&dollar_vars)[iVar10] == 0)" (( "(") (binary_expression "(&dollar_vars)[iVar10] == 0" (subscript_expression "(&dollar_vars)[iVar10]" (parenthesized_expression "(&dollar_vars)" (( "(") (pointer_expression "&dollar_vars" (& "&") (identifier "dollar_vars")) () ")")) ([ "[") (identifier "iVar10") (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000ae9f0;" (goto "goto") (statement_identifier "LAB_000ae9f0") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 10)" (( "(") (binary_expression "iVar4 != 10" (identifier "iVar4") (!= "!=") (number_literal "10")) () ")")) (; ";")) (expression_statement "iVar10 = iVar10 + 2;" (assignment_expression "iVar10 = iVar10 + 2" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 2" (identifier "iVar10") (+ "+") (number_literal "2"))) (; ";")) (for_statement "for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;\n                puVar6 = (undefined4 *)*puVar6) {\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }" (for "for") (( "(") (assignment_expression "puVar6 = (undefined4 *)*rest_of_args" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)*rest_of_args" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*rest_of_args" (* "*") (identifier "rest_of_args")))) (; ";") (binary_expression "puVar6 != (undefined4 *)0x0" (identifier "puVar6") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar6 = (undefined4 *)*puVar6" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)*puVar6" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")))) () ")") (compound_statement "{\nLAB_000ae9f0:\n              iVar4 = iVar10;\n              iVar10 = iVar10 + 1;\n            }" ({ "{") (labeled_statement "LAB_000ae9f0:\n              iVar4 = iVar10;" (statement_identifier "LAB_000ae9f0") (: ":") (expression_statement "iVar4 = iVar10;" (assignment_expression "iVar4 = iVar10" (identifier "iVar4") (= "=") (identifier "iVar10")) (; ";"))) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr_00 = (int *)strvec_create(iVar4 + 2);" (assignment_expression "__ptr_00 = (int *)strvec_create(iVar4 + 2)" (identifier "__ptr_00") (= "=") (cast_expression "(int *)strvec_create(iVar4 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strvec_create(iVar4 + 2)" (identifier "strvec_create") (argument_list "(iVar4 + 2)" (( "(") (binary_expression "iVar4 + 2" (identifier "iVar4") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "piVar5 = __ptr_00;" (assignment_expression "piVar5 = __ptr_00" (identifier "piVar5") (= "=") (identifier "__ptr_00")) (; ";")) (do_statement "do {\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            } while (iVar10 != 10);" (do "do") (compound_statement "{\n              piVar1 = &dollar_vars + iVar10;\n              if (*piVar1 == 0) goto LAB_000aea2a;\n              iVar10 = iVar10 + 1;\n              *piVar5 = *piVar1;\n              piVar5 = piVar5 + 1;\n            }" ({ "{") (expression_statement "piVar1 = &dollar_vars + iVar10;" (assignment_expression "piVar1 = &dollar_vars + iVar10" (identifier "piVar1") (= "=") (binary_expression "&dollar_vars + iVar10" (pointer_expression "&dollar_vars" (& "&") (identifier "dollar_vars")) (+ "+") (identifier "iVar10"))) (; ";")) (if_statement "if (*piVar1 == 0) goto LAB_000aea2a;" (if "if") (parenthesized_expression "(*piVar1 == 0)" (( "(") (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aea2a;" (goto "goto") (statement_identifier "LAB_000aea2a") (; ";"))) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar5 = *piVar1;" (assignment_expression "*piVar5 = *piVar1" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar10 != 10)" (( "(") (binary_expression "iVar10 != 10" (identifier "iVar10") (!= "!=") (number_literal "10")) () ")")) (; ";")) (expression_statement "piVar5 = __ptr_00 + 10;" (assignment_expression "piVar5 = __ptr_00 + 10" (identifier "piVar5") (= "=") (binary_expression "__ptr_00 + 10" (identifier "__ptr_00") (+ "+") (number_literal "10"))) (; ";")) (labeled_statement "LAB_000aea2a:\n            puVar6 = rest_of_args;" (statement_identifier "LAB_000aea2a") (: ":") (expression_statement "puVar6 = rest_of_args;" (assignment_expression "puVar6 = rest_of_args" (identifier "puVar6") (= "=") (identifier "rest_of_args")) (; ";"))) (if_statement "if (rest_of_args != (undefined4 *)0x0) {\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }" (if "if") (parenthesized_expression "(rest_of_args != (undefined4 *)0x0)" (( "(") (binary_expression "rest_of_args != (undefined4 *)0x0" (identifier "rest_of_args") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);\n              piVar5 = __ptr_00 + iVar10;\n            }" ({ "{") (do_statement "do {\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              } while (puVar3 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n                puVar3 = (undefined4 *)*puVar6;\n                __ptr_00[iVar10] = *(int *)puVar6[1];\n                iVar10 = iVar10 + 1;\n                puVar6 = puVar3;\n              }" ({ "{") (expression_statement "puVar3 = (undefined4 *)*puVar6;" (assignment_expression "puVar3 = (undefined4 *)*puVar6" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)*puVar6" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")))) (; ";")) (expression_statement "__ptr_00[iVar10] = *(int *)puVar6[1];" (assignment_expression "__ptr_00[iVar10] = *(int *)puVar6[1]" (subscript_expression "__ptr_00[iVar10]" (identifier "__ptr_00") ([ "[") (identifier "iVar10") (] "]")) (= "=") (pointer_expression "*(int *)puVar6[1]" (* "*") (cast_expression "(int *)puVar6[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]"))))) (; ";")) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" (identifier "puVar6") (= "=") (identifier "puVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "piVar5 = __ptr_00 + iVar10;" (assignment_expression "piVar5 = __ptr_00 + iVar10" (identifier "piVar5") (= "=") (binary_expression "__ptr_00 + iVar10" (identifier "__ptr_00") (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "sh_getopt_restore_state(__ptr_00);" (call_expression "sh_getopt_restore_state(__ptr_00)" (identifier "sh_getopt_restore_state") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (expression_statement "local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50)" (identifier "local_50") (= "=") (cast_expression "(char *)sh_getopt(iVar10,__ptr_00,local_50)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sh_getopt(iVar10,__ptr_00,local_50)" (identifier "sh_getopt") (argument_list "(iVar10,__ptr_00,local_50)" (( "(") (identifier "iVar10") (, ",") (identifier "__ptr_00") (, ",") (identifier "local_50") () ")"))))) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" (else "else") (compound_statement "{\n          sh_getopt_restore_state((int)__ptr + 8);\n          uVar9 = *(undefined4 *)((int)__ptr + 8);\n          *(undefined4 *)((int)__ptr + 8) = dollar_vars;\n          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);\n          *(undefined4 *)((int)__ptr + 8) = uVar9;\n        }" ({ "{") (expression_statement "sh_getopt_restore_state((int)__ptr + 8);" (call_expression "sh_getopt_restore_state((int)__ptr + 8)" (identifier "sh_getopt_restore_state") (argument_list "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "uVar9 = *(undefined4 *)((int)__ptr + 8);" (assignment_expression "uVar9 = *(undefined4 *)((int)__ptr + 8)" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)((int)__ptr + 8)" (* "*") (cast_expression "(undefined4 *)((int)__ptr + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)__ptr + 8) = dollar_vars;" (assignment_expression "*(undefined4 *)((int)__ptr + 8) = dollar_vars" (pointer_expression "*(undefined4 *)((int)__ptr + 8)" (* "*") (cast_expression "(undefined4 *)((int)__ptr + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "dollar_vars")) (; ";")) (expression_statement "local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);" (assignment_expression "local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" (identifier "local_50") (= "=") (cast_expression "(char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sh_getopt(local_38 + -2,(int)__ptr + 8,local_50)" (identifier "sh_getopt") (argument_list "(local_38 + -2,(int)__ptr + 8,local_50)" (( "(") (binary_expression "local_38 + -2" (identifier "local_38") (+ "+") (number_literal "-2")) (, ",") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) (, ",") (identifier "local_50") () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)__ptr + 8) = uVar9;" (assignment_expression "*(undefined4 *)((int)__ptr + 8) = uVar9" (pointer_expression "*(undefined4 *)((int)__ptr + 8)" (* "*") (cast_expression "(undefined4 *)((int)__ptr + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (} "}")))) (if_statement "if (cVar2 == ':') {\n          sh_opterr = local_40;\n        }" (if "if") (parenthesized_expression "(cVar2 == ':')" (( "(") (binary_expression "cVar2 == ':'" (identifier "cVar2") (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (compound_statement "{\n          sh_opterr = local_40;\n        }" ({ "{") (expression_statement "sh_opterr = local_40;" (assignment_expression "sh_opterr = local_40" (identifier "sh_opterr") (= "=") (identifier "local_40")) (; ";")) (} "}"))) (if_statement "if ((int)sh_optind < 10) {\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }\n        else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" (if "if") (parenthesized_expression "((int)sh_optind < 10)" (( "(") (binary_expression "(int)sh_optind < 10" (cast_expression "(int)sh_optind" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sh_optind")) (< "<") (number_literal "10")) () ")")) (compound_statement "{\n          local_22 = (char)sh_optind + '0';\n          iVar10 = 0xe;\n        }" ({ "{") (expression_statement "local_22 = (char)sh_optind + '0';" (assignment_expression "local_22 = (char)sh_optind + '0'" (identifier "local_22") (= "=") (binary_expression "(char)sh_optind + '0'" (cast_expression "(char)sh_optind" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "sh_optind")) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "iVar10 = 0xe;" (assignment_expression "iVar10 = 0xe" (identifier "iVar10") (= "=") (number_literal "0xe")) (; ";")) (} "}")) (else_clause "else {\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" (else "else") (compound_statement "{\n          uVar7 = sh_optind;\n          iVar4 = 0xf;\n          do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);\n        }" ({ "{") (expression_statement "uVar7 = sh_optind;" (assignment_expression "uVar7 = sh_optind" (identifier "uVar7") (= "=") (identifier "sh_optind")) (; ";")) (expression_statement "iVar4 = 0xf;" (assignment_expression "iVar4 = 0xf" (identifier "iVar4") (= "=") (number_literal "0xf")) (; ";")) (do_statement "do {\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          } while (uVar8 != 0);" (do "do") (compound_statement "{\n            iVar10 = iVar4 + -1;\n            uVar8 = uVar7 / 10;\n            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';\n            uVar7 = uVar8;\n            iVar4 = iVar10;\n          }" ({ "{") (expression_statement "iVar10 = iVar4 + -1;" (assignment_expression "iVar10 = iVar4 + -1" (identifier "iVar10") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar8 = uVar7 / 10;" (assignment_expression "uVar8 = uVar7 / 10" (identifier "uVar8") (= "=") (binary_expression "uVar7 / 10" (identifier "uVar7") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';" (assignment_expression "local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0'" (subscript_expression "local_31[iVar4]" (identifier "local_31") ([ "[") (identifier "iVar4") (] "]")) (= "=") (binary_expression "(char)uVar7 + (char)uVar8 * -10 + '0'" (binary_expression "(char)uVar7 + (char)uVar8 * -10" (cast_expression "(char)uVar7" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar7")) (+ "+") (binary_expression "(char)uVar8 * -10" (cast_expression "(char)uVar8" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar8")) (* "*") (number_literal "-10"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" (identifier "uVar7") (= "=") (identifier "uVar8")) (; ";")) (expression_statement "iVar4 = iVar10;" (assignment_expression "iVar4 = iVar10" (identifier "iVar4") (= "=") (identifier "iVar10")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" (identifier "local_21") (= "=") (number_literal "0")) (; ";")) (expression_statement "bind_variable("OPTIND",local_31 + iVar10 + 1,0);" (call_expression "bind_variable("OPTIND",local_31 + iVar10 + 1,0)" (identifier "bind_variable") (argument_list "("OPTIND",local_31 + iVar10 + 1,0)" (( "(") (string_literal ""OPTIND"" (" """) (string_content "OPTIND") (" """)) (, ",") (binary_expression "local_31 + iVar10 + 1" (binary_expression "local_31 + iVar10" (identifier "local_31") (+ "+") (identifier "iVar10")) (+ "+") (number_literal "1")) (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_50 == (char *)0x3f) {\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }\n        else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" (if "if") (parenthesized_expression "(local_50 == (char *)0x3f)" (( "(") (binary_expression "local_50 == (char *)0x3f" (identifier "local_50") (== "==") (cast_expression "(char *)0x3f" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x3f"))) () ")")) (compound_statement "{\n          if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }\n          unbind_variable_noref("OPTARG");\n        }" ({ "{") (if_statement "if (sh_optarg == (char *)0x0) {\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }\n          else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" (if "if") (parenthesized_expression "(sh_optarg == (char *)0x0)" (( "(") (binary_expression "sh_optarg == (char *)0x0" (identifier "sh_optarg") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_000aec80:\n            uVar9 = FUN_000ae830();\n            if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }\n          }" ({ "{") (labeled_statement "LAB_000aec80:\n            uVar9 = FUN_000ae830();" (statement_identifier "LAB_000aec80") (: ":") (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" (identifier "uVar9") (= "=") (call_expression "FUN_000ae830()" (identifier "FUN_000ae830") (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if (cVar2 == ':') {\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }" (if "if") (parenthesized_expression "(cVar2 == ':')" (( "(") (binary_expression "cVar2 == ':'" (identifier "cVar2") (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (compound_statement "{\nLAB_000aec98:\n              local_31[0] = '\0';\n              local_32 = (undefined1)sh_optopt;\n              bind_variable("OPTARG",&local_32,0);\n              goto LAB_000aeb2e;\n            }" ({ "{") (labeled_statement "LAB_000aec98:\n              local_31[0] = '\0';" (statement_identifier "LAB_000aec98") (: ":") (expression_statement "local_31[0] = '\0';" (assignment_expression "local_31[0] = '\0'" (subscript_expression "local_31[0]" (identifier "local_31") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";"))) (expression_statement "local_32 = (undefined1)sh_optopt;" (assignment_expression "local_32 = (undefined1)sh_optopt" (identifier "local_32") (= "=") (cast_expression "(undefined1)sh_optopt" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "sh_optopt"))) (; ";")) (expression_statement "bind_variable("OPTARG",&local_32,0);" (call_expression "bind_variable("OPTARG",&local_32,0)" (identifier "bind_variable") (argument_list "("OPTARG",&local_32,0)" (( "(") (string_literal ""OPTARG"" (" """) (string_content "OPTARG") (" """)) (, ",") (pointer_expression "&local_32" (& "&") (identifier "local_32")) (, ",") (number_literal "0") () ")"))) (; ";")) (goto_statement "goto LAB_000aeb2e;" (goto "goto") (statement_identifier "LAB_000aeb2e") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" (else "else") (compound_statement "{\n            if (*sh_optarg != '\0') goto LAB_000aeafc;\nLAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }\n            uVar9 = FUN_000ae830();\n          }" ({ "{") (if_statement "if (*sh_optarg != '\0') goto LAB_000aeafc;" (if "if") (parenthesized_expression "(*sh_optarg != '\0')" (( "(") (binary_expression "*sh_optarg != '\0'" (pointer_expression "*sh_optarg" (* "*") (identifier "sh_optarg")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000aeafc;" (goto "goto") (statement_identifier "LAB_000aeafc") (; ";"))) (labeled_statement "LAB_000aec3d:\n            if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" (statement_identifier "LAB_000aec3d") (: ":") (if_statement "if (cVar2 == ':') {\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" (if "if") (parenthesized_expression "(cVar2 == ':')" (( "(") (binary_expression "cVar2 == ':'" (identifier "cVar2") (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (compound_statement "{\n              uVar9 = FUN_000ae830();\n              goto LAB_000aec98;\n            }" ({ "{") (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" (identifier "uVar9") (= "=") (call_expression "FUN_000ae830()" (identifier "FUN_000ae830") (argument_list "()" (( "(") () ")")))) (; ";")) (goto_statement "goto LAB_000aec98;" (goto "goto") (statement_identifier "LAB_000aec98") (; ";")) (} "}")))) (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" (identifier "uVar9") (= "=") (call_expression "FUN_000ae830()" (identifier "FUN_000ae830") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" (identifier "unbind_variable_noref") (argument_list "("OPTARG")" (( "(") (string_literal ""OPTARG"" (" """) (string_content "OPTARG") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" (else "else") (if_statement "if (local_50 == (char *)0xffffffff) {\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }\n        else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" (if "if") (parenthesized_expression "(local_50 == (char *)0xffffffff)" (( "(") (binary_expression "local_50 == (char *)0xffffffff" (identifier "local_50") (== "==") (cast_expression "(char *)0xffffffff" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) () ")")) (compound_statement "{\n          uVar9 = 1;\n          unbind_variable_noref("OPTARG");\n          FUN_000ae830();\n        }" ({ "{") (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" (identifier "uVar9") (= "=") (number_literal "1")) (; ";")) (expression_statement "unbind_variable_noref("OPTARG");" (call_expression "unbind_variable_noref("OPTARG")" (identifier "unbind_variable_noref") (argument_list "("OPTARG")" (( "(") (string_literal ""OPTARG"" (" """) (string_content "OPTARG") (" """)) () ")"))) (; ";")) (expression_statement "FUN_000ae830();" (call_expression "FUN_000ae830()" (identifier "FUN_000ae830") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" (else "else") (compound_statement "{\n          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;\n          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;\nLAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);\n          local_31[0] = '\0';\n          local_32 = local_50._0_1_;\n          uVar9 = FUN_000ae830();\n        }" ({ "{") (if_statement "if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;" (if "if") (parenthesized_expression "(local_50 == (char *)0xfffffffe)" (( "(") (binary_expression "local_50 == (char *)0xfffffffe" (identifier "local_50") (== "==") (cast_expression "(char *)0xfffffffe" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xfffffffe"))) () ")")) (goto_statement "goto LAB_000aec80;" (goto "goto") (statement_identifier "LAB_000aec80") (; ";"))) (if_statement "if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;" (if "if") (parenthesized_expression "(local_50 == (char *)0xfffffffd)" (( "(") (binary_expression "local_50 == (char *)0xfffffffd" (identifier "local_50") (== "==") (cast_expression "(char *)0xfffffffd" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xfffffffd"))) () ")")) (goto_statement "goto LAB_000aec3d;" (goto "goto") (statement_identifier "LAB_000aec3d") (; ";"))) (labeled_statement "LAB_000aeafc:\n          bind_variable("OPTARG",sh_optarg,0);" (statement_identifier "LAB_000aeafc") (: ":") (expression_statement "bind_variable("OPTARG",sh_optarg,0);" (call_expression "bind_variable("OPTARG",sh_optarg,0)" (identifier "bind_variable") (argument_list "("OPTARG",sh_optarg,0)" (( "(") (string_literal ""OPTARG"" (" """) (string_content "OPTARG") (" """)) (, ",") (identifier "sh_optarg") (, ",") (number_literal "0") () ")"))) (; ";"))) (expression_statement "local_31[0] = '\0';" (assignment_expression "local_31[0] = '\0'" (subscript_expression "local_31[0]" (identifier "local_31") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_32 = local_50._0_1_;" (assignment_expression "local_32 = local_50._0_1_" (identifier "local_32") (= "=") (field_expression "local_50._0_1_" (identifier "local_50") (. ".") (field_identifier "_0_1_"))) (; ";")) (expression_statement "uVar9 = FUN_000ae830();" (assignment_expression "uVar9 = FUN_000ae830()" (identifier "uVar9") (= "=") (call_expression "FUN_000ae830()" (identifier "FUN_000ae830") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))))) (} "}")))) (labeled_statement "LAB_000aeb2e:\n      free(__ptr);" (statement_identifier "LAB_000aeb2e") (: ":") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";"))) (goto_statement "goto LAB_000ae926;" (goto "goto") (statement_identifier "LAB_000ae926") (; ";")) (} "}"))) (if_statement "if (iVar4 == -99) {\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }" (if "if") (parenthesized_expression "(iVar4 == -99)" (( "(") (binary_expression "iVar4 == -99" (identifier "iVar4") (== "==") (number_literal "-99")) () ")")) (compound_statement "{\n      builtin_help();\n      uVar9 = 0x102;\n      goto LAB_000ae926;\n    }" ({ "{") (expression_statement "builtin_help();" (call_expression "builtin_help()" (identifier "builtin_help") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" (identifier "uVar9") (= "=") (number_literal "0x102")) (; ";")) (goto_statement "goto LAB_000ae926;" (goto "goto") (statement_identifier "LAB_000ae926") (; ";")) (} "}"))) (} "}"))) (expression_statement "builtin_usage();" (call_expression "builtin_usage()" (identifier "builtin_usage") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar9 = 0x102;" (assignment_expression "uVar9 = 0x102" (identifier "uVar9") (= "=") (number_literal "0x102")) (; ";")) (labeled_statement "LAB_000ae926:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }" (statement_identifier "LAB_000ae926") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar9;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar9;\n  }" ({ "{") (return_statement "return uVar9;" (return "return") (identifier "uVar9") (; ";")) (} "}")))) (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" (identifier "FUN_000ecc40") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(type_1 *var_2)

{
  int *piVar1;
  int var_31;
  char var_9;
  char *name;
  type_2 *var_19;
  char *pcVar5;
  int var_5;
  char **var_21;
  char **var_18;
  char **var_17;
  type_2 *var_15;
  type_3 var_23;
  type_3 var_24;
  int var_14;
  int var_1;
  char *var_10;
  int local_40;
  int var_7;
  char strval [2];
  char var_26 [16];
  
  var_31 = *(int *)(var_1 + 0x14);
  if (var_2 != (type_1 *)0x0) {
    var_3();
    var_5 = var_4(var_2,"");
    if (var_5 == -1) {
      var_21 = var_6(loptend,&var_7);
      if (var_7 < 3) {
        var_8();
        var_5 = 0x102;
      }
      else {
        var_10 = var_21[1];
        name = var_21[2];
        var_9 = *var_10;
        if (var_9 == ':') {
          var_10 = var_10 + 1;
          local_40 = sh_opterr;
          sh_opterr = 0;
        }
        if (var_7 + -2 == 1) {
          if (var_11 == (type_1 *)0x0) {
            var_5 = 0;
            do {
              if ((&dollar_vars)[var_5] == (char *)0x0) break;
              var_5 = var_5 + 1;
            } while (var_5 != 10);
            var_12(&dollar_vars);
            var_10 = (char *)var_13(var_5,&dollar_vars,var_10);
          }
          else {
            var_5 = 0;
            do {
              var_14 = var_5;
              var_5 = var_14 + 1;
              var_15 = var_11;
              if ((&dollar_vars)[var_14] == (char *)0x0) goto LAB_000ae9f0;
            } while (var_5 != 10);
            var_14 = var_14 + 2;
            for (var_15 = var_11->next; var_15 != (type_2 *)0x0; var_15 = var_15->next) {
LAB_000ae9f0:
              var_5 = var_14;
              var_14 = var_14 + 1;
            }
            var_14 = 0;
            var_18 = var_16(var_5 + 2);
            var_17 = var_18;
            do {
              piVar1 = (int *)(&dollar_vars + var_14);
              if ((char *)*piVar1 == (char *)0x0) goto LAB_000aea2a;
              var_14 = var_14 + 1;
              *var_17 = (char *)*piVar1;
              var_17 = var_17 + 1;
            } while (var_14 != 10);
            var_17 = var_18 + 10;
LAB_000aea2a:
            var_15 = var_11;
            if (var_11 != (type_1 *)0x0) {
              do {
                var_19 = var_15->next;
                var_18[var_14] = var_15->word->word;
                var_14 = var_14 + 1;
                var_15 = var_19;
              } while (var_19 != (type_2 *)0x0);
              var_17 = var_18 + var_14;
            }
            *var_17 = (char *)0x0;
            var_12(var_18);
            var_10 = (char *)var_13(var_14,var_18,var_10);
            var_20(var_18);
          }
        }
        else {
          var_12(var_21 + 2);
          pcVar5 = var_21[2];
          var_21[2] = dollar_vars;
          var_10 = (char *)var_13(var_7 + -2,var_21 + 2,var_10);
          var_21[2] = pcVar5;
        }
        if (var_9 == ':') {
          sh_opterr = local_40;
        }
        if (var_22 < 10) {
          var_26[0xe] = (char)var_22 + '0';
          var_14 = 0xe;
        }
        else {
          var_23 = var_22;
          var_5 = 0xf;
          do {
            var_14 = var_5 + -1;
            var_24 = var_23 / 10;
            strval[var_5 + 1] = (char)var_23 + (char)var_24 * -10 + '0';
            var_23 = var_24;
            var_5 = var_14;
          } while (var_24 != 0);
        }
        var_26[0xf] = '\0';
        var_25("OPTIND",var_26 + var_14,0);
        if (var_10 == (char *)0x3f) {
          if (var_27 == (char *)0x0) {
LAB_000aec80:
            var_5 = var_28(name,"?");
            if (var_9 == ':') {
LAB_000aec98:
              strval[1] = '\0';
              strval[0] = (char)sh_optopt;
              var_25("OPTARG",strval,0);
              goto LAB_000aeb2e;
            }
          }
          else {
            if (*var_27 != '\0') goto LAB_000aeafc;
LAB_000aec3d:
            if (var_9 == ':') {
              var_5 = var_28(name,":");
              goto LAB_000aec98;
            }
            var_5 = var_28(name,"?");
          }
          var_29("OPTARG");
        }
        else if (var_10 == (char *)0xffffffff) {
          var_5 = 1;
          var_29("OPTARG");
          var_28(name,"?");
        }
        else {
          if (var_10 == (char *)0xfffffffe) goto LAB_000aec80;
          if (var_10 == (char *)0xfffffffd) goto LAB_000aec3d;
LAB_000aeafc:
          var_25("OPTARG",var_27,0);
          strval[1] = '\0';
          strval[0] = (char)var_10;
          var_5 = var_28(name,strval);
        }
      }
LAB_000aeb2e:
      var_20(var_21);
      goto LAB_000ae926;
    }
    if (var_5 == -99) {
      var_30();
      var_5 = 0x102;
      goto LAB_000ae926;
    }
  }
  var_8();
  var_5 = 0x102;
LAB_000ae926:
  if (var_31 == *(int *)(var_1 + 0x14)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_32();
}


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

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

undefined4 MASKED(int param_1)

{
  int *piVar1;
  char cVar2;
  undefined4 *puVar3;
  int iVar4;
  void *__ptr;
  int *__ptr_00;
  int *piVar5;
  undefined4 *puVar6;
  uint uVar7;
  uint uVar8;
  undefined4 uVar9;
  int iVar10;
  int in_GS_OFFSET;
  char *local_50;
  undefined4 local_40;
  int local_38;
  undefined1 local_32;
  char local_31 [15];
  char local_22;
  undefined1 local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xae8d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 != 0) {
    reset_internal_getopt();
    iVar4 = internal_getopt(param_1,&DAT_00106524);
    if (iVar4 == -1) {
      __ptr = (void *)make_builtin_argv(loptend,&local_38);
      if (local_38 < 3) {
        builtin_usage();
        uVar9 = 0x102;
      }
      else {
        local_50 = *(char **)((int)__ptr + 4);
        cVar2 = *local_50;
        if (cVar2 == ':') {
          local_50 = local_50 + 1;
          local_40 = sh_opterr;
          sh_opterr = 0;
        }
        if (local_38 + -2 == 1) {
          if (rest_of_args == (undefined4 *)0x0) {
            iVar4 = 0;
            do {
              if ((&dollar_vars)[iVar4] == 0) break;
              iVar4 = iVar4 + 1;
            } while (iVar4 != 10);
            sh_getopt_restore_state(&dollar_vars);
            local_50 = (char *)sh_getopt(iVar4,&dollar_vars,local_50);
          }
          else {
            iVar4 = 0;
            do {
              iVar10 = iVar4;
              iVar4 = iVar10 + 1;
              puVar6 = rest_of_args;
              if ((&dollar_vars)[iVar10] == 0) goto LAB_000ae9f0;
            } while (iVar4 != 10);
            iVar10 = iVar10 + 2;
            for (puVar6 = (undefined4 *)*rest_of_args; puVar6 != (undefined4 *)0x0;
                puVar6 = (undefined4 *)*puVar6) {
LAB_000ae9f0:
              iVar4 = iVar10;
              iVar10 = iVar10 + 1;
            }
            iVar10 = 0;
            __ptr_00 = (int *)strvec_create(iVar4 + 2);
            piVar5 = __ptr_00;
            do {
              piVar1 = &dollar_vars + iVar10;
              if (*piVar1 == 0) goto LAB_000aea2a;
              iVar10 = iVar10 + 1;
              *piVar5 = *piVar1;
              piVar5 = piVar5 + 1;
            } while (iVar10 != 10);
            piVar5 = __ptr_00 + 10;
LAB_000aea2a:
            puVar6 = rest_of_args;
            if (rest_of_args != (undefined4 *)0x0) {
              do {
                puVar3 = (undefined4 *)*puVar6;
                __ptr_00[iVar10] = *(int *)puVar6[1];
                iVar10 = iVar10 + 1;
                puVar6 = puVar3;
              } while (puVar3 != (undefined4 *)0x0);
              piVar5 = __ptr_00 + iVar10;
            }
            *piVar5 = 0;
            sh_getopt_restore_state(__ptr_00);
            local_50 = (char *)sh_getopt(iVar10,__ptr_00,local_50);
            free(__ptr_00);
          }
        }
        else {
          sh_getopt_restore_state((int)__ptr + 8);
          uVar9 = *(undefined4 *)((int)__ptr + 8);
          *(undefined4 *)((int)__ptr + 8) = dollar_vars;
          local_50 = (char *)sh_getopt(local_38 + -2,(int)__ptr + 8,local_50);
          *(undefined4 *)((int)__ptr + 8) = uVar9;
        }
        if (cVar2 == ':') {
          sh_opterr = local_40;
        }
        if ((int)sh_optind < 10) {
          local_22 = (char)sh_optind + '0';
          iVar10 = 0xe;
        }
        else {
          uVar7 = sh_optind;
          iVar4 = 0xf;
          do {
            iVar10 = iVar4 + -1;
            uVar8 = uVar7 / 10;
            local_31[iVar4] = (char)uVar7 + (char)uVar8 * -10 + '0';
            uVar7 = uVar8;
            iVar4 = iVar10;
          } while (uVar8 != 0);
        }
        local_21 = 0;
        bind_variable("OPTIND",local_31 + iVar10 + 1,0);
        if (local_50 == (char *)0x3f) {
          if (sh_optarg == (char *)0x0) {
LAB_000aec80:
            uVar9 = FUN_000ae830();
            if (cVar2 == ':') {
LAB_000aec98:
              local_31[0] = '\0';
              local_32 = (undefined1)sh_optopt;
              bind_variable("OPTARG",&local_32,0);
              goto LAB_000aeb2e;
            }
          }
          else {
            if (*sh_optarg != '\0') goto LAB_000aeafc;
LAB_000aec3d:
            if (cVar2 == ':') {
              uVar9 = FUN_000ae830();
              goto LAB_000aec98;
            }
            uVar9 = FUN_000ae830();
          }
          unbind_variable_noref("OPTARG");
        }
        else if (local_50 == (char *)0xffffffff) {
          uVar9 = 1;
          unbind_variable_noref("OPTARG");
          FUN_000ae830();
        }
        else {
          if (local_50 == (char *)0xfffffffe) goto LAB_000aec80;
          if (local_50 == (char *)0xfffffffd) goto LAB_000aec3d;
LAB_000aeafc:
          bind_variable("OPTARG",sh_optarg,0);
          local_31[0] = '\0';
          local_32 = local_50._0_1_;
          uVar9 = FUN_000ae830();
        }
      }
LAB_000aeb2e:
      free(__ptr);
      goto LAB_000ae926;
    }
    if (iVar4 == -99) {
      builtin_help();
      uVar9 = 0x102;
      goto LAB_000ae926;
    }
  }
  builtin_usage();
  uVar9 = 0x102;
LAB_000ae926:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar9;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000ecc40();
}

