
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

char ** GetCommandOptions(CommandOption option)

{
  OptionInfo *pOVar1;
  OptionInfo *pOVar2;
  char **ppcVar3;
  char *pcVar4;
  char **ppcVar5;
  ExceptionInfo *exception;
  int *piVar6;
  char *pcVar7;
  int iVar8;
  size_t count;
  int iVar9;
  
  pOVar1 = GetOptionInfo(option);
  if (pOVar1 == (OptionInfo *)0x0) {
    ppcVar3 = (char **)0x0;
  }
  else {
    if (pOVar1->mnemonic == (char *)0x0) {
      count = 1;
    }
    else {
      iVar9 = 0;
      pOVar2 = pOVar1;
      do {
        iVar8 = iVar9;
        pOVar2 = pOVar2 + 1;
        iVar9 = iVar8 + 1;
      } while (pOVar2->mnemonic != (char *)0x0);
      count = iVar8 + 2;
    }
    ppcVar3 = (char **)AcquireQuantumMemory(count,4);
    if (ppcVar3 == (char **)0x0) {
      exception = AcquireExceptionInfo();
      piVar6 = __errno_location();
      pcVar7 = GetExceptionMessage(*piVar6);
      ThrowMagickException
                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,
                 "MemoryAllocationFailed","`%s\'",pcVar7);
      DestroyString(pcVar7);
      CatchException(exception);
      DestroyExceptionInfo(exception);
      MagickCoreTerminus();
                    /* WARNING: Subroutine does not return */
      _exit(1);
    }
    pcVar7 = pOVar1->mnemonic;
    iVar9 = 0;
    ppcVar5 = ppcVar3;
    if (pcVar7 != (char *)0x0) {
      do {
        pOVar1 = pOVar1 + 1;
        pcVar4 = AcquireString(pcVar7);
        pcVar7 = pOVar1->mnemonic;
        ppcVar3[iVar9] = pcVar4;
        iVar9 = iVar9 + 1;
      } while (pcVar7 != (char *)0x0);
      ppcVar5 = ppcVar3 + iVar9;
    }
    *ppcVar5 = (char *)0x0;
  }
  return ppcVar3;
}



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

undefined4 * GetCommandOptions(void)

{
  int *piVar1;
  int *piVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  
  piVar1 = (int *)FUN_00106210();
  if (piVar1 == (int *)0x0) {
    puVar3 = (undefined4 *)0x0;
  }
  else {
    if (*piVar1 == 0) {
      iVar7 = 1;
    }
    else {
      iVar8 = 0;
      piVar2 = piVar1;
      do {
        iVar7 = iVar8;
        piVar2 = piVar2 + 4;
        iVar8 = iVar7 + 1;
      } while (*piVar2 != 0);
      iVar7 = iVar7 + 2;
    }
    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);
    if (puVar3 == (undefined4 *)0x0) {
      uVar4 = AcquireExceptionInfo();
      piVar1 = __errno_location();
      uVar6 = GetExceptionMessage(*piVar1);
      ThrowMagickException
                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",
                 "`%s\'",uVar6);
      DestroyString(uVar6);
      CatchException(uVar4);
      DestroyExceptionInfo(uVar4);
      MagickCoreTerminus();
                    /* WARNING: Subroutine does not return */
      _exit(1);
    }
    iVar7 = *piVar1;
    iVar8 = 0;
    puVar5 = puVar3;
    if (iVar7 != 0) {
      do {
        piVar1 = piVar1 + 4;
        uVar4 = AcquireString(iVar7);
        iVar7 = *piVar1;
        puVar3[iVar8] = uVar4;
        iVar8 = iVar8 + 1;
      } while (iVar7 != 0);
      puVar5 = puVar3 + iVar8;
    }
    *puVar5 = 0;
  }
  return puVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2d2207
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
CALL 0x00106210
TEST EAX,EAX
JZ 0x00106e87
MOV ESI,dword ptr [EAX]
MOV EBP,EAX
TEST ESI,ESI
JZ 0x00106e80
LEA EAX,[EAX + 0x10]
XOR EDX,EDX
LEA ESI,[ESI]
ADD EAX,0x10
MOV ECX,dword ptr [EAX + -0x10]
ADD EDX,0x1
TEST ECX,ECX
JNZ 0x00106e20
ADD EDX,0x1
SUB ESP,0x8
PUSH 0x4
PUSH EDX
CALL 0x000317b0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00106e8b
MOV EDX,dword ptr [EBP]
XOR ESI,ESI
ADD EBP,0x10
TEST EDX,EDX
JZ 0x00106e6f
SUB ESP,0xc
ADD EBP,0x10
PUSH EDX
CALL 0x00030c00
MOV EDX,dword ptr [EBP + -0x10]
ADD ESP,0x10
MOV dword ptr [EDI + ESI*0x4],EAX
ADD ESI,0x1
TEST EDX,EDX
JNZ 0x00106e50
LEA EAX,[EDI + ESI*0x4]
MOV dword ptr [EAX],0x0
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,0x1
JMP 0x00106e30
XOR EDI,EDI
JMP 0x00106e75
CALL 0x00032f50
MOV ESI,EAX
CALL 0x000305f0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00031c10
ADD ESP,0x10
PUSH EAX
MOV EDI,EAX
LEA EAX,[EBX + 0xffec8a40]
PUSH EAX
LEA EAX,[EBX + 0xffec63d6]
PUSH EAX
LEA EAX,[EBX + 0xffee2998]
PUSH 0x2bc
PUSH 0xa23
PUSH EAX
LEA EAX,[EBX + 0xffee2a56]
PUSH EAX
PUSH ESI
CALL 0x00032e80
ADD ESP,0x14
PUSH EDI
CALL 0x00032950
MOV dword ptr [ESP],ESI
CALL 0x000320b0
MOV dword ptr [ESP],ESI
CALL 0x000335b0
ADD ESP,0x10
CALL 0x000308c0
SUB ESP,0xc
PUSH 0x1
CALL 0x00031270
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * GetCommandOptions(void)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}\n\n" comment (function_definition "undefined4 * GetCommandOptions(void)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* GetCommandOptions(void)" * (function_declarator "GetCommandOptions(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)FUN_00106210();" (assignment_expression "piVar1 = (int *)FUN_00106210()" identifier = (cast_expression "(int *)FUN_00106210()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00106210()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined4 *)0x0;\n  }" { (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" else (compound_statement "{\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" { (if_statement "if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n      iVar7 = 1;\n    }" { (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" else (compound_statement "{\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = piVar1;" (assignment_expression "piVar2 = piVar1" identifier = identifier) ;) (do_statement "do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);" do (compound_statement "{\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      }" { (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) (expression_statement "piVar2 = piVar2 + 4;" (assignment_expression "piVar2 = piVar2 + 4" identifier = (binary_expression "piVar2 + 4" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) ;) (expression_statement "iVar7 = iVar7 + 2;" (assignment_expression "iVar7 = iVar7 + 2" identifier = (binary_expression "iVar7 + 2" identifier + number_literal)) ;) }))) (expression_statement "puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);" (assignment_expression "puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4)" identifier = (cast_expression "(undefined4 *)AcquireQuantumMemory(iVar7,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(iVar7,4)" identifier (argument_list "(iVar7,4)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }" if (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)) )) (compound_statement "{\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }" { (expression_statement "uVar4 = AcquireExceptionInfo();" (assignment_expression "uVar4 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = GetExceptionMessage(*piVar1);" (assignment_expression "uVar6 = GetExceptionMessage(*piVar1)" identifier = (call_expression "GetExceptionMessage(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);" (call_expression "ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6)" identifier (argument_list "(uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6)" ( identifier , (string_literal ""MagickCore/option.c"" " string_content ") , (string_literal ""GetCommandOptions"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "DestroyString(uVar6);" (call_expression "DestroyString(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "CatchException(uVar4);" (call_expression "CatchException(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar4);" (call_expression "DestroyExceptionInfo(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar7 = *piVar1;" (assignment_expression "iVar7 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (if_statement "if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }" { (do_statement "do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);" do (compound_statement "{\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      }" { (expression_statement "piVar1 = piVar1 + 4;" (assignment_expression "piVar1 = piVar1 + 4" identifier = (binary_expression "piVar1 + 4" identifier + number_literal)) ;) (expression_statement "uVar4 = AcquireString(iVar7);" (assignment_expression "uVar4 = AcquireString(iVar7)" identifier = (call_expression "AcquireString(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "iVar7 = *piVar1;" (assignment_expression "iVar7 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "puVar3[iVar8] = uVar4;" (assignment_expression "puVar3[iVar8] = uVar4" (subscript_expression "puVar3[iVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (expression_statement "puVar5 = puVar3 + iVar8;" (assignment_expression "puVar5 = puVar3 + iVar8" identifier = (binary_expression "puVar3 + iVar8" identifier + identifier)) ;) })) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }))) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nchar ** GetCommandOptions(CommandOption option)\n\n{\n  OptionInfo *pOVar1;\n  OptionInfo *pOVar2;\n  char **ppcVar3;\n  char *pcVar4;\n  char **ppcVar5;\n  ExceptionInfo *exception;\n  int *piVar6;\n  char *pcVar7;\n  int iVar8;\n  size_t count;\n  int iVar9;\n  \n  pOVar1 = GetOptionInfo(option);\n  if (pOVar1 == (OptionInfo *)0x0) {\n    ppcVar3 = (char **)0x0;\n  }\n  else {\n    if (pOVar1->mnemonic == (char *)0x0) {\n      count = 1;\n    }\n    else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }\n    ppcVar3 = (char **)AcquireQuantumMemory(count,4);\n    if (ppcVar3 == (char **)0x0) {\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    pcVar7 = pOVar1->mnemonic;\n    iVar9 = 0;\n    ppcVar5 = ppcVar3;\n    if (pcVar7 != (char *)0x0) {\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }\n    *ppcVar5 = (char *)0x0;\n  }\n  return ppcVar3;\n}\n\n" comment comment comment (function_definition "char ** GetCommandOptions(CommandOption option)\n\n{\n  OptionInfo *pOVar1;\n  OptionInfo *pOVar2;\n  char **ppcVar3;\n  char *pcVar4;\n  char **ppcVar5;\n  ExceptionInfo *exception;\n  int *piVar6;\n  char *pcVar7;\n  int iVar8;\n  size_t count;\n  int iVar9;\n  \n  pOVar1 = GetOptionInfo(option);\n  if (pOVar1 == (OptionInfo *)0x0) {\n    ppcVar3 = (char **)0x0;\n  }\n  else {\n    if (pOVar1->mnemonic == (char *)0x0) {\n      count = 1;\n    }\n    else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }\n    ppcVar3 = (char **)AcquireQuantumMemory(count,4);\n    if (ppcVar3 == (char **)0x0) {\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    pcVar7 = pOVar1->mnemonic;\n    iVar9 = 0;\n    ppcVar5 = ppcVar3;\n    if (pcVar7 != (char *)0x0) {\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }\n    *ppcVar5 = (char *)0x0;\n  }\n  return ppcVar3;\n}" primitive_type (pointer_declarator "** GetCommandOptions(CommandOption option)" * (pointer_declarator "* GetCommandOptions(CommandOption option)" * (function_declarator "GetCommandOptions(CommandOption option)" identifier (parameter_list "(CommandOption option)" ( (parameter_declaration "CommandOption option" type_identifier identifier) ))))) (compound_statement "{\n  OptionInfo *pOVar1;\n  OptionInfo *pOVar2;\n  char **ppcVar3;\n  char *pcVar4;\n  char **ppcVar5;\n  ExceptionInfo *exception;\n  int *piVar6;\n  char *pcVar7;\n  int iVar8;\n  size_t count;\n  int iVar9;\n  \n  pOVar1 = GetOptionInfo(option);\n  if (pOVar1 == (OptionInfo *)0x0) {\n    ppcVar3 = (char **)0x0;\n  }\n  else {\n    if (pOVar1->mnemonic == (char *)0x0) {\n      count = 1;\n    }\n    else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }\n    ppcVar3 = (char **)AcquireQuantumMemory(count,4);\n    if (ppcVar3 == (char **)0x0) {\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    pcVar7 = pOVar1->mnemonic;\n    iVar9 = 0;\n    ppcVar5 = ppcVar3;\n    if (pcVar7 != (char *)0x0) {\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }\n    *ppcVar5 = (char *)0x0;\n  }\n  return ppcVar3;\n}" { (declaration "OptionInfo *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "OptionInfo *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "ExceptionInfo *exception;" type_identifier (pointer_declarator "*exception" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "size_t count;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "pOVar1 = GetOptionInfo(option);" (assignment_expression "pOVar1 = GetOptionInfo(option)" identifier = (call_expression "GetOptionInfo(option)" identifier (argument_list "(option)" ( identifier )))) ;) (if_statement "if (pOVar1 == (OptionInfo *)0x0) {\n    ppcVar3 = (char **)0x0;\n  }\n  else {\n    if (pOVar1->mnemonic == (char *)0x0) {\n      count = 1;\n    }\n    else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }\n    ppcVar3 = (char **)AcquireQuantumMemory(count,4);\n    if (ppcVar3 == (char **)0x0) {\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    pcVar7 = pOVar1->mnemonic;\n    iVar9 = 0;\n    ppcVar5 = ppcVar3;\n    if (pcVar7 != (char *)0x0) {\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }\n    *ppcVar5 = (char *)0x0;\n  }" if (parenthesized_expression "(pOVar1 == (OptionInfo *)0x0)" ( (binary_expression "pOVar1 == (OptionInfo *)0x0" identifier == (cast_expression "(OptionInfo *)0x0" ( (type_descriptor "OptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ppcVar3 = (char **)0x0;\n  }" { (expression_statement "ppcVar3 = (char **)0x0;" (assignment_expression "ppcVar3 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n    if (pOVar1->mnemonic == (char *)0x0) {\n      count = 1;\n    }\n    else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }\n    ppcVar3 = (char **)AcquireQuantumMemory(count,4);\n    if (ppcVar3 == (char **)0x0) {\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    pcVar7 = pOVar1->mnemonic;\n    iVar9 = 0;\n    ppcVar5 = ppcVar3;\n    if (pcVar7 != (char *)0x0) {\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }\n    *ppcVar5 = (char *)0x0;\n  }" else (compound_statement "{\n    if (pOVar1->mnemonic == (char *)0x0) {\n      count = 1;\n    }\n    else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }\n    ppcVar3 = (char **)AcquireQuantumMemory(count,4);\n    if (ppcVar3 == (char **)0x0) {\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }\n    pcVar7 = pOVar1->mnemonic;\n    iVar9 = 0;\n    ppcVar5 = ppcVar3;\n    if (pcVar7 != (char *)0x0) {\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }\n    *ppcVar5 = (char *)0x0;\n  }" { (if_statement "if (pOVar1->mnemonic == (char *)0x0) {\n      count = 1;\n    }\n    else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }" if (parenthesized_expression "(pOVar1->mnemonic == (char *)0x0)" ( (binary_expression "pOVar1->mnemonic == (char *)0x0" (field_expression "pOVar1->mnemonic" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      count = 1;\n    }" { (expression_statement "count = 1;" (assignment_expression "count = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }" else (compound_statement "{\n      iVar9 = 0;\n      pOVar2 = pOVar1;\n      do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);\n      count = iVar8 + 2;\n    }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "pOVar2 = pOVar1;" (assignment_expression "pOVar2 = pOVar1" identifier = identifier) ;) (do_statement "do {\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      } while (pOVar2->mnemonic != (char *)0x0);" do (compound_statement "{\n        iVar8 = iVar9;\n        pOVar2 = pOVar2 + 1;\n        iVar9 = iVar8 + 1;\n      }" { (expression_statement "iVar8 = iVar9;" (assignment_expression "iVar8 = iVar9" identifier = identifier) ;) (expression_statement "pOVar2 = pOVar2 + 1;" (assignment_expression "pOVar2 = pOVar2 + 1" identifier = (binary_expression "pOVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar9 = iVar8 + 1;" (assignment_expression "iVar9 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pOVar2->mnemonic != (char *)0x0)" ( (binary_expression "pOVar2->mnemonic != (char *)0x0" (field_expression "pOVar2->mnemonic" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "count = iVar8 + 2;" (assignment_expression "count = iVar8 + 2" identifier = (binary_expression "iVar8 + 2" identifier + number_literal)) ;) }))) (expression_statement "ppcVar3 = (char **)AcquireQuantumMemory(count,4);" (assignment_expression "ppcVar3 = (char **)AcquireQuantumMemory(count,4)" identifier = (cast_expression "(char **)AcquireQuantumMemory(count,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "AcquireQuantumMemory(count,4)" identifier (argument_list "(count,4)" ( identifier , number_literal ))))) ;) (if_statement "if (ppcVar3 == (char **)0x0) {\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }" if (parenthesized_expression "(ppcVar3 == (char **)0x0)" ( (binary_expression "ppcVar3 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      exception = AcquireExceptionInfo();\n      piVar6 = __errno_location();\n      pcVar7 = GetExceptionMessage(*piVar6);\n      ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);\n      DestroyString(pcVar7);\n      CatchException(exception);\n      DestroyExceptionInfo(exception);\n      MagickCoreTerminus();\n                    /* WARNING: Subroutine does not return */\n      _exit(1);\n    }" { (expression_statement "exception = AcquireExceptionInfo();" (assignment_expression "exception = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar7 = GetExceptionMessage(*piVar6);" (assignment_expression "pcVar7 = GetExceptionMessage(*piVar6)" identifier = (call_expression "GetExceptionMessage(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7);" (call_expression "ThrowMagickException\n                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7)" identifier (argument_list "(exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,\n                 "MemoryAllocationFailed","`%s\'",pcVar7)" ( identifier , (string_literal ""MagickCore/option.c"" " string_content ") , (string_literal ""GetCommandOptions"" " string_content ") , number_literal , identifier , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "DestroyString(pcVar7);" (call_expression "DestroyString(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "CatchException(exception);" (call_expression "CatchException(exception)" identifier (argument_list "(exception)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(exception);" (call_expression "DestroyExceptionInfo(exception)" identifier (argument_list "(exception)" ( identifier ))) ;) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "pcVar7 = pOVar1->mnemonic;" (assignment_expression "pcVar7 = pOVar1->mnemonic" identifier = (field_expression "pOVar1->mnemonic" identifier -> field_identifier)) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "ppcVar5 = ppcVar3;" (assignment_expression "ppcVar5 = ppcVar3" identifier = identifier) ;) (if_statement "if (pcVar7 != (char *)0x0) {\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);\n      ppcVar5 = ppcVar3 + iVar9;\n    }" { (do_statement "do {\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      } while (pcVar7 != (char *)0x0);" do (compound_statement "{\n        pOVar1 = pOVar1 + 1;\n        pcVar4 = AcquireString(pcVar7);\n        pcVar7 = pOVar1->mnemonic;\n        ppcVar3[iVar9] = pcVar4;\n        iVar9 = iVar9 + 1;\n      }" { (expression_statement "pOVar1 = pOVar1 + 1;" (assignment_expression "pOVar1 = pOVar1 + 1" identifier = (binary_expression "pOVar1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = AcquireString(pcVar7);" (assignment_expression "pcVar4 = AcquireString(pcVar7)" identifier = (call_expression "AcquireString(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pcVar7 = pOVar1->mnemonic;" (assignment_expression "pcVar7 = pOVar1->mnemonic" identifier = (field_expression "pOVar1->mnemonic" identifier -> field_identifier)) ;) (expression_statement "ppcVar3[iVar9] = pcVar4;" (assignment_expression "ppcVar3[iVar9] = pcVar4" (subscript_expression "ppcVar3[iVar9]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "ppcVar5 = ppcVar3 + iVar9;" (assignment_expression "ppcVar5 = ppcVar3 + iVar9" identifier = (binary_expression "ppcVar3 + iVar9" identifier + identifier)) ;) })) (expression_statement "*ppcVar5 = (char *)0x0;" (assignment_expression "*ppcVar5 = (char *)0x0" (pointer_expression "*ppcVar5" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (return_statement "return ppcVar3;" return identifier ;) })))
(translation_unit "undefined4 * GetCommandOptions(void)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}\n\n" (function_definition "undefined4 * GetCommandOptions(void)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* GetCommandOptions(void)" * (function_declarator "GetCommandOptions(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)FUN_00106210();" (assignment_expression "piVar1 = (int *)FUN_00106210()" identifier = (cast_expression "(int *)FUN_00106210()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00106210()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined4 *)0x0;\n  }" { (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" else (compound_statement "{\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" { (if_statement "if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n      iVar7 = 1;\n    }" { (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" else (compound_statement "{\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = piVar1;" (assignment_expression "piVar2 = piVar1" identifier = identifier) ;) (do_statement "do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);" do (compound_statement "{\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      }" { (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) (expression_statement "piVar2 = piVar2 + 4;" (assignment_expression "piVar2 = piVar2 + 4" identifier = (binary_expression "piVar2 + 4" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) ;) (expression_statement "iVar7 = iVar7 + 2;" (assignment_expression "iVar7 = iVar7 + 2" identifier = (binary_expression "iVar7 + 2" identifier + number_literal)) ;) }))) (expression_statement "puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);" (assignment_expression "puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4)" identifier = (cast_expression "(undefined4 *)AcquireQuantumMemory(iVar7,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(iVar7,4)" identifier (argument_list "(iVar7,4)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }" if (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)) )) (compound_statement "{\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }" { (expression_statement "uVar4 = AcquireExceptionInfo();" (assignment_expression "uVar4 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = GetExceptionMessage(*piVar1);" (assignment_expression "uVar6 = GetExceptionMessage(*piVar1)" identifier = (call_expression "GetExceptionMessage(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);" (call_expression "ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6)" identifier (argument_list "(uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6)" ( identifier , (string_literal ""MagickCore/option.c"" " string_content ") , (string_literal ""GetCommandOptions"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "DestroyString(uVar6);" (call_expression "DestroyString(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "CatchException(uVar4);" (call_expression "CatchException(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar4);" (call_expression "DestroyExceptionInfo(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" identifier (argument_list "()" ( ))) ;) (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar7 = *piVar1;" (assignment_expression "iVar7 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (if_statement "if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }" { (do_statement "do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);" do (compound_statement "{\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      }" { (expression_statement "piVar1 = piVar1 + 4;" (assignment_expression "piVar1 = piVar1 + 4" identifier = (binary_expression "piVar1 + 4" identifier + number_literal)) ;) (expression_statement "uVar4 = AcquireString(iVar7);" (assignment_expression "uVar4 = AcquireString(iVar7)" identifier = (call_expression "AcquireString(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "iVar7 = *piVar1;" (assignment_expression "iVar7 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "puVar3[iVar8] = uVar4;" (assignment_expression "puVar3[iVar8] = uVar4" (subscript_expression "puVar3[iVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (expression_statement "puVar5 = puVar3 + iVar8;" (assignment_expression "puVar5 = puVar3 + iVar8" identifier = (binary_expression "puVar3 + iVar8" identifier + identifier)) ;) })) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }))) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = 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 + IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 * GetCommandOptions(void)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}" (type_identifier "undefined4") (pointer_declarator "* GetCommandOptions(void)" (* "*") (function_declarator "GetCommandOptions(void)" (identifier "GetCommandOptions") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  \n  piVar1 = (int *)FUN_00106210();\n  if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }\n  return puVar3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "piVar1 = (int *)FUN_00106210();" (assignment_expression "piVar1 = (int *)FUN_00106210()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00106210()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00106210()" (identifier "FUN_00106210") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" (else "else") (compound_statement "{\n    if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }\n    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);\n    if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }\n    iVar7 = *piVar1;\n    iVar8 = 0;\n    puVar5 = puVar3;\n    if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }\n    *puVar5 = 0;\n  }" ({ "{") (if_statement "if (*piVar1 == 0) {\n      iVar7 = 1;\n    }\n    else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" (if "if") (parenthesized_expression "(*piVar1 == 0)" (( "(") (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar7 = 1;\n    }" ({ "{") (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" (identifier "iVar7") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" (else "else") (compound_statement "{\n      iVar8 = 0;\n      piVar2 = piVar1;\n      do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);\n      iVar7 = iVar7 + 2;\n    }" ({ "{") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = piVar1;" (assignment_expression "piVar2 = piVar1" (identifier "piVar2") (= "=") (identifier "piVar1")) (; ";")) (do_statement "do {\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      } while (*piVar2 != 0);" (do "do") (compound_statement "{\n        iVar7 = iVar8;\n        piVar2 = piVar2 + 4;\n        iVar8 = iVar7 + 1;\n      }" ({ "{") (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" (identifier "iVar7") (= "=") (identifier "iVar8")) (; ";")) (expression_statement "piVar2 = piVar2 + 4;" (assignment_expression "piVar2 = piVar2 + 4" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar7 = iVar7 + 2;" (assignment_expression "iVar7 = iVar7 + 2" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 2" (identifier "iVar7") (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (expression_statement "puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);" (assignment_expression "puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)AcquireQuantumMemory(iVar7,4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireQuantumMemory(iVar7,4)" (identifier "AcquireQuantumMemory") (argument_list "(iVar7,4)" (( "(") (identifier "iVar7") (, ",") (number_literal "4") () ")"))))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }" (if "if") (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"))) () ")")) (compound_statement "{\n      uVar4 = AcquireExceptionInfo();\n      piVar1 = __errno_location();\n      uVar6 = GetExceptionMessage(*piVar1);\n      ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);\n      DestroyString(uVar6);\n      CatchException(uVar4);\n      DestroyExceptionInfo(uVar4);\n      MagickCoreTerminus();\n                    \n      _exit(1);\n    }" ({ "{") (expression_statement "uVar4 = AcquireExceptionInfo();" (assignment_expression "uVar4 = AcquireExceptionInfo()" (identifier "uVar4") (= "=") (call_expression "AcquireExceptionInfo()" (identifier "AcquireExceptionInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" (identifier "piVar1") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar6 = GetExceptionMessage(*piVar1);" (assignment_expression "uVar6 = GetExceptionMessage(*piVar1)" (identifier "uVar6") (= "=") (call_expression "GetExceptionMessage(*piVar1)" (identifier "GetExceptionMessage") (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")")))) (; ";")) (expression_statement "ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6);" (call_expression "ThrowMagickException\n                (uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6)" (identifier "ThrowMagickException") (argument_list "(uVar4,"MagickCore/option.c","GetCommandOptions",0xa23,700,"MemoryAllocationFailed",\n                 "`%s\'",uVar6)" (( "(") (identifier "uVar4") (, ",") (string_literal ""MagickCore/option.c"" (" """) (string_content "MagickCore/option.c") (" """)) (, ",") (string_literal ""GetCommandOptions"" (" """) (string_content "GetCommandOptions") (" """)) (, ",") (number_literal "0xa23") (, ",") (number_literal "700") (, ",") (string_literal ""MemoryAllocationFailed"" (" """) (string_content "MemoryAllocationFailed") (" """)) (, ",") (string_literal ""`%s\'"" (" """) (string_content "`%s") (escape_sequence "\'") (" """)) (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "DestroyString(uVar6);" (call_expression "DestroyString(uVar6)" (identifier "DestroyString") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "CatchException(uVar4);" (call_expression "CatchException(uVar4)" (identifier "CatchException") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "DestroyExceptionInfo(uVar4);" (call_expression "DestroyExceptionInfo(uVar4)" (identifier "DestroyExceptionInfo") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "MagickCoreTerminus();" (call_expression "MagickCoreTerminus()" (identifier "MagickCoreTerminus") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "_exit(1);" (call_expression "_exit(1)" (identifier "_exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar7 = *piVar1;" (assignment_expression "iVar7 = *piVar1" (identifier "iVar7") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" (identifier "puVar5") (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (iVar7 != 0) {\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);\n      puVar5 = puVar3 + iVar8;\n    }" ({ "{") (do_statement "do {\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      } while (iVar7 != 0);" (do "do") (compound_statement "{\n        piVar1 = piVar1 + 4;\n        uVar4 = AcquireString(iVar7);\n        iVar7 = *piVar1;\n        puVar3[iVar8] = uVar4;\n        iVar8 = iVar8 + 1;\n      }" ({ "{") (expression_statement "piVar1 = piVar1 + 4;" (assignment_expression "piVar1 = piVar1 + 4" (identifier "piVar1") (= "=") (binary_expression "piVar1 + 4" (identifier "piVar1") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar4 = AcquireString(iVar7);" (assignment_expression "uVar4 = AcquireString(iVar7)" (identifier "uVar4") (= "=") (call_expression "AcquireString(iVar7)" (identifier "AcquireString") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")")))) (; ";")) (expression_statement "iVar7 = *piVar1;" (assignment_expression "iVar7 = *piVar1" (identifier "iVar7") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "puVar3[iVar8] = uVar4;" (assignment_expression "puVar3[iVar8] = uVar4" (subscript_expression "puVar3[iVar8]" (identifier "puVar3") ([ "[") (identifier "iVar8") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar5 = puVar3 + iVar8;" (assignment_expression "puVar5 = puVar3 + iVar8" (identifier "puVar5") (= "=") (binary_expression "puVar3 + iVar8" (identifier "puVar3") (+ "+") (identifier "iVar8"))) (; ";")) (} "}"))) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

char ** function_1(type_1 option)

{
  type_2 *var_2;
  type_2 *var_3;
  char **var_6;
  char *pcVar4;
  char **ppcVar5;
  type_3 *exception;
  int *piVar6;
  char *var_16;
  int var_4;
  size_t count;
  int var_18;
  
  var_2 = var_1(option);
  if (var_2 == (type_2 *)0x0) {
    var_6 = (char **)0x0;
  }
  else {
    if (var_2->mnemonic == (char *)0x0) {
      count = 1;
    }
    else {
      var_18 = 0;
      var_3 = var_2;
      do {
        var_4 = var_18;
        var_3 = var_3 + 1;
        var_18 = var_4 + 1;
      } while (var_3->mnemonic != (char *)0x0);
      count = var_4 + 2;
    }
    var_6 = (char **)var_5(count,4);
    if (var_6 == (char **)0x0) {
      exception = var_7();
      piVar6 = var_8();
      var_16 = var_9(*piVar6);
      var_10
                (exception,"MagickCore/option.c","GetCommandOptions",0xa23,FatalErrorException,
                 "MemoryAllocationFailed","`%s\'",var_16);
      var_11(var_16);
      var_12(exception);
      var_13(exception);
      var_14();
                    /* WARNING: Subroutine does not return */
      var_15(1);
    }
    var_16 = var_2->mnemonic;
    var_18 = 0;
    ppcVar5 = var_6;
    if (var_16 != (char *)0x0) {
      do {
        var_2 = var_2 + 1;
        pcVar4 = var_17(var_16);
        var_16 = var_2->mnemonic;
        var_6[var_18] = pcVar4;
        var_18 = var_18 + 1;
      } while (var_16 != (char *)0x0);
      ppcVar5 = var_6 + var_18;
    }
    *ppcVar5 = (char *)0x0;
  }
  return var_6;
}


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

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

undefined4 * MASKED(void)

{
  int *piVar1;
  int *piVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  
  piVar1 = (int *)FUN_00106210();
  if (piVar1 == (int *)0x0) {
    puVar3 = (undefined4 *)0x0;
  }
  else {
    if (*piVar1 == 0) {
      iVar7 = 1;
    }
    else {
      iVar8 = 0;
      piVar2 = piVar1;
      do {
        iVar7 = iVar8;
        piVar2 = piVar2 + 4;
        iVar8 = iVar7 + 1;
      } while (*piVar2 != 0);
      iVar7 = iVar7 + 2;
    }
    puVar3 = (undefined4 *)AcquireQuantumMemory(iVar7,4);
    if (puVar3 == (undefined4 *)0x0) {
      uVar4 = AcquireExceptionInfo();
      piVar1 = __errno_location();
      uVar6 = GetExceptionMessage(*piVar1);
      ThrowMagickException
                (uVar4,"MagickCore/option.c","MASKED",0xa23,700,"MemoryAllocationFailed",
                 "`%s\'",uVar6);
      DestroyString(uVar6);
      CatchException(uVar4);
      DestroyExceptionInfo(uVar4);
      MagickCoreTerminus();
                    /* WARNING: Subroutine does not return */
      _exit(1);
    }
    iVar7 = *piVar1;
    iVar8 = 0;
    puVar5 = puVar3;
    if (iVar7 != 0) {
      do {
        piVar1 = piVar1 + 4;
        uVar4 = AcquireString(iVar7);
        iVar7 = *piVar1;
        puVar3[iVar8] = uVar4;
        iVar8 = iVar8 + 1;
      } while (iVar7 != 0);
      puVar5 = puVar3 + iVar8;
    }
    *puVar5 = 0;
  }
  return puVar3;
}

