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

MagickCLI * AcquireMagickCLI(ImageInfo *image_info,ExceptionInfo *exception)

{
  char *pcVar1;
  undefined4 uVar2;
  MagickCLI *pMVar3;
  size_t sVar4;
  Image *pIVar5;
  MagickBooleanType MVar6;
  DrawInfo *pDVar7;
  QuantizeInfo *pQVar8;
  ExceptionInfo *pEVar9;
  ImageInfo *pIVar10;
  int *piVar11;
  undefined4 uVar12;
  int in_GS_OFFSET;
  size_t depth;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xe4a39;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  depth = 0x10;
  uVar2 = GetMagickQuantumDepth(&depth);
  if (depth != 0x10) {
    uVar12 = AcquireExceptionInfo();
    ThrowMagickException
              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",
               &DAT_000e91ee,uVar2);
    CatchException(uVar12);
    DestroyExceptionInfo(uVar12);
    MagickWandTerminus();
                    /* WARNING: Subroutine does not return */
    _exit(-0xe5);
  }
  pMVar3 = (MagickCLI *)AcquireMagickMemory(0x104c);
  if (pMVar3 != (MagickCLI *)0x0) {
    sVar4 = AcquireWandId();
    pcVar1 = (pMVar3->wand).name;
    (pMVar3->wand).id = sVar4;
    FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);
    pIVar5 = (Image *)NewImageList();
    (pMVar3->wand).images = pIVar5;
    if (image_info == (ImageInfo *)0x0) {
      pIVar10 = (ImageInfo *)AcquireImageInfo();
      (pMVar3->wand).image_info = pIVar10;
    }
    else {
      (pMVar3->wand).image_info = image_info;
    }
    if (exception == (ExceptionInfo *)0x0) {
      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();
      (pMVar3->wand).exception = pEVar9;
    }
    else {
      (pMVar3->wand).exception = exception;
    }
    MVar6 = IsEventLogging();
    (pMVar3->wand).signature = 0xabacadab;
    (pMVar3->wand).debug = MVar6;
    pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0);
    pMVar3->draw_info = pDVar7;
    pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info);
    MVar6 = (pMVar3->wand).debug;
    pMVar3->process_flags = MagickCommandOptionFlags;
    pMVar3->quantize_info = pQVar8;
    pMVar3->location = "from \"%s\"";
    pMVar3->command = (OptionInfo *)0x0;
    pMVar3->image_list_stack = (Stack *)0x0;
    pMVar3->image_info_stack = (Stack *)0x0;
    pMVar3->filename = "unknown";
    pMVar3->line = 0;
    pMVar3->column = 0;
    pMVar3->signature = 0xabacadab;
    if (MVar6 != MagickFalse) {
      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);
    }
    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
      return pMVar3;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  uVar2 = AcquireExceptionInfo();
  piVar11 = __errno_location();
  uVar12 = GetExceptionMessage(*piVar11);
  ThrowMagickException
            (uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",
             &DAT_000e91ee,uVar12);
  CatchException(uVar2);
  DestroyExceptionInfo(uVar2);
  MagickWandTerminus();
                    /* WARNING: Subroutine does not return */
  _exit(1);
}



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

uint * AcquireMagickCLI(uint param_1,uint param_2)

{
  undefined4 uVar1;
  uint *puVar2;
  uint uVar3;
  int *piVar4;
  undefined4 uVar5;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xe4a39;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0x10;
  uVar1 = GetMagickQuantumDepth(&local_24);
  if (local_24 != 0x10) {
    uVar5 = AcquireExceptionInfo();
    ThrowMagickException
              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",
               &DAT_000e91ee,uVar1);
    CatchException(uVar5);
    DestroyExceptionInfo(uVar5);
    MagickWandTerminus();
                    /* WARNING: Subroutine does not return */
    _exit(-0xe5);
  }
  puVar2 = (uint *)AcquireMagickMemory(0x104c);
  if (puVar2 != (uint *)0x0) {
    uVar3 = AcquireWandId();
    *puVar2 = uVar3;
    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);
    uVar3 = NewImageList();
    puVar2[0x401] = uVar3;
    if (param_1 == 0) {
      uVar3 = AcquireImageInfo();
      puVar2[0x402] = uVar3;
    }
    else {
      puVar2[0x402] = param_1;
    }
    if (param_2 == 0) {
      uVar3 = AcquireExceptionInfo();
      puVar2[0x403] = uVar3;
    }
    else {
      puVar2[0x403] = param_2;
    }
    uVar3 = IsEventLogging();
    puVar2[0x407] = 0xabacadab;
    puVar2[0x406] = uVar3;
    uVar3 = CloneDrawInfo(puVar2[0x402],0);
    puVar2[0x409] = uVar3;
    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);
    puVar2[0x40a] = 0x8fff;
    puVar2[0x408] = uVar3;
    puVar2[0x40e] = (uint)"from \"%s\"";
    puVar2[0x40b] = 0;
    puVar2[0x40c] = 0;
    puVar2[0x40d] = 0;
    puVar2[0x40f] = (uint)"unknown";
    puVar2[0x410] = 0;
    puVar2[0x411] = 0;
    puVar2[0x412] = 0xabacadab;
    if (puVar2[0x406] != 0) {
      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);
    }
    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
      return puVar2;
    }
                    /* WARNING: Subroutine does not return */
    FUN_000e7d60();
  }
  uVar1 = AcquireExceptionInfo();
  piVar4 = __errno_location();
  uVar5 = GetExceptionMessage(*piVar4);
  ThrowMagickException
            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",
             &DAT_000e91ee,uVar5);
  CatchException(uVar1);
  DestroyExceptionInfo(uVar1);
  MagickWandTerminus();
                    /* WARNING: Subroutine does not return */
  _exit(1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001e920
ADD EBX,0x855c7
SUB ESP,0x48
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x38],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x34],0x10
MOV ESI,dword ptr [ESP + 0x60]
PUSH EAX
CALL 0x0001e090
ADD ESP,0x10
CMP dword ptr [ESP + 0x28],0x10
JNZ 0x000e4c7b
SUB ESP,0xc
PUSH 0x104c
CALL 0x0001c660
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000e4c15
CALL 0x0001d720
LEA EDX,[EBP + 0x4]
SUB ESP,0x10
MOV dword ptr [ESP + 0x24],EDX
MOV dword ptr [EBP],EAX
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EBX + 0xfff9a07c]
MOV dword ptr [ESP + 0x1c],0x0
FILD qword ptr [ESP + 0x18]
FSTP qword ptr [ESP]
PUSH EAX
LEA EAX,[EBX + 0xfff88f3a]
PUSH EAX
PUSH 0x1000
PUSH EDX
CALL 0x0001e2f0
ADD ESP,0x20
CALL 0x0001e010
MOV dword ptr [EBP + 0x1004],EAX
TEST EDI,EDI
JZ 0x000e4c00
MOV dword ptr [EBP + 0x1008],EDI
TEST ESI,ESI
JZ 0x000e4be8
MOV dword ptr [EBP + 0x100c],ESI
CALL 0x0001c950
SUB ESP,0x8
MOV dword ptr [EBP + 0x101c],0xabacadab
MOV dword ptr [EBP + 0x1018],EAX
PUSH 0x0
PUSH dword ptr [EBP + 0x1008]
CALL 0x0001d680
MOV dword ptr [EBP + 0x1024],EAX
POP EAX
PUSH dword ptr [EBP + 0x1008]
CALL 0x0001e530
MOV EDX,dword ptr [EBP + 0x1018]
ADD ESP,0x10
MOV dword ptr [EBP + 0x1028],0x8fff
MOV dword ptr [EBP + 0x1020],EAX
LEA EAX,[EBX + 0xfff9a08a]
MOV dword ptr [EBP + 0x1038],EAX
LEA EAX,[EBX + 0xfff9a094]
MOV dword ptr [EBP + 0x102c],0x0
MOV dword ptr [EBP + 0x1030],0x0
MOV dword ptr [EBP + 0x1034],0x0
MOV dword ptr [EBP + 0x103c],EAX
MOV dword ptr [EBP + 0x1040],0x0
MOV dword ptr [EBP + 0x1044],0x0
MOV dword ptr [EBP + 0x1048],0xabacadab
TEST EDX,EDX
JZ 0x000e4bce
LEA EAX,[EBX + 0xfff91a64]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
LEA EAX,[EBX + 0xfff9a0ec]
PUSH 0x83
PUSH EAX
LEA EAX,[EBX + 0xfff9a067]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
ADD ESP,0x20
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x000e4c10
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0001de80
MOV dword ptr [EBP + 0x100c],EAX
JMP 0x000e4af8
CALL 0x0001d740
MOV dword ptr [EBP + 0x1008],EAX
JMP 0x000e4aea
CALL 0x000e7d60
CALL 0x0001de80
MOV ESI,EAX
CALL 0x0001c430
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0001d220
ADD ESP,0x10
PUSH EAX
LEA EAX,[EBX + 0xfff7f1ee]
PUSH EAX
LEA EAX,[EBX + 0xfff7f1f3]
PUSH EAX
LEA EAX,[EBX + 0xfff9a0ec]
PUSH 0x2bc
PUSH 0x5b
PUSH EAX
LEA EAX,[EBX + 0xfff9a067]
PUSH EAX
PUSH ESI
CALL 0x0001de10
ADD ESP,0x14
PUSH ESI
CALL 0x0001d4a0
MOV dword ptr [ESP],ESI
CALL 0x0001e3a0
ADD ESP,0x10
CALL 0x0001ca30
SUB ESP,0xc
PUSH 0x1
CALL 0x0001cbe0
MOV EBP,EAX
CALL 0x0001de80
PUSH EBP
MOV ESI,EAX
LEA EAX,[EBX + 0xfff7f1ee]
PUSH EAX
LEA EAX,[EBX + 0xfff88f25]
PUSH EAX
LEA EAX,[EBX + 0xfff9a0ec]
PUSH 0x1d6
PUSH 0x54
PUSH EAX
LEA EAX,[EBX + 0xfff9a067]
PUSH EAX
PUSH ESI
CALL 0x0001de10
ADD ESP,0x14
PUSH ESI
CALL 0x0001d4a0
MOV dword ptr [ESP],ESI
CALL 0x0001e3a0
ADD ESP,0x10
CALL 0x0001ca30
SUB ESP,0xc
PUSH 0xffffff1b
CALL 0x0001cbe0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint * AcquireMagickCLI(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n  _exit(1);\n}\n\n" comment (function_definition "uint * AcquireMagickCLI(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n  _exit(1);\n}" type_identifier (pointer_declarator "* AcquireMagickCLI(uint param_1,uint param_2)" * (function_declarator "AcquireMagickCLI(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n  _exit(1);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xe4a39;" (assignment_expression "uStack_14 = 0xe4a39" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0x10;" (assignment_expression "local_24 = 0x10" identifier = number_literal) ;) (expression_statement "uVar1 = GetMagickQuantumDepth(&local_24);" (assignment_expression "uVar1 = GetMagickQuantumDepth(&local_24)" identifier = (call_expression "GetMagickQuantumDepth(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }" if (parenthesized_expression "(local_24 != 0x10)" ( (binary_expression "local_24 != 0x10" identifier != number_literal) )) (compound_statement "{\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }" { (expression_statement "uVar5 = AcquireExceptionInfo();" (assignment_expression "uVar5 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);" (call_expression "ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1)" identifier (argument_list "(uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1)" ( identifier , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , number_literal , (string_literal ""QuantumDepthMismatch"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , identifier ))) ;) (expression_statement "CatchException(uVar5);" (call_expression "CatchException(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar5);" (call_expression "DestroyExceptionInfo(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(-0xe5);" (call_expression "_exit(-0xe5)" identifier (argument_list "(-0xe5)" ( number_literal ))) ;) })) (expression_statement "puVar2 = (uint *)AcquireMagickMemory(0x104c);" (assignment_expression "puVar2 = (uint *)AcquireMagickMemory(0x104c)" identifier = (cast_expression "(uint *)AcquireMagickMemory(0x104c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x104c)" identifier (argument_list "(0x104c)" ( number_literal ))))) ;) (if_statement "if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000e7d60();\n  }" if (parenthesized_expression "(puVar2 != (uint *)0x0)" ( (binary_expression "puVar2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000e7d60();\n  }" { (expression_statement "uVar3 = AcquireWandId();" (assignment_expression "uVar3 = AcquireWandId()" identifier = (call_expression "AcquireWandId()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);" (call_expression "FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3)" identifier (argument_list "(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3)" ( (binary_expression "puVar2 + 1" identifier + number_literal) , number_literal , (string_literal ""%s-%.20g"" " string_content ") , (string_literal ""MagickWandCLI"" " string_content ") , (cast_expression "(double)uVar3" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) (expression_statement "uVar3 = NewImageList();" (assignment_expression "uVar3 = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x401] = uVar3;" (assignment_expression "puVar2[0x401] = uVar3" (subscript_expression "puVar2[0x401]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }" { (expression_statement "uVar3 = AcquireImageInfo();" (assignment_expression "uVar3 = AcquireImageInfo()" identifier = (call_expression "AcquireImageInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x402] = uVar3;" (assignment_expression "puVar2[0x402] = uVar3" (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar2[0x402] = param_1;\n    }" else (compound_statement "{\n      puVar2[0x402] = param_1;\n    }" { (expression_statement "puVar2[0x402] = param_1;" (assignment_expression "puVar2[0x402] = param_1" (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }" { (expression_statement "uVar3 = AcquireExceptionInfo();" (assignment_expression "uVar3 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x403] = uVar3;" (assignment_expression "puVar2[0x403] = uVar3" (subscript_expression "puVar2[0x403]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar2[0x403] = param_2;\n    }" else (compound_statement "{\n      puVar2[0x403] = param_2;\n    }" { (expression_statement "puVar2[0x403] = param_2;" (assignment_expression "puVar2[0x403] = param_2" (subscript_expression "puVar2[0x403]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "uVar3 = IsEventLogging();" (assignment_expression "uVar3 = IsEventLogging()" identifier = (call_expression "IsEventLogging()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x407] = 0xabacadab;" (assignment_expression "puVar2[0x407] = 0xabacadab" (subscript_expression "puVar2[0x407]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x406] = uVar3;" (assignment_expression "puVar2[0x406] = uVar3" (subscript_expression "puVar2[0x406]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = CloneDrawInfo(puVar2[0x402],0);" (assignment_expression "uVar3 = CloneDrawInfo(puVar2[0x402],0)" identifier = (call_expression "CloneDrawInfo(puVar2[0x402],0)" identifier (argument_list "(puVar2[0x402],0)" ( (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "puVar2[0x409] = uVar3;" (assignment_expression "puVar2[0x409] = uVar3" (subscript_expression "puVar2[0x409]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = AcquireQuantizeInfo(puVar2[0x402]);" (assignment_expression "uVar3 = AcquireQuantizeInfo(puVar2[0x402])" identifier = (call_expression "AcquireQuantizeInfo(puVar2[0x402])" identifier (argument_list "(puVar2[0x402])" ( (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[0x40a] = 0x8fff;" (assignment_expression "puVar2[0x40a] = 0x8fff" (subscript_expression "puVar2[0x40a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x408] = uVar3;" (assignment_expression "puVar2[0x408] = uVar3" (subscript_expression "puVar2[0x408]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[0x40e] = (uint)"from \"%s\"";" (assignment_expression "puVar2[0x40e] = (uint)"from \"%s\""" (subscript_expression "puVar2[0x40e]" identifier [ number_literal ]) = (cast_expression "(uint)"from \"%s\""" ( (type_descriptor "uint" type_identifier) ) (string_literal ""from \"%s\""" " string_content escape_sequence string_content escape_sequence "))) ;) (expression_statement "puVar2[0x40b] = 0;" (assignment_expression "puVar2[0x40b] = 0" (subscript_expression "puVar2[0x40b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x40c] = 0;" (assignment_expression "puVar2[0x40c] = 0" (subscript_expression "puVar2[0x40c]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x40d] = 0;" (assignment_expression "puVar2[0x40d] = 0" (subscript_expression "puVar2[0x40d]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x40f] = (uint)"unknown";" (assignment_expression "puVar2[0x40f] = (uint)"unknown"" (subscript_expression "puVar2[0x40f]" identifier [ number_literal ]) = (cast_expression "(uint)"unknown"" ( (type_descriptor "uint" type_identifier) ) (string_literal ""unknown"" " string_content "))) ;) (expression_statement "puVar2[0x410] = 0;" (assignment_expression "puVar2[0x410] = 0" (subscript_expression "puVar2[0x410]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x411] = 0;" (assignment_expression "puVar2[0x411] = 0" (subscript_expression "puVar2[0x411]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x412] = 0xabacadab;" (assignment_expression "puVar2[0x412] = 0xabacadab" (subscript_expression "puVar2[0x412]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }" if (parenthesized_expression "(puVar2[0x406] != 0)" ( (binary_expression "puVar2[0x406] != 0" (subscript_expression "puVar2[0x406]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);" (call_expression "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1)" identifier (argument_list "(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1)" ( number_literal , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "puVar2 + 1" identifier + number_literal) ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) comment (expression_statement "FUN_000e7d60();" (call_expression "FUN_000e7d60()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar1 = AcquireExceptionInfo();" (assignment_expression "uVar1 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = GetExceptionMessage(*piVar4);" (assignment_expression "uVar5 = GetExceptionMessage(*piVar4)" identifier = (call_expression "GetExceptionMessage(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);" (call_expression "ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5)" identifier (argument_list "(uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5)" ( identifier , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , identifier ))) ;) (expression_statement "CatchException(uVar1);" (call_expression "CatchException(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar1);" (call_expression "DestroyExceptionInfo(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "ComplianceType": Some values do not have unique names */\n\nMagickCLI * AcquireMagickCLI(ImageInfo *image_info,ExceptionInfo *exception)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  MagickCLI *pMVar3;\n  size_t sVar4;\n  Image *pIVar5;\n  MagickBooleanType MVar6;\n  DrawInfo *pDVar7;\n  QuantizeInfo *pQVar8;\n  ExceptionInfo *pEVar9;\n  ImageInfo *pIVar10;\n  int *piVar11;\n  undefined4 uVar12;\n  int in_GS_OFFSET;\n  size_t depth;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  depth = 0x10;\n  uVar2 = GetMagickQuantumDepth(&depth);\n  if (depth != 0x10) {\n    uVar12 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2);\n    CatchException(uVar12);\n    DestroyExceptionInfo(uVar12);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }\n  pMVar3 = (MagickCLI *)AcquireMagickMemory(0x104c);\n  if (pMVar3 != (MagickCLI *)0x0) {\n    sVar4 = AcquireWandId();\n    pcVar1 = (pMVar3->wand).name;\n    (pMVar3->wand).id = sVar4;\n    FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);\n    pIVar5 = (Image *)NewImageList();\n    (pMVar3->wand).images = pIVar5;\n    if (image_info == (ImageInfo *)0x0) {\n      pIVar10 = (ImageInfo *)AcquireImageInfo();\n      (pMVar3->wand).image_info = pIVar10;\n    }\n    else {\n      (pMVar3->wand).image_info = image_info;\n    }\n    if (exception == (ExceptionInfo *)0x0) {\n      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();\n      (pMVar3->wand).exception = pEVar9;\n    }\n    else {\n      (pMVar3->wand).exception = exception;\n    }\n    MVar6 = IsEventLogging();\n    (pMVar3->wand).signature = 0xabacadab;\n    (pMVar3->wand).debug = MVar6;\n    pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0);\n    pMVar3->draw_info = pDVar7;\n    pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info);\n    MVar6 = (pMVar3->wand).debug;\n    pMVar3->process_flags = MagickCommandOptionFlags;\n    pMVar3->quantize_info = pQVar8;\n    pMVar3->location = "from \"%s\"";\n    pMVar3->command = (OptionInfo *)0x0;\n    pMVar3->image_list_stack = (Stack *)0x0;\n    pMVar3->image_info_stack = (Stack *)0x0;\n    pMVar3->filename = "unknown";\n    pMVar3->line = 0;\n    pMVar3->column = 0;\n    pMVar3->signature = 0xabacadab;\n    if (MVar6 != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return pMVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  uVar2 = AcquireExceptionInfo();\n  piVar11 = __errno_location();\n  uVar12 = GetExceptionMessage(*piVar11);\n  ThrowMagickException\n            (uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar12);\n  CatchException(uVar2);\n  DestroyExceptionInfo(uVar2);\n  MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n  _exit(1);\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "MagickCLI * AcquireMagickCLI(ImageInfo *image_info,ExceptionInfo *exception)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  MagickCLI *pMVar3;\n  size_t sVar4;\n  Image *pIVar5;\n  MagickBooleanType MVar6;\n  DrawInfo *pDVar7;\n  QuantizeInfo *pQVar8;\n  ExceptionInfo *pEVar9;\n  ImageInfo *pIVar10;\n  int *piVar11;\n  undefined4 uVar12;\n  int in_GS_OFFSET;\n  size_t depth;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  depth = 0x10;\n  uVar2 = GetMagickQuantumDepth(&depth);\n  if (depth != 0x10) {\n    uVar12 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2);\n    CatchException(uVar12);\n    DestroyExceptionInfo(uVar12);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }\n  pMVar3 = (MagickCLI *)AcquireMagickMemory(0x104c);\n  if (pMVar3 != (MagickCLI *)0x0) {\n    sVar4 = AcquireWandId();\n    pcVar1 = (pMVar3->wand).name;\n    (pMVar3->wand).id = sVar4;\n    FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);\n    pIVar5 = (Image *)NewImageList();\n    (pMVar3->wand).images = pIVar5;\n    if (image_info == (ImageInfo *)0x0) {\n      pIVar10 = (ImageInfo *)AcquireImageInfo();\n      (pMVar3->wand).image_info = pIVar10;\n    }\n    else {\n      (pMVar3->wand).image_info = image_info;\n    }\n    if (exception == (ExceptionInfo *)0x0) {\n      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();\n      (pMVar3->wand).exception = pEVar9;\n    }\n    else {\n      (pMVar3->wand).exception = exception;\n    }\n    MVar6 = IsEventLogging();\n    (pMVar3->wand).signature = 0xabacadab;\n    (pMVar3->wand).debug = MVar6;\n    pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0);\n    pMVar3->draw_info = pDVar7;\n    pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info);\n    MVar6 = (pMVar3->wand).debug;\n    pMVar3->process_flags = MagickCommandOptionFlags;\n    pMVar3->quantize_info = pQVar8;\n    pMVar3->location = "from \"%s\"";\n    pMVar3->command = (OptionInfo *)0x0;\n    pMVar3->image_list_stack = (Stack *)0x0;\n    pMVar3->image_info_stack = (Stack *)0x0;\n    pMVar3->filename = "unknown";\n    pMVar3->line = 0;\n    pMVar3->column = 0;\n    pMVar3->signature = 0xabacadab;\n    if (MVar6 != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return pMVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  uVar2 = AcquireExceptionInfo();\n  piVar11 = __errno_location();\n  uVar12 = GetExceptionMessage(*piVar11);\n  ThrowMagickException\n            (uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar12);\n  CatchException(uVar2);\n  DestroyExceptionInfo(uVar2);\n  MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n  _exit(1);\n}" type_identifier (pointer_declarator "* AcquireMagickCLI(ImageInfo *image_info,ExceptionInfo *exception)" * (function_declarator "AcquireMagickCLI(ImageInfo *image_info,ExceptionInfo *exception)" identifier (parameter_list "(ImageInfo *image_info,ExceptionInfo *exception)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  MagickCLI *pMVar3;\n  size_t sVar4;\n  Image *pIVar5;\n  MagickBooleanType MVar6;\n  DrawInfo *pDVar7;\n  QuantizeInfo *pQVar8;\n  ExceptionInfo *pEVar9;\n  ImageInfo *pIVar10;\n  int *piVar11;\n  undefined4 uVar12;\n  int in_GS_OFFSET;\n  size_t depth;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  depth = 0x10;\n  uVar2 = GetMagickQuantumDepth(&depth);\n  if (depth != 0x10) {\n    uVar12 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2);\n    CatchException(uVar12);\n    DestroyExceptionInfo(uVar12);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }\n  pMVar3 = (MagickCLI *)AcquireMagickMemory(0x104c);\n  if (pMVar3 != (MagickCLI *)0x0) {\n    sVar4 = AcquireWandId();\n    pcVar1 = (pMVar3->wand).name;\n    (pMVar3->wand).id = sVar4;\n    FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);\n    pIVar5 = (Image *)NewImageList();\n    (pMVar3->wand).images = pIVar5;\n    if (image_info == (ImageInfo *)0x0) {\n      pIVar10 = (ImageInfo *)AcquireImageInfo();\n      (pMVar3->wand).image_info = pIVar10;\n    }\n    else {\n      (pMVar3->wand).image_info = image_info;\n    }\n    if (exception == (ExceptionInfo *)0x0) {\n      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();\n      (pMVar3->wand).exception = pEVar9;\n    }\n    else {\n      (pMVar3->wand).exception = exception;\n    }\n    MVar6 = IsEventLogging();\n    (pMVar3->wand).signature = 0xabacadab;\n    (pMVar3->wand).debug = MVar6;\n    pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0);\n    pMVar3->draw_info = pDVar7;\n    pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info);\n    MVar6 = (pMVar3->wand).debug;\n    pMVar3->process_flags = MagickCommandOptionFlags;\n    pMVar3->quantize_info = pQVar8;\n    pMVar3->location = "from \"%s\"";\n    pMVar3->command = (OptionInfo *)0x0;\n    pMVar3->image_list_stack = (Stack *)0x0;\n    pMVar3->image_info_stack = (Stack *)0x0;\n    pMVar3->filename = "unknown";\n    pMVar3->line = 0;\n    pMVar3->column = 0;\n    pMVar3->signature = 0xabacadab;\n    if (MVar6 != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return pMVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  uVar2 = AcquireExceptionInfo();\n  piVar11 = __errno_location();\n  uVar12 = GetExceptionMessage(*piVar11);\n  ThrowMagickException\n            (uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar12);\n  CatchException(uVar2);\n  DestroyExceptionInfo(uVar2);\n  MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n  _exit(1);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "MagickCLI *pMVar3;" type_identifier (pointer_declarator "*pMVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "Image *pIVar5;" type_identifier (pointer_declarator "*pIVar5" * identifier) ;) (declaration "MagickBooleanType MVar6;" type_identifier identifier ;) (declaration "DrawInfo *pDVar7;" type_identifier (pointer_declarator "*pDVar7" * identifier) ;) (declaration "QuantizeInfo *pQVar8;" type_identifier (pointer_declarator "*pQVar8" * identifier) ;) (declaration "ExceptionInfo *pEVar9;" type_identifier (pointer_declarator "*pEVar9" * identifier) ;) (declaration "ImageInfo *pIVar10;" type_identifier (pointer_declarator "*pIVar10" * identifier) ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t depth;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xe4a39;" (assignment_expression "uStack_14 = 0xe4a39" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "depth = 0x10;" (assignment_expression "depth = 0x10" identifier = number_literal) ;) (expression_statement "uVar2 = GetMagickQuantumDepth(&depth);" (assignment_expression "uVar2 = GetMagickQuantumDepth(&depth)" identifier = (call_expression "GetMagickQuantumDepth(&depth)" identifier (argument_list "(&depth)" ( (pointer_expression "&depth" & identifier) )))) ;) (if_statement "if (depth != 0x10) {\n    uVar12 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2);\n    CatchException(uVar12);\n    DestroyExceptionInfo(uVar12);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }" if (parenthesized_expression "(depth != 0x10)" ( (binary_expression "depth != 0x10" identifier != number_literal) )) (compound_statement "{\n    uVar12 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2);\n    CatchException(uVar12);\n    DestroyExceptionInfo(uVar12);\n    MagickWandTerminus();\n                    /* WARNING: Subroutine does not return */\n    _exit(-0xe5);\n  }" { (expression_statement "uVar12 = AcquireExceptionInfo();" (assignment_expression "uVar12 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "ThrowMagickException\n              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2);" (call_expression "ThrowMagickException\n              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2)" identifier (argument_list "(uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar2)" ( identifier , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , number_literal , (string_literal ""QuantumDepthMismatch"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , identifier ))) ;) (expression_statement "CatchException(uVar12);" (call_expression "CatchException(uVar12)" identifier (argument_list "(uVar12)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar12);" (call_expression "DestroyExceptionInfo(uVar12)" identifier (argument_list "(uVar12)" ( identifier ))) ;) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(-0xe5);" (call_expression "_exit(-0xe5)" identifier (argument_list "(-0xe5)" ( number_literal ))) ;) })) (expression_statement "pMVar3 = (MagickCLI *)AcquireMagickMemory(0x104c);" (assignment_expression "pMVar3 = (MagickCLI *)AcquireMagickMemory(0x104c)" identifier = (cast_expression "(MagickCLI *)AcquireMagickMemory(0x104c)" ( (type_descriptor "MagickCLI *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x104c)" identifier (argument_list "(0x104c)" ( number_literal ))))) ;) (if_statement "if (pMVar3 != (MagickCLI *)0x0) {\n    sVar4 = AcquireWandId();\n    pcVar1 = (pMVar3->wand).name;\n    (pMVar3->wand).id = sVar4;\n    FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);\n    pIVar5 = (Image *)NewImageList();\n    (pMVar3->wand).images = pIVar5;\n    if (image_info == (ImageInfo *)0x0) {\n      pIVar10 = (ImageInfo *)AcquireImageInfo();\n      (pMVar3->wand).image_info = pIVar10;\n    }\n    else {\n      (pMVar3->wand).image_info = image_info;\n    }\n    if (exception == (ExceptionInfo *)0x0) {\n      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();\n      (pMVar3->wand).exception = pEVar9;\n    }\n    else {\n      (pMVar3->wand).exception = exception;\n    }\n    MVar6 = IsEventLogging();\n    (pMVar3->wand).signature = 0xabacadab;\n    (pMVar3->wand).debug = MVar6;\n    pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0);\n    pMVar3->draw_info = pDVar7;\n    pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info);\n    MVar6 = (pMVar3->wand).debug;\n    pMVar3->process_flags = MagickCommandOptionFlags;\n    pMVar3->quantize_info = pQVar8;\n    pMVar3->location = "from \"%s\"";\n    pMVar3->command = (OptionInfo *)0x0;\n    pMVar3->image_list_stack = (Stack *)0x0;\n    pMVar3->image_info_stack = (Stack *)0x0;\n    pMVar3->filename = "unknown";\n    pMVar3->line = 0;\n    pMVar3->column = 0;\n    pMVar3->signature = 0xabacadab;\n    if (MVar6 != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return pMVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(pMVar3 != (MagickCLI *)0x0)" ( (binary_expression "pMVar3 != (MagickCLI *)0x0" identifier != (cast_expression "(MagickCLI *)0x0" ( (type_descriptor "MagickCLI *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = AcquireWandId();\n    pcVar1 = (pMVar3->wand).name;\n    (pMVar3->wand).id = sVar4;\n    FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);\n    pIVar5 = (Image *)NewImageList();\n    (pMVar3->wand).images = pIVar5;\n    if (image_info == (ImageInfo *)0x0) {\n      pIVar10 = (ImageInfo *)AcquireImageInfo();\n      (pMVar3->wand).image_info = pIVar10;\n    }\n    else {\n      (pMVar3->wand).image_info = image_info;\n    }\n    if (exception == (ExceptionInfo *)0x0) {\n      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();\n      (pMVar3->wand).exception = pEVar9;\n    }\n    else {\n      (pMVar3->wand).exception = exception;\n    }\n    MVar6 = IsEventLogging();\n    (pMVar3->wand).signature = 0xabacadab;\n    (pMVar3->wand).debug = MVar6;\n    pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0);\n    pMVar3->draw_info = pDVar7;\n    pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info);\n    MVar6 = (pMVar3->wand).debug;\n    pMVar3->process_flags = MagickCommandOptionFlags;\n    pMVar3->quantize_info = pQVar8;\n    pMVar3->location = "from \"%s\"";\n    pMVar3->command = (OptionInfo *)0x0;\n    pMVar3->image_list_stack = (Stack *)0x0;\n    pMVar3->image_info_stack = (Stack *)0x0;\n    pMVar3->filename = "unknown";\n    pMVar3->line = 0;\n    pMVar3->column = 0;\n    pMVar3->signature = 0xabacadab;\n    if (MVar6 != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return pMVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { (expression_statement "sVar4 = AcquireWandId();" (assignment_expression "sVar4 = AcquireWandId()" identifier = (call_expression "AcquireWandId()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar1 = (pMVar3->wand).name;" (assignment_expression "pcVar1 = (pMVar3->wand).name" identifier = (field_expression "(pMVar3->wand).name" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pMVar3->wand).id = sVar4;" (assignment_expression "(pMVar3->wand).id = sVar4" (field_expression "(pMVar3->wand).id" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);" (call_expression "FormatLocaleString(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4)" identifier (argument_list "(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4)" ( identifier , number_literal , (string_literal ""%s-%.20g"" " string_content ") , (string_literal ""MagickWandCLI"" " string_content ") , (cast_expression "(double)sVar4" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) (expression_statement "pIVar5 = (Image *)NewImageList();" (assignment_expression "pIVar5 = (Image *)NewImageList()" identifier = (cast_expression "(Image *)NewImageList()" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "NewImageList()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(pMVar3->wand).images = pIVar5;" (assignment_expression "(pMVar3->wand).images = pIVar5" (field_expression "(pMVar3->wand).images" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (image_info == (ImageInfo *)0x0) {\n      pIVar10 = (ImageInfo *)AcquireImageInfo();\n      (pMVar3->wand).image_info = pIVar10;\n    }\n    else {\n      (pMVar3->wand).image_info = image_info;\n    }" if (parenthesized_expression "(image_info == (ImageInfo *)0x0)" ( (binary_expression "image_info == (ImageInfo *)0x0" identifier == (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pIVar10 = (ImageInfo *)AcquireImageInfo();\n      (pMVar3->wand).image_info = pIVar10;\n    }" { (expression_statement "pIVar10 = (ImageInfo *)AcquireImageInfo();" (assignment_expression "pIVar10 = (ImageInfo *)AcquireImageInfo()" identifier = (cast_expression "(ImageInfo *)AcquireImageInfo()" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireImageInfo()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(pMVar3->wand).image_info = pIVar10;" (assignment_expression "(pMVar3->wand).image_info = pIVar10" (field_expression "(pMVar3->wand).image_info" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }) (else_clause "else {\n      (pMVar3->wand).image_info = image_info;\n    }" else (compound_statement "{\n      (pMVar3->wand).image_info = image_info;\n    }" { (expression_statement "(pMVar3->wand).image_info = image_info;" (assignment_expression "(pMVar3->wand).image_info = image_info" (field_expression "(pMVar3->wand).image_info" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }))) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();\n      (pMVar3->wand).exception = pEVar9;\n    }\n    else {\n      (pMVar3->wand).exception = exception;\n    }" if (parenthesized_expression "(exception == (ExceptionInfo *)0x0)" ( (binary_expression "exception == (ExceptionInfo *)0x0" identifier == (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();\n      (pMVar3->wand).exception = pEVar9;\n    }" { (expression_statement "pEVar9 = (ExceptionInfo *)AcquireExceptionInfo();" (assignment_expression "pEVar9 = (ExceptionInfo *)AcquireExceptionInfo()" identifier = (cast_expression "(ExceptionInfo *)AcquireExceptionInfo()" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(pMVar3->wand).exception = pEVar9;" (assignment_expression "(pMVar3->wand).exception = pEVar9" (field_expression "(pMVar3->wand).exception" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }) (else_clause "else {\n      (pMVar3->wand).exception = exception;\n    }" else (compound_statement "{\n      (pMVar3->wand).exception = exception;\n    }" { (expression_statement "(pMVar3->wand).exception = exception;" (assignment_expression "(pMVar3->wand).exception = exception" (field_expression "(pMVar3->wand).exception" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }))) (expression_statement "MVar6 = IsEventLogging();" (assignment_expression "MVar6 = IsEventLogging()" identifier = (call_expression "IsEventLogging()" identifier (argument_list "()" ( )))) ;) (expression_statement "(pMVar3->wand).signature = 0xabacadab;" (assignment_expression "(pMVar3->wand).signature = 0xabacadab" (field_expression "(pMVar3->wand).signature" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(pMVar3->wand).debug = MVar6;" (assignment_expression "(pMVar3->wand).debug = MVar6" (field_expression "(pMVar3->wand).debug" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0);" (assignment_expression "pDVar7 = (DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0)" identifier = (cast_expression "(DrawInfo *)CloneDrawInfo((pMVar3->wand).image_info,0)" ( (type_descriptor "DrawInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "CloneDrawInfo((pMVar3->wand).image_info,0)" identifier (argument_list "((pMVar3->wand).image_info,0)" ( (field_expression "(pMVar3->wand).image_info" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) , number_literal ))))) ;) (expression_statement "pMVar3->draw_info = pDVar7;" (assignment_expression "pMVar3->draw_info = pDVar7" (field_expression "pMVar3->draw_info" identifier -> field_identifier) = identifier) ;) (expression_statement "pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info);" (assignment_expression "pQVar8 = (QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info)" identifier = (cast_expression "(QuantizeInfo *)AcquireQuantizeInfo((pMVar3->wand).image_info)" ( (type_descriptor "QuantizeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantizeInfo((pMVar3->wand).image_info)" identifier (argument_list "((pMVar3->wand).image_info)" ( (field_expression "(pMVar3->wand).image_info" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier) ))))) ;) (expression_statement "MVar6 = (pMVar3->wand).debug;" (assignment_expression "MVar6 = (pMVar3->wand).debug" identifier = (field_expression "(pMVar3->wand).debug" (parenthesized_expression "(pMVar3->wand)" ( (field_expression "pMVar3->wand" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pMVar3->process_flags = MagickCommandOptionFlags;" (assignment_expression "pMVar3->process_flags = MagickCommandOptionFlags" (field_expression "pMVar3->process_flags" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar3->quantize_info = pQVar8;" (assignment_expression "pMVar3->quantize_info = pQVar8" (field_expression "pMVar3->quantize_info" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar3->location = "from \"%s\"";" (assignment_expression "pMVar3->location = "from \"%s\""" (field_expression "pMVar3->location" identifier -> field_identifier) = (string_literal ""from \"%s\""" " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement "pMVar3->command = (OptionInfo *)0x0;" (assignment_expression "pMVar3->command = (OptionInfo *)0x0" (field_expression "pMVar3->command" identifier -> field_identifier) = (cast_expression "(OptionInfo *)0x0" ( (type_descriptor "OptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar3->image_list_stack = (Stack *)0x0;" (assignment_expression "pMVar3->image_list_stack = (Stack *)0x0" (field_expression "pMVar3->image_list_stack" identifier -> field_identifier) = (cast_expression "(Stack *)0x0" ( (type_descriptor "Stack *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar3->image_info_stack = (Stack *)0x0;" (assignment_expression "pMVar3->image_info_stack = (Stack *)0x0" (field_expression "pMVar3->image_info_stack" identifier -> field_identifier) = (cast_expression "(Stack *)0x0" ( (type_descriptor "Stack *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar3->filename = "unknown";" (assignment_expression "pMVar3->filename = "unknown"" (field_expression "pMVar3->filename" identifier -> field_identifier) = (string_literal ""unknown"" " string_content ")) ;) (expression_statement "pMVar3->line = 0;" (assignment_expression "pMVar3->line = 0" (field_expression "pMVar3->line" identifier -> field_identifier) = number_literal) ;) (expression_statement "pMVar3->column = 0;" (assignment_expression "pMVar3->column = 0" (field_expression "pMVar3->column" identifier -> field_identifier) = number_literal) ;) (expression_statement "pMVar3->signature = 0xabacadab;" (assignment_expression "pMVar3->signature = 0xabacadab" (field_expression "pMVar3->signature" identifier -> field_identifier) = number_literal) ;) (if_statement "if (MVar6 != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);\n    }" if (parenthesized_expression "(MVar6 != MagickFalse)" ( (binary_expression "MVar6 != MagickFalse" identifier != identifier) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);" (call_expression "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1)" identifier (argument_list "(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1)" ( number_literal , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return pMVar3;\n    }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return pMVar3;\n    }" { (return_statement "return pMVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = AcquireExceptionInfo();" (assignment_expression "uVar2 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar11 = __errno_location();" (assignment_expression "piVar11 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar12 = GetExceptionMessage(*piVar11);" (assignment_expression "uVar12 = GetExceptionMessage(*piVar11)" identifier = (call_expression "GetExceptionMessage(*piVar11)" identifier (argument_list "(*piVar11)" ( (pointer_expression "*piVar11" * identifier) )))) ;) (expression_statement "ThrowMagickException\n            (uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar12);" (call_expression "ThrowMagickException\n            (uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar12)" identifier (argument_list "(uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar12)" ( identifier , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , identifier ))) ;) (expression_statement "CatchException(uVar2);" (call_expression "CatchException(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar2);" (call_expression "DestroyExceptionInfo(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "uint * AcquireMagickCLI(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    \n  _exit(1);\n}\n\n" (function_definition "uint * AcquireMagickCLI(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    \n  _exit(1);\n}" type_identifier (pointer_declarator "* AcquireMagickCLI(uint param_1,uint param_2)" * (function_declarator "AcquireMagickCLI(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    \n  _exit(1);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xe4a39;" (assignment_expression "uStack_14 = 0xe4a39" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0x10;" (assignment_expression "local_24 = 0x10" identifier = number_literal) ;) (expression_statement "uVar1 = GetMagickQuantumDepth(&local_24);" (assignment_expression "uVar1 = GetMagickQuantumDepth(&local_24)" identifier = (call_expression "GetMagickQuantumDepth(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }" if (parenthesized_expression "(local_24 != 0x10)" ( (binary_expression "local_24 != 0x10" identifier != number_literal) )) (compound_statement "{\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }" { (expression_statement "uVar5 = AcquireExceptionInfo();" (assignment_expression "uVar5 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);" (call_expression "ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1)" identifier (argument_list "(uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1)" ( identifier , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , number_literal , (string_literal ""QuantumDepthMismatch"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , identifier ))) ;) (expression_statement "CatchException(uVar5);" (call_expression "CatchException(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar5);" (call_expression "DestroyExceptionInfo(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" identifier (argument_list "()" ( ))) ;) (expression_statement "_exit(-0xe5);" (call_expression "_exit(-0xe5)" identifier (argument_list "(-0xe5)" ( number_literal ))) ;) })) (expression_statement "puVar2 = (uint *)AcquireMagickMemory(0x104c);" (assignment_expression "puVar2 = (uint *)AcquireMagickMemory(0x104c)" identifier = (cast_expression "(uint *)AcquireMagickMemory(0x104c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x104c)" identifier (argument_list "(0x104c)" ( number_literal ))))) ;) (if_statement "if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }" if (parenthesized_expression "(puVar2 != (uint *)0x0)" ( (binary_expression "puVar2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }" { (expression_statement "uVar3 = AcquireWandId();" (assignment_expression "uVar3 = AcquireWandId()" identifier = (call_expression "AcquireWandId()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);" (call_expression "FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3)" identifier (argument_list "(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3)" ( (binary_expression "puVar2 + 1" identifier + number_literal) , number_literal , (string_literal ""%s-%.20g"" " string_content ") , (string_literal ""MagickWandCLI"" " string_content ") , (cast_expression "(double)uVar3" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) (expression_statement "uVar3 = NewImageList();" (assignment_expression "uVar3 = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x401] = uVar3;" (assignment_expression "puVar2[0x401] = uVar3" (subscript_expression "puVar2[0x401]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }" { (expression_statement "uVar3 = AcquireImageInfo();" (assignment_expression "uVar3 = AcquireImageInfo()" identifier = (call_expression "AcquireImageInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x402] = uVar3;" (assignment_expression "puVar2[0x402] = uVar3" (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar2[0x402] = param_1;\n    }" else (compound_statement "{\n      puVar2[0x402] = param_1;\n    }" { (expression_statement "puVar2[0x402] = param_1;" (assignment_expression "puVar2[0x402] = param_1" (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }" { (expression_statement "uVar3 = AcquireExceptionInfo();" (assignment_expression "uVar3 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x403] = uVar3;" (assignment_expression "puVar2[0x403] = uVar3" (subscript_expression "puVar2[0x403]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar2[0x403] = param_2;\n    }" else (compound_statement "{\n      puVar2[0x403] = param_2;\n    }" { (expression_statement "puVar2[0x403] = param_2;" (assignment_expression "puVar2[0x403] = param_2" (subscript_expression "puVar2[0x403]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "uVar3 = IsEventLogging();" (assignment_expression "uVar3 = IsEventLogging()" identifier = (call_expression "IsEventLogging()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[0x407] = 0xabacadab;" (assignment_expression "puVar2[0x407] = 0xabacadab" (subscript_expression "puVar2[0x407]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x406] = uVar3;" (assignment_expression "puVar2[0x406] = uVar3" (subscript_expression "puVar2[0x406]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = CloneDrawInfo(puVar2[0x402],0);" (assignment_expression "uVar3 = CloneDrawInfo(puVar2[0x402],0)" identifier = (call_expression "CloneDrawInfo(puVar2[0x402],0)" identifier (argument_list "(puVar2[0x402],0)" ( (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "puVar2[0x409] = uVar3;" (assignment_expression "puVar2[0x409] = uVar3" (subscript_expression "puVar2[0x409]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = AcquireQuantizeInfo(puVar2[0x402]);" (assignment_expression "uVar3 = AcquireQuantizeInfo(puVar2[0x402])" identifier = (call_expression "AcquireQuantizeInfo(puVar2[0x402])" identifier (argument_list "(puVar2[0x402])" ( (subscript_expression "puVar2[0x402]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[0x40a] = 0x8fff;" (assignment_expression "puVar2[0x40a] = 0x8fff" (subscript_expression "puVar2[0x40a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x408] = uVar3;" (assignment_expression "puVar2[0x408] = uVar3" (subscript_expression "puVar2[0x408]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[0x40e] = (uint)"from \"%s\"";" (assignment_expression "puVar2[0x40e] = (uint)"from \"%s\""" (subscript_expression "puVar2[0x40e]" identifier [ number_literal ]) = (cast_expression "(uint)"from \"%s\""" ( (type_descriptor "uint" type_identifier) ) (string_literal ""from \"%s\""" " string_content escape_sequence string_content escape_sequence "))) ;) (expression_statement "puVar2[0x40b] = 0;" (assignment_expression "puVar2[0x40b] = 0" (subscript_expression "puVar2[0x40b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x40c] = 0;" (assignment_expression "puVar2[0x40c] = 0" (subscript_expression "puVar2[0x40c]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x40d] = 0;" (assignment_expression "puVar2[0x40d] = 0" (subscript_expression "puVar2[0x40d]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x40f] = (uint)"unknown";" (assignment_expression "puVar2[0x40f] = (uint)"unknown"" (subscript_expression "puVar2[0x40f]" identifier [ number_literal ]) = (cast_expression "(uint)"unknown"" ( (type_descriptor "uint" type_identifier) ) (string_literal ""unknown"" " string_content "))) ;) (expression_statement "puVar2[0x410] = 0;" (assignment_expression "puVar2[0x410] = 0" (subscript_expression "puVar2[0x410]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x411] = 0;" (assignment_expression "puVar2[0x411] = 0" (subscript_expression "puVar2[0x411]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x412] = 0xabacadab;" (assignment_expression "puVar2[0x412] = 0xabacadab" (subscript_expression "puVar2[0x412]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }" if (parenthesized_expression "(puVar2[0x406] != 0)" ( (binary_expression "puVar2[0x406] != 0" (subscript_expression "puVar2[0x406]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);" (call_expression "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1)" identifier (argument_list "(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1)" ( number_literal , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "puVar2 + 1" identifier + number_literal) ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "FUN_000e7d60();" (call_expression "FUN_000e7d60()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar1 = AcquireExceptionInfo();" (assignment_expression "uVar1 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = GetExceptionMessage(*piVar4);" (assignment_expression "uVar5 = GetExceptionMessage(*piVar4)" identifier = (call_expression "GetExceptionMessage(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);" (call_expression "ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5)" identifier (argument_list "(uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5)" ( identifier , (string_literal ""MagickWand/wandcli.c"" " string_content ") , (string_literal ""AcquireMagickCLI"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , identifier ))) ;) (expression_statement "CatchException(uVar1);" (call_expression "CatchException(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar1);" (call_expression "DestroyExceptionInfo(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" identifier (argument_list "()" ( ))) ;) (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (pointer_expression & IDENT) , 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (string_literal " string_content ") , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (string_literal " string_content escape_sequence string_content escape_sequence "))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (string_literal " string_content "))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (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 ") , (pointer_expression & IDENT) , 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 ))) ;) })))
(function_definition "uint * AcquireMagickCLI(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    \n  _exit(1);\n}" (type_identifier "uint") (pointer_declarator "* AcquireMagickCLI(uint param_1,uint param_2)" (* "*") (function_declarator "AcquireMagickCLI(uint param_1,uint param_2)" (identifier "AcquireMagickCLI") (parameter_list "(uint param_1,uint param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")")))) (compound_statement "{\n  undefined4 uVar1;\n  uint *puVar2;\n  uint uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe4a39;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0x10;\n  uVar1 = GetMagickQuantumDepth(&local_24);\n  if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }\n  puVar2 = (uint *)AcquireMagickMemory(0x104c);\n  if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }\n  uVar1 = AcquireExceptionInfo();\n  piVar4 = __errno_location();\n  uVar5 = GetExceptionMessage(*piVar4);\n  ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);\n  CatchException(uVar1);\n  DestroyExceptionInfo(uVar1);\n  MagickWandTerminus();\n                    \n  _exit(1);\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xe4a39;" (assignment_expression "uStack_14 = 0xe4a39" (identifier "uStack_14") (= "=") (number_literal "0xe4a39")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_24 = 0x10;" (assignment_expression "local_24 = 0x10" (identifier "local_24") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "uVar1 = GetMagickQuantumDepth(&local_24);" (assignment_expression "uVar1 = GetMagickQuantumDepth(&local_24)" (identifier "uVar1") (= "=") (call_expression "GetMagickQuantumDepth(&local_24)" (identifier "GetMagickQuantumDepth") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (local_24 != 0x10) {\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }" (if "if") (parenthesized_expression "(local_24 != 0x10)" (( "(") (binary_expression "local_24 != 0x10" (identifier "local_24") (!= "!=") (number_literal "0x10")) () ")")) (compound_statement "{\n    uVar5 = AcquireExceptionInfo();\n    ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);\n    CatchException(uVar5);\n    DestroyExceptionInfo(uVar5);\n    MagickWandTerminus();\n                    \n    _exit(-0xe5);\n  }" ({ "{") (expression_statement "uVar5 = AcquireExceptionInfo();" (assignment_expression "uVar5 = AcquireExceptionInfo()" (identifier "uVar5") (= "=") (call_expression "AcquireExceptionInfo()" (identifier "AcquireExceptionInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1);" (call_expression "ThrowMagickException\n              (uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1)" (identifier "ThrowMagickException") (argument_list "(uVar5,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",\n               &DAT_000e91ee,uVar1)" (( "(") (identifier "uVar5") (, ",") (string_literal ""MagickWand/wandcli.c"" (" """) (string_content "MagickWand/wandcli.c") (" """)) (, ",") (string_literal ""AcquireMagickCLI"" (" """) (string_content "AcquireMagickCLI") (" """)) (, ",") (number_literal "0x54") (, ",") (number_literal "0x1d6") (, ",") (string_literal ""QuantumDepthMismatch"" (" """) (string_content "QuantumDepthMismatch") (" """)) (, ",") (pointer_expression "&DAT_000e91ee" (& "&") (identifier "DAT_000e91ee")) (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "CatchException(uVar5);" (call_expression "CatchException(uVar5)" (identifier "CatchException") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "DestroyExceptionInfo(uVar5);" (call_expression "DestroyExceptionInfo(uVar5)" (identifier "DestroyExceptionInfo") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" (identifier "MagickWandTerminus") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "_exit(-0xe5);" (call_expression "_exit(-0xe5)" (identifier "_exit") (argument_list "(-0xe5)" (( "(") (number_literal "-0xe5") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = (uint *)AcquireMagickMemory(0x104c);" (assignment_expression "puVar2 = (uint *)AcquireMagickMemory(0x104c)" (identifier "puVar2") (= "=") (cast_expression "(uint *)AcquireMagickMemory(0x104c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireMagickMemory(0x104c)" (identifier "AcquireMagickMemory") (argument_list "(0x104c)" (( "(") (number_literal "0x104c") () ")"))))) (; ";")) (if_statement "if (puVar2 != (uint *)0x0) {\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }" (if "if") (parenthesized_expression "(puVar2 != (uint *)0x0)" (( "(") (binary_expression "puVar2 != (uint *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = AcquireWandId();\n    *puVar2 = uVar3;\n    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);\n    uVar3 = NewImageList();\n    puVar2[0x401] = uVar3;\n    if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }\n    if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }\n    uVar3 = IsEventLogging();\n    puVar2[0x407] = 0xabacadab;\n    puVar2[0x406] = uVar3;\n    uVar3 = CloneDrawInfo(puVar2[0x402],0);\n    puVar2[0x409] = uVar3;\n    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);\n    puVar2[0x40a] = 0x8fff;\n    puVar2[0x408] = uVar3;\n    puVar2[0x40e] = (uint)"from \"%s\"";\n    puVar2[0x40b] = 0;\n    puVar2[0x40c] = 0;\n    puVar2[0x40d] = 0;\n    puVar2[0x40f] = (uint)"unknown";\n    puVar2[0x410] = 0;\n    puVar2[0x411] = 0;\n    puVar2[0x412] = 0xabacadab;\n    if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }\n                    \n    FUN_000e7d60();\n  }" ({ "{") (expression_statement "uVar3 = AcquireWandId();" (assignment_expression "uVar3 = AcquireWandId()" (identifier "uVar3") (= "=") (call_expression "AcquireWandId()" (identifier "AcquireWandId") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);" (call_expression "FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3)" (identifier "FormatLocaleString") (argument_list "(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) (, ",") (number_literal "0x1000") (, ",") (string_literal ""%s-%.20g"" (" """) (string_content "%s-%.20g") (" """)) (, ",") (string_literal ""MagickWandCLI"" (" """) (string_content "MagickWandCLI") (" """)) (, ",") (cast_expression "(double)uVar3" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "uVar3")) () ")"))) (; ";")) (expression_statement "uVar3 = NewImageList();" (assignment_expression "uVar3 = NewImageList()" (identifier "uVar3") (= "=") (call_expression "NewImageList()" (identifier "NewImageList") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2[0x401] = uVar3;" (assignment_expression "puVar2[0x401] = uVar3" (subscript_expression "puVar2[0x401]" (identifier "puVar2") ([ "[") (number_literal "0x401") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (param_1 == 0) {\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }\n    else {\n      puVar2[0x402] = param_1;\n    }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = AcquireImageInfo();\n      puVar2[0x402] = uVar3;\n    }" ({ "{") (expression_statement "uVar3 = AcquireImageInfo();" (assignment_expression "uVar3 = AcquireImageInfo()" (identifier "uVar3") (= "=") (call_expression "AcquireImageInfo()" (identifier "AcquireImageInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2[0x402] = uVar3;" (assignment_expression "puVar2[0x402] = uVar3" (subscript_expression "puVar2[0x402]" (identifier "puVar2") ([ "[") (number_literal "0x402") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n      puVar2[0x402] = param_1;\n    }" (else "else") (compound_statement "{\n      puVar2[0x402] = param_1;\n    }" ({ "{") (expression_statement "puVar2[0x402] = param_1;" (assignment_expression "puVar2[0x402] = param_1" (subscript_expression "puVar2[0x402]" (identifier "puVar2") ([ "[") (number_literal "0x402") (] "]")) (= "=") (identifier "param_1")) (; ";")) (} "}")))) (if_statement "if (param_2 == 0) {\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }\n    else {\n      puVar2[0x403] = param_2;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = AcquireExceptionInfo();\n      puVar2[0x403] = uVar3;\n    }" ({ "{") (expression_statement "uVar3 = AcquireExceptionInfo();" (assignment_expression "uVar3 = AcquireExceptionInfo()" (identifier "uVar3") (= "=") (call_expression "AcquireExceptionInfo()" (identifier "AcquireExceptionInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2[0x403] = uVar3;" (assignment_expression "puVar2[0x403] = uVar3" (subscript_expression "puVar2[0x403]" (identifier "puVar2") ([ "[") (number_literal "0x403") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n      puVar2[0x403] = param_2;\n    }" (else "else") (compound_statement "{\n      puVar2[0x403] = param_2;\n    }" ({ "{") (expression_statement "puVar2[0x403] = param_2;" (assignment_expression "puVar2[0x403] = param_2" (subscript_expression "puVar2[0x403]" (identifier "puVar2") ([ "[") (number_literal "0x403") (] "]")) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (expression_statement "uVar3 = IsEventLogging();" (assignment_expression "uVar3 = IsEventLogging()" (identifier "uVar3") (= "=") (call_expression "IsEventLogging()" (identifier "IsEventLogging") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2[0x407] = 0xabacadab;" (assignment_expression "puVar2[0x407] = 0xabacadab" (subscript_expression "puVar2[0x407]" (identifier "puVar2") ([ "[") (number_literal "0x407") (] "]")) (= "=") (number_literal "0xabacadab")) (; ";")) (expression_statement "puVar2[0x406] = uVar3;" (assignment_expression "puVar2[0x406] = uVar3" (subscript_expression "puVar2[0x406]" (identifier "puVar2") ([ "[") (number_literal "0x406") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = CloneDrawInfo(puVar2[0x402],0);" (assignment_expression "uVar3 = CloneDrawInfo(puVar2[0x402],0)" (identifier "uVar3") (= "=") (call_expression "CloneDrawInfo(puVar2[0x402],0)" (identifier "CloneDrawInfo") (argument_list "(puVar2[0x402],0)" (( "(") (subscript_expression "puVar2[0x402]" (identifier "puVar2") ([ "[") (number_literal "0x402") (] "]")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "puVar2[0x409] = uVar3;" (assignment_expression "puVar2[0x409] = uVar3" (subscript_expression "puVar2[0x409]" (identifier "puVar2") ([ "[") (number_literal "0x409") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = AcquireQuantizeInfo(puVar2[0x402]);" (assignment_expression "uVar3 = AcquireQuantizeInfo(puVar2[0x402])" (identifier "uVar3") (= "=") (call_expression "AcquireQuantizeInfo(puVar2[0x402])" (identifier "AcquireQuantizeInfo") (argument_list "(puVar2[0x402])" (( "(") (subscript_expression "puVar2[0x402]" (identifier "puVar2") ([ "[") (number_literal "0x402") (] "]")) () ")")))) (; ";")) (expression_statement "puVar2[0x40a] = 0x8fff;" (assignment_expression "puVar2[0x40a] = 0x8fff" (subscript_expression "puVar2[0x40a]" (identifier "puVar2") ([ "[") (number_literal "0x40a") (] "]")) (= "=") (number_literal "0x8fff")) (; ";")) (expression_statement "puVar2[0x408] = uVar3;" (assignment_expression "puVar2[0x408] = uVar3" (subscript_expression "puVar2[0x408]" (identifier "puVar2") ([ "[") (number_literal "0x408") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar2[0x40e] = (uint)"from \"%s\"";" (assignment_expression "puVar2[0x40e] = (uint)"from \"%s\""" (subscript_expression "puVar2[0x40e]" (identifier "puVar2") ([ "[") (number_literal "0x40e") (] "]")) (= "=") (cast_expression "(uint)"from \"%s\""" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (string_literal ""from \"%s\""" (" """) (string_content "from ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """)))) (; ";")) (expression_statement "puVar2[0x40b] = 0;" (assignment_expression "puVar2[0x40b] = 0" (subscript_expression "puVar2[0x40b]" (identifier "puVar2") ([ "[") (number_literal "0x40b") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x40c] = 0;" (assignment_expression "puVar2[0x40c] = 0" (subscript_expression "puVar2[0x40c]" (identifier "puVar2") ([ "[") (number_literal "0x40c") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x40d] = 0;" (assignment_expression "puVar2[0x40d] = 0" (subscript_expression "puVar2[0x40d]" (identifier "puVar2") ([ "[") (number_literal "0x40d") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x40f] = (uint)"unknown";" (assignment_expression "puVar2[0x40f] = (uint)"unknown"" (subscript_expression "puVar2[0x40f]" (identifier "puVar2") ([ "[") (number_literal "0x40f") (] "]")) (= "=") (cast_expression "(uint)"unknown"" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (string_literal ""unknown"" (" """) (string_content "unknown") (" """)))) (; ";")) (expression_statement "puVar2[0x410] = 0;" (assignment_expression "puVar2[0x410] = 0" (subscript_expression "puVar2[0x410]" (identifier "puVar2") ([ "[") (number_literal "0x410") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x411] = 0;" (assignment_expression "puVar2[0x411] = 0" (subscript_expression "puVar2[0x411]" (identifier "puVar2") ([ "[") (number_literal "0x411") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x412] = 0xabacadab;" (assignment_expression "puVar2[0x412] = 0xabacadab" (subscript_expression "puVar2[0x412]" (identifier "puVar2") ([ "[") (number_literal "0x412") (] "]")) (= "=") (number_literal "0xabacadab")) (; ";")) (if_statement "if (puVar2[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }" (if "if") (parenthesized_expression "(puVar2[0x406] != 0)" (( "(") (binary_expression "puVar2[0x406] != 0" (subscript_expression "puVar2[0x406]" (identifier "puVar2") ([ "[") (number_literal "0x406") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1);" (call_expression "LogMagickEvent(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",puVar2 + 1)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/wandcli.c"" (" """) (string_content "MagickWand/wandcli.c") (" """)) (, ",") (string_literal ""AcquireMagickCLI"" (" """) (string_content "AcquireMagickCLI") (" """)) (, ",") (number_literal "0x83") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      return puVar2;\n    }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "FUN_000e7d60();" (call_expression "FUN_000e7d60()" (identifier "FUN_000e7d60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = AcquireExceptionInfo();" (assignment_expression "uVar1 = AcquireExceptionInfo()" (identifier "uVar1") (= "=") (call_expression "AcquireExceptionInfo()" (identifier "AcquireExceptionInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = GetExceptionMessage(*piVar4);" (assignment_expression "uVar5 = GetExceptionMessage(*piVar4)" (identifier "uVar5") (= "=") (call_expression "GetExceptionMessage(*piVar4)" (identifier "GetExceptionMessage") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5);" (call_expression "ThrowMagickException\n            (uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5)" (identifier "ThrowMagickException") (argument_list "(uVar1,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",\n             &DAT_000e91ee,uVar5)" (( "(") (identifier "uVar1") (, ",") (string_literal ""MagickWand/wandcli.c"" (" """) (string_content "MagickWand/wandcli.c") (" """)) (, ",") (string_literal ""AcquireMagickCLI"" (" """) (string_content "AcquireMagickCLI") (" """)) (, ",") (number_literal "0x5b") (, ",") (number_literal "700") (, ",") (string_literal ""MemoryAllocationFailed"" (" """) (string_content "MemoryAllocationFailed") (" """)) (, ",") (pointer_expression "&DAT_000e91ee" (& "&") (identifier "DAT_000e91ee")) (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "CatchException(uVar1);" (call_expression "CatchException(uVar1)" (identifier "CatchException") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "DestroyExceptionInfo(uVar1);" (call_expression "DestroyExceptionInfo(uVar1)" (identifier "DestroyExceptionInfo") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "MagickWandTerminus();" (call_expression "MagickWandTerminus()" (identifier "MagickWandTerminus") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "_exit(1);" (call_expression "_exit(1)" (identifier "_exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}")))

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

type_1 * function_1(type_2 *var_15,type_3 *var_17)

{
  char *pcVar1;
  type_4 uVar2;
  type_1 *var_11;
  size_t sVar4;
  type_5 *pIVar5;
  type_6 var_21;
  type_7 *pDVar7;
  type_8 *pQVar8;
  type_3 *pEVar9;
  type_2 *pIVar10;
  int *piVar11;
  type_4 uVar12;
  int var_1;
  size_t var_3;
  int var_24;
  type_4 uStack_14;
  
  uStack_14 = 0xe4a39;
  var_24 = *(int *)(var_1 + 0x14);
  var_3 = 0x10;
  uVar2 = var_2(&var_3);
  if (var_3 != 0x10) {
    uVar12 = var_4();
    var_5
              (uVar12,"MagickWand/wandcli.c","AcquireMagickCLI",0x54,0x1d6,"QuantumDepthMismatch",
               &DAT_000e91ee,uVar2);
    var_6(uVar12);
    var_7(uVar12);
    var_8();
                    /* WARNING: Subroutine does not return */
    var_9(-0xe5);
  }
  var_11 = (type_1 *)var_10(0x104c);
  if (var_11 != (type_1 *)0x0) {
    sVar4 = var_12();
    pcVar1 = (var_11->wand).name;
    (var_11->wand).id = sVar4;
    var_13(pcVar1,0x1000,"%s-%.20g","MagickWandCLI",(double)sVar4);
    pIVar5 = (type_5 *)var_14();
    (var_11->wand).images = pIVar5;
    if (var_15 == (type_2 *)0x0) {
      pIVar10 = (type_2 *)var_16();
      (var_11->wand).var_15 = pIVar10;
    }
    else {
      (var_11->wand).var_15 = var_15;
    }
    if (var_17 == (type_3 *)0x0) {
      pEVar9 = (type_3 *)var_4();
      (var_11->wand).var_17 = pEVar9;
    }
    else {
      (var_11->wand).var_17 = var_17;
    }
    var_21 = var_18();
    (var_11->wand).signature = 0xabacadab;
    (var_11->wand).debug = var_21;
    pDVar7 = (type_7 *)var_19((var_11->wand).var_15,0);
    var_11->draw_info = pDVar7;
    pQVar8 = (type_8 *)var_20((var_11->wand).var_15);
    var_21 = (var_11->wand).debug;
    var_11->process_flags = MagickCommandOptionFlags;
    var_11->quantize_info = pQVar8;
    var_11->location = "from \"%s\"";
    var_11->command = (type_9 *)0x0;
    var_11->image_list_stack = (type_10 *)0x0;
    var_11->image_info_stack = (type_10 *)0x0;
    var_11->filename = "unknown";
    var_11->line = 0;
    var_11->column = 0;
    var_11->signature = 0xabacadab;
    if (var_21 != var_22) {
      var_23(0x40000,"MagickWand/wandcli.c","AcquireMagickCLI",0x83,"%s",pcVar1);
    }
    if (var_24 == *(int *)(var_1 + 0x14)) {
      return var_11;
    }
                    /* WARNING: Subroutine does not return */
    var_25();
  }
  uVar2 = var_4();
  piVar11 = var_26();
  uVar12 = var_27(*piVar11);
  var_5
            (uVar2,"MagickWand/wandcli.c","AcquireMagickCLI",0x5b,700,"MemoryAllocationFailed",
             &DAT_000e91ee,uVar12);
  var_6(uVar2);
  var_7(uVar2);
  var_8();
                    /* WARNING: Subroutine does not return */
  var_9(1);
}


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

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

uint * MASKED(uint param_1,uint param_2)

{
  undefined4 uVar1;
  uint *puVar2;
  uint uVar3;
  int *piVar4;
  undefined4 uVar5;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xe4a39;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0x10;
  uVar1 = GetMagickQuantumDepth(&local_24);
  if (local_24 != 0x10) {
    uVar5 = AcquireExceptionInfo();
    ThrowMagickException
              (uVar5,"MagickWand/wandcli.c","MASKED",0x54,0x1d6,"QuantumDepthMismatch",
               &DAT_000e91ee,uVar1);
    CatchException(uVar5);
    DestroyExceptionInfo(uVar5);
    MagickWandTerminus();
                    /* WARNING: Subroutine does not return */
    _exit(-0xe5);
  }
  puVar2 = (uint *)AcquireMagickMemory(0x104c);
  if (puVar2 != (uint *)0x0) {
    uVar3 = AcquireWandId();
    *puVar2 = uVar3;
    FormatLocaleString(puVar2 + 1,0x1000,"%s-%.20g","MagickWandCLI",(double)uVar3);
    uVar3 = NewImageList();
    puVar2[0x401] = uVar3;
    if (param_1 == 0) {
      uVar3 = AcquireImageInfo();
      puVar2[0x402] = uVar3;
    }
    else {
      puVar2[0x402] = param_1;
    }
    if (param_2 == 0) {
      uVar3 = AcquireExceptionInfo();
      puVar2[0x403] = uVar3;
    }
    else {
      puVar2[0x403] = param_2;
    }
    uVar3 = IsEventLogging();
    puVar2[0x407] = 0xabacadab;
    puVar2[0x406] = uVar3;
    uVar3 = CloneDrawInfo(puVar2[0x402],0);
    puVar2[0x409] = uVar3;
    uVar3 = AcquireQuantizeInfo(puVar2[0x402]);
    puVar2[0x40a] = 0x8fff;
    puVar2[0x408] = uVar3;
    puVar2[0x40e] = (uint)"from \"%s\"";
    puVar2[0x40b] = 0;
    puVar2[0x40c] = 0;
    puVar2[0x40d] = 0;
    puVar2[0x40f] = (uint)"unknown";
    puVar2[0x410] = 0;
    puVar2[0x411] = 0;
    puVar2[0x412] = 0xabacadab;
    if (puVar2[0x406] != 0) {
      LogMagickEvent(0x40000,"MagickWand/wandcli.c","MASKED",0x83,"%s",puVar2 + 1);
    }
    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
      return puVar2;
    }
                    /* WARNING: Subroutine does not return */
    FUN_000e7d60();
  }
  uVar1 = AcquireExceptionInfo();
  piVar4 = __errno_location();
  uVar5 = GetExceptionMessage(*piVar4);
  ThrowMagickException
            (uVar1,"MagickWand/wandcli.c","MASKED",0x5b,700,"MemoryAllocationFailed",
             &DAT_000e91ee,uVar5);
  CatchException(uVar1);
  DestroyExceptionInfo(uVar1);
  MagickWandTerminus();
                    /* WARNING: Subroutine does not return */
  _exit(1);
}

