
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": 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 "LogEventType": Some values do not have unique names */

MagickBooleanType
RemapImages(QuantizeInfo *quantize_info,Image *images,Image *remap_image,ExceptionInfo *exception)

{
  _Nodes_conflict *p_Var1;
  CubeInfo_conflict *cube_info;
  MagickBooleanType MVar2;
  NodeInfo_conflict *pNVar3;
  MemoryInfo *pMVar4;
  QuantizeInfo *pQVar5;
  Nodes_conflict *pNVar6;
  MagickBooleanType local_20;
  
  if (images == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");
  }
  if (images->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,
                  "RemapImages");
  }
  if (images->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")
    ;
  }
  if (exception->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,
                  "RemapImages");
  }
  if (remap_image == (Image *)0x0) {
    MVar2 = QuantizeImages(quantize_info,images,exception);
    return MVar2;
  }
  cube_info = GetCubeInfo(quantize_info,8,quantize_info->number_colors);
  if (cube_info == (CubeInfo_conflict *)0x0) {
    ThrowMagickException
              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,
               "MemoryAllocationFailed","`%s\'",images->filename);
    return MagickFalse;
  }
  MVar2 = ClassifyImageColors(cube_info,remap_image,exception);
  if (MVar2 == MagickFalse) {
LAB_00151f77:
    local_20 = MagickFalse;
  }
  else {
    cube_info->quantize_info->number_colors = cube_info->colors;
    do {
      local_20 = AssignImageColors(images,cube_info,exception);
      if (local_20 == MagickFalse) goto LAB_00151f77;
      images = GetNextImageInList(images);
    } while (images != (Image *)0x0);
  }
  pNVar6 = cube_info->node_queue;
  do {
    p_Var1 = pNVar6->next;
    pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes);
    pNVar6->nodes = pNVar3;
    RelinquishMagickMemory(cube_info->node_queue);
    cube_info->node_queue = p_Var1;
    pNVar6 = p_Var1;
  } while (p_Var1 != (_Nodes_conflict *)0x0);
  if (cube_info->memory_info != (MemoryInfo *)0x0) {
    pMVar4 = RelinquishVirtualMemory(cube_info->memory_info);
    cube_info->memory_info = pMVar4;
  }
  pQVar5 = DestroyQuantizeInfo(cube_info->quantize_info);
  cube_info->quantize_info = pQVar5;
  RelinquishMagickMemory(cube_info);
  return local_20;
}



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

int RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int local_20;
  
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");
  }
  if (*(int *)(param_2 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,
                  "RemapImages");
  }
  if (*(int *)(param_2 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)
    ;
  }
  if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")
    ;
  }
  if (*(int *)(param_4 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,
                  "RemapImages");
  }
  if (param_3 == 0) {
    iVar2 = QuantizeImages(param_1,param_2,param_4);
    return iVar2;
  }
  iVar2 = FUN_0014f680();
  if (iVar2 == 0) {
    ThrowMagickException
              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",
               "`%s\'",param_2 + 0x318);
    return 0;
  }
  iVar3 = FUN_0014ac50();
  if (iVar3 == 0) {
LAB_00151f77:
    local_20 = 0;
  }
  else {
    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);
    do {
      local_20 = FUN_0014eda0();
      if (local_20 == 0) goto LAB_00151f77;
      param_2 = GetNextImageInList(param_2);
    } while (param_2 != 0);
  }
  puVar5 = *(undefined4 **)(iVar2 + 0x60);
  do {
    puVar1 = (undefined4 *)puVar5[1];
    uVar4 = RelinquishMagickMemory(*puVar5);
    *puVar5 = uVar4;
    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));
    *(undefined4 **)(iVar2 + 0x60) = puVar1;
    puVar5 = puVar1;
  } while (puVar1 != (undefined4 *)0x0);
  if (*(int *)(iVar2 + 100) != 0) {
    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));
    *(undefined4 *)(iVar2 + 100) = uVar4;
  }
  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));
  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;
  RelinquishMagickMemory(iVar2);
  return local_20;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00039d70
ADD EBX,0x2cc147
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x38]
TEST EDI,EDI
JZ 0x001520a5
CMP dword ptr [EDI + 0x3344],0xabacadab
JNZ 0x00152102
MOV ECX,dword ptr [EDI + 0x3328]
TEST ECX,ECX
JNZ 0x00151ff0
MOV EDX,dword ptr [ESP + 0x3c]
TEST EDX,EDX
JZ 0x001520e3
MOV EAX,dword ptr [ESP + 0x3c]
CMP dword ptr [EAX + 0x1c],0xabacadab
JNZ 0x001520c4
TEST EBP,EBP
JZ 0x00152030
MOV ECX,dword ptr [ESI]
MOV EAX,ESI
MOV EDX,0x8
CALL 0x0014f680
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00152058
MOV ECX,dword ptr [ESP + 0x3c]
MOV EDX,EBP
CALL 0x0014ac50
TEST EAX,EAX
JZ 0x00151f77
MOV EAX,dword ptr [ESI + 0x2ec]
MOV EDX,dword ptr [ESI + 0x4]
MOV dword ptr [EAX],EDX
JMP 0x00151f62
SUB ESP,0xc
PUSH EDI
CALL 0x000319e0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00151f7f
MOV ECX,dword ptr [ESP + 0x3c]
MOV EDX,ESI
MOV EAX,EDI
CALL 0x0014eda0
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JNZ 0x00151f50
MOV dword ptr [ESP + 0xc],0x0
MOV EDI,dword ptr [ESI + 0x60]
LEA ESI,[ESI]
SUB ESP,0xc
MOV EBP,dword ptr [EDI + 0x4]
PUSH dword ptr [EDI]
CALL 0x00033ac8
MOV dword ptr [EDI],EAX
POP EAX
PUSH dword ptr [ESI + 0x60]
MOV EDI,EBP
CALL 0x00033ac8
MOV dword ptr [ESI + 0x60],EBP
ADD ESP,0x10
TEST EBP,EBP
JNZ 0x00151f88
MOV EAX,dword ptr [ESI + 0x64]
TEST EAX,EAX
JZ 0x00151fc2
SUB ESP,0xc
PUSH EAX
CALL 0x00031d50
ADD ESP,0x10
MOV dword ptr [ESI + 0x64],EAX
SUB ESP,0xc
PUSH dword ptr [ESI + 0x2ec]
CALL 0x00031970
MOV dword ptr [ESI + 0x2ec],EAX
MOV dword ptr [ESP],ESI
CALL 0x00033ac8
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EDI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffed95ae]
PUSH EAX
LEA EAX,[EBX + 0xffee6bc0]
PUSH 0xe30
PUSH EAX
LEA EAX,[EBX + 0xffee69ec]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x00151ef4
SUB ESP,0x4
PUSH dword ptr [ESP + 0x40]
PUSH EDI
PUSH ESI
CALL 0x00033110
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffec3be0]
ADD EDI,0x318
PUSH EDI
PUSH EAX
LEA EAX,[EBX + 0xffec156e]
PUSH EAX
LEA EAX,[EBX + 0xffee6bc0]
PUSH 0x190
PUSH 0xe43
PUSH EAX
LEA EAX,[EBX + 0xffee69ec]
PUSH EAX
PUSH dword ptr [ESP + 0x58]
CALL 0x00032e80
ADD ESP,0x20
MOV dword ptr [ESP + 0xc],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffee6bcc]
PUSH EAX
LEA EAX,[EBX + 0xffee69ec]
PUSH 0xe2d
PUSH EAX
LEA EAX,[EBX + 0xfff32ded]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffee6bcc]
PUSH EAX
LEA EAX,[EBX + 0xffee69ec]
PUSH 0xe32
PUSH EAX
LEA EAX,[EBX + 0xffec29d4]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffee6bcc]
PUSH EAX
LEA EAX,[EBX + 0xffee69ec]
PUSH 0xe31
PUSH EAX
LEA EAX,[EBX + 0xffec1be4]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffee6bcc]
PUSH EAX
LEA EAX,[EBX + 0xffee69ec]
PUSH 0xe2e
PUSH EAX
LEA EAX,[EBX + 0xffec1d44]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}\n\n" comment (function_definition "int RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}" primitive_type (function_declarator "RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" { comment (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" { comment (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" * (cast_expression "(int *)(param_2 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3328)" ( (binary_expression "param_2 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;" (call_expression "LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)" ( number_literal , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""RemapImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002f75ae" & identifier) , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" if (parenthesized_expression "(*(int *)(param_4 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_4 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_4 + 0x1c)" * (cast_expression "(int *)(param_4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x1c)" ( (binary_expression "param_4 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }" { (expression_statement "iVar2 = QuantizeImages(param_1,param_2,param_4);" (assignment_expression "iVar2 = QuantizeImages(param_1,param_2,param_4)" identifier = (call_expression "QuantizeImages(param_1,param_2,param_4)" identifier (argument_list "(param_1,param_2,param_4)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = FUN_0014f680();" (assignment_expression "iVar2 = FUN_0014f680()" identifier = (call_expression "FUN_0014f680()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }" { (expression_statement "ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);" (call_expression "ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318)" identifier (argument_list "(param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318)" ( identifier , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""RemapImages"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = FUN_0014ac50();" (assignment_expression "iVar3 = FUN_0014ac50()" identifier = (call_expression "FUN_0014ac50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00151f77:\n    local_20 = 0;\n  }" { (labeled_statement "LAB_00151f77:\n    local_20 = 0;" statement_identifier : (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" else (compound_statement "{\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" { (expression_statement "**(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);" (assignment_expression "**(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4)" (pointer_expression "**(undefined4 **)(iVar2 + 0x2ec)" * (pointer_expression "*(undefined4 **)(iVar2 + 0x2ec)" * (cast_expression "(undefined4 **)(iVar2 + 0x2ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x2ec)" ( (binary_expression "iVar2 + 0x2ec" identifier + number_literal) ))))) = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);" do (compound_statement "{\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    }" { (expression_statement "local_20 = FUN_0014eda0();" (assignment_expression "local_20 = FUN_0014eda0()" identifier = (call_expression "FUN_0014eda0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_20 == 0) goto LAB_00151f77;" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00151f77;" goto statement_identifier ;)) (expression_statement "param_2 = GetNextImageInList(param_2);" (assignment_expression "param_2 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }))) (expression_statement "puVar5 = *(undefined4 **)(iVar2 + 0x60);" (assignment_expression "puVar5 = *(undefined4 **)(iVar2 + 0x60)" identifier = (pointer_expression "*(undefined4 **)(iVar2 + 0x60)" * (cast_expression "(undefined4 **)(iVar2 + 0x60)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x60)" ( (binary_expression "iVar2 + 0x60" identifier + number_literal) ))))) ;) (do_statement "do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);" do (compound_statement "{\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  }" { (expression_statement "puVar1 = (undefined4 *)puVar5[1];" (assignment_expression "puVar1 = (undefined4 *)puVar5[1]" identifier = (cast_expression "(undefined4 *)puVar5[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar4 = RelinquishMagickMemory(*puVar5);" (assignment_expression "uVar4 = RelinquishMagickMemory(*puVar5)" identifier = (call_expression "RelinquishMagickMemory(*puVar5)" identifier (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "*puVar5 = uVar4;" (assignment_expression "*puVar5 = uVar4" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));" (call_expression "RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x60))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x60)" * (cast_expression "(undefined4 *)(iVar2 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x60)" ( (binary_expression "iVar2 + 0x60" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 **)(iVar2 + 0x60) = puVar1;" (assignment_expression "*(undefined4 **)(iVar2 + 0x60) = puVar1" (pointer_expression "*(undefined4 **)(iVar2 + 0x60)" * (cast_expression "(undefined4 **)(iVar2 + 0x60)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x60)" ( (binary_expression "iVar2 + 0x60" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar5 = puVar1;" (assignment_expression "puVar5 = puVar1" identifier = identifier) ;) }) while (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 100) != 0)" ( (binary_expression "*(int *)(iVar2 + 100) != 0" (pointer_expression "*(int *)(iVar2 + 100)" * (cast_expression "(int *)(iVar2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 100)" ( (binary_expression "iVar2 + 100" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }" { (expression_statement "uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));" (assignment_expression "uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100))" identifier = (call_expression "RelinquishVirtualMemory(*(int *)(iVar2 + 100))" identifier (argument_list "(*(int *)(iVar2 + 100))" ( (pointer_expression "*(int *)(iVar2 + 100)" * (cast_expression "(int *)(iVar2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 100)" ( (binary_expression "iVar2 + 100" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 100) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 100) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 100)" * (cast_expression "(undefined4 *)(iVar2 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 100)" ( (binary_expression "iVar2 + 100" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));" (assignment_expression "uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec))" identifier = (call_expression "DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x2ec))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x2ec)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ec)" ( (binary_expression "iVar2 + 0x2ec" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2ec) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ec) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ec)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ec)" ( (binary_expression "iVar2 + 0x2ec" identifier + number_literal) )))) = identifier) ;) (expression_statement "RelinquishMagickMemory(iVar2);" (call_expression "RelinquishMagickMemory(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": 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 "LogEventType": Some values do not have unique names */\n\nMagickBooleanType\nRemapImages(QuantizeInfo *quantize_info,Image *images,Image *remap_image,ExceptionInfo *exception)\n\n{\n  _Nodes_conflict *p_Var1;\n  CubeInfo_conflict *cube_info;\n  MagickBooleanType MVar2;\n  NodeInfo_conflict *pNVar3;\n  MemoryInfo *pMVar4;\n  QuantizeInfo *pQVar5;\n  Nodes_conflict *pNVar6;\n  MagickBooleanType local_20;\n  \n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (remap_image == (Image *)0x0) {\n    MVar2 = QuantizeImages(quantize_info,images,exception);\n    return MVar2;\n  }\n  cube_info = GetCubeInfo(quantize_info,8,quantize_info->number_colors);\n  if (cube_info == (CubeInfo_conflict *)0x0) {\n    ThrowMagickException\n              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename);\n    return MagickFalse;\n  }\n  MVar2 = ClassifyImageColors(cube_info,remap_image,exception);\n  if (MVar2 == MagickFalse) {\nLAB_00151f77:\n    local_20 = MagickFalse;\n  }\n  else {\n    cube_info->quantize_info->number_colors = cube_info->colors;\n    do {\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    } while (images != (Image *)0x0);\n  }\n  pNVar6 = cube_info->node_queue;\n  do {\n    p_Var1 = pNVar6->next;\n    pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes);\n    pNVar6->nodes = pNVar3;\n    RelinquishMagickMemory(cube_info->node_queue);\n    cube_info->node_queue = p_Var1;\n    pNVar6 = p_Var1;\n  } while (p_Var1 != (_Nodes_conflict *)0x0);\n  if (cube_info->memory_info != (MemoryInfo *)0x0) {\n    pMVar4 = RelinquishVirtualMemory(cube_info->memory_info);\n    cube_info->memory_info = pMVar4;\n  }\n  pQVar5 = DestroyQuantizeInfo(cube_info->quantize_info);\n  cube_info->quantize_info = pQVar5;\n  RelinquishMagickMemory(cube_info);\n  return local_20;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "MagickBooleanType\nRemapImages(QuantizeInfo *quantize_info,Image *images,Image *remap_image,ExceptionInfo *exception)\n\n{\n  _Nodes_conflict *p_Var1;\n  CubeInfo_conflict *cube_info;\n  MagickBooleanType MVar2;\n  NodeInfo_conflict *pNVar3;\n  MemoryInfo *pMVar4;\n  QuantizeInfo *pQVar5;\n  Nodes_conflict *pNVar6;\n  MagickBooleanType local_20;\n  \n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (remap_image == (Image *)0x0) {\n    MVar2 = QuantizeImages(quantize_info,images,exception);\n    return MVar2;\n  }\n  cube_info = GetCubeInfo(quantize_info,8,quantize_info->number_colors);\n  if (cube_info == (CubeInfo_conflict *)0x0) {\n    ThrowMagickException\n              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename);\n    return MagickFalse;\n  }\n  MVar2 = ClassifyImageColors(cube_info,remap_image,exception);\n  if (MVar2 == MagickFalse) {\nLAB_00151f77:\n    local_20 = MagickFalse;\n  }\n  else {\n    cube_info->quantize_info->number_colors = cube_info->colors;\n    do {\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    } while (images != (Image *)0x0);\n  }\n  pNVar6 = cube_info->node_queue;\n  do {\n    p_Var1 = pNVar6->next;\n    pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes);\n    pNVar6->nodes = pNVar3;\n    RelinquishMagickMemory(cube_info->node_queue);\n    cube_info->node_queue = p_Var1;\n    pNVar6 = p_Var1;\n  } while (p_Var1 != (_Nodes_conflict *)0x0);\n  if (cube_info->memory_info != (MemoryInfo *)0x0) {\n    pMVar4 = RelinquishVirtualMemory(cube_info->memory_info);\n    cube_info->memory_info = pMVar4;\n  }\n  pQVar5 = DestroyQuantizeInfo(cube_info->quantize_info);\n  cube_info->quantize_info = pQVar5;\n  RelinquishMagickMemory(cube_info);\n  return local_20;\n}" type_identifier (function_declarator "RemapImages(QuantizeInfo *quantize_info,Image *images,Image *remap_image,ExceptionInfo *exception)" identifier (parameter_list "(QuantizeInfo *quantize_info,Image *images,Image *remap_image,ExceptionInfo *exception)" ( (parameter_declaration "QuantizeInfo *quantize_info" type_identifier (pointer_declarator "*quantize_info" * identifier)) , (parameter_declaration "Image *images" type_identifier (pointer_declarator "*images" * identifier)) , (parameter_declaration "Image *remap_image" type_identifier (pointer_declarator "*remap_image" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  _Nodes_conflict *p_Var1;\n  CubeInfo_conflict *cube_info;\n  MagickBooleanType MVar2;\n  NodeInfo_conflict *pNVar3;\n  MemoryInfo *pMVar4;\n  QuantizeInfo *pQVar5;\n  Nodes_conflict *pNVar6;\n  MagickBooleanType local_20;\n  \n  if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (remap_image == (Image *)0x0) {\n    MVar2 = QuantizeImages(quantize_info,images,exception);\n    return MVar2;\n  }\n  cube_info = GetCubeInfo(quantize_info,8,quantize_info->number_colors);\n  if (cube_info == (CubeInfo_conflict *)0x0) {\n    ThrowMagickException\n              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename);\n    return MagickFalse;\n  }\n  MVar2 = ClassifyImageColors(cube_info,remap_image,exception);\n  if (MVar2 == MagickFalse) {\nLAB_00151f77:\n    local_20 = MagickFalse;\n  }\n  else {\n    cube_info->quantize_info->number_colors = cube_info->colors;\n    do {\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    } while (images != (Image *)0x0);\n  }\n  pNVar6 = cube_info->node_queue;\n  do {\n    p_Var1 = pNVar6->next;\n    pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes);\n    pNVar6->nodes = pNVar3;\n    RelinquishMagickMemory(cube_info->node_queue);\n    cube_info->node_queue = p_Var1;\n    pNVar6 = p_Var1;\n  } while (p_Var1 != (_Nodes_conflict *)0x0);\n  if (cube_info->memory_info != (MemoryInfo *)0x0) {\n    pMVar4 = RelinquishVirtualMemory(cube_info->memory_info);\n    cube_info->memory_info = pMVar4;\n  }\n  pQVar5 = DestroyQuantizeInfo(cube_info->quantize_info);\n  cube_info->quantize_info = pQVar5;\n  RelinquishMagickMemory(cube_info);\n  return local_20;\n}" { (declaration "_Nodes_conflict *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "CubeInfo_conflict *cube_info;" type_identifier (pointer_declarator "*cube_info" * identifier) ;) (declaration "MagickBooleanType MVar2;" type_identifier identifier ;) (declaration "NodeInfo_conflict *pNVar3;" type_identifier (pointer_declarator "*pNVar3" * identifier) ;) (declaration "MemoryInfo *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (declaration "QuantizeInfo *pQVar5;" type_identifier (pointer_declarator "*pQVar5" * identifier) ;) (declaration "Nodes_conflict *pNVar6;" type_identifier (pointer_declarator "*pNVar6" * identifier) ;) (declaration "MagickBooleanType local_20;" type_identifier identifier ;) (if_statement "if (images == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" if (parenthesized_expression "(images == (Image *)0x0)" ( (binary_expression "images == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" { comment (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (images->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" if (parenthesized_expression "(images->signature != 0xabacadab)" ( (binary_expression "images->signature != 0xabacadab" (field_expression "images->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" { comment (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (images->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename);\n  }" if (parenthesized_expression "(images->debug != MagickFalse)" ( (binary_expression "images->debug != MagickFalse" (field_expression "images->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename)" identifier (argument_list "(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",images->filename)" ( identifier , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""RemapImages"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "images->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\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                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" if (parenthesized_expression "(exception->signature != 0xabacadab)" ( (binary_expression "exception->signature != 0xabacadab" (field_expression "exception->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (remap_image == (Image *)0x0) {\n    MVar2 = QuantizeImages(quantize_info,images,exception);\n    return MVar2;\n  }" if (parenthesized_expression "(remap_image == (Image *)0x0)" ( (binary_expression "remap_image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    MVar2 = QuantizeImages(quantize_info,images,exception);\n    return MVar2;\n  }" { (expression_statement "MVar2 = QuantizeImages(quantize_info,images,exception);" (assignment_expression "MVar2 = QuantizeImages(quantize_info,images,exception)" identifier = (call_expression "QuantizeImages(quantize_info,images,exception)" identifier (argument_list "(quantize_info,images,exception)" ( identifier , identifier , identifier )))) ;) (return_statement "return MVar2;" return identifier ;) })) (expression_statement "cube_info = GetCubeInfo(quantize_info,8,quantize_info->number_colors);" (assignment_expression "cube_info = GetCubeInfo(quantize_info,8,quantize_info->number_colors)" identifier = (call_expression "GetCubeInfo(quantize_info,8,quantize_info->number_colors)" identifier (argument_list "(quantize_info,8,quantize_info->number_colors)" ( identifier , number_literal , (field_expression "quantize_info->number_colors" identifier -> field_identifier) )))) ;) (if_statement "if (cube_info == (CubeInfo_conflict *)0x0) {\n    ThrowMagickException\n              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename);\n    return MagickFalse;\n  }" if (parenthesized_expression "(cube_info == (CubeInfo_conflict *)0x0)" ( (binary_expression "cube_info == (CubeInfo_conflict *)0x0" identifier == (cast_expression "(CubeInfo_conflict *)0x0" ( (type_descriptor "CubeInfo_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ThrowMagickException\n              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename);\n    return MagickFalse;\n  }" { (expression_statement "ThrowMagickException\n              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename);" (call_expression "ThrowMagickException\n              (exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename)" identifier (argument_list "(exception,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,\n               "MemoryAllocationFailed","`%s\'",images->filename)" ( identifier , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""RemapImages"" " string_content ") , number_literal , identifier , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (field_expression "images->filename" identifier -> field_identifier) ))) ;) (return_statement "return MagickFalse;" return identifier ;) })) (expression_statement "MVar2 = ClassifyImageColors(cube_info,remap_image,exception);" (assignment_expression "MVar2 = ClassifyImageColors(cube_info,remap_image,exception)" identifier = (call_expression "ClassifyImageColors(cube_info,remap_image,exception)" identifier (argument_list "(cube_info,remap_image,exception)" ( identifier , identifier , identifier )))) ;) (if_statement "if (MVar2 == MagickFalse) {\nLAB_00151f77:\n    local_20 = MagickFalse;\n  }\n  else {\n    cube_info->quantize_info->number_colors = cube_info->colors;\n    do {\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    } while (images != (Image *)0x0);\n  }" if (parenthesized_expression "(MVar2 == MagickFalse)" ( (binary_expression "MVar2 == MagickFalse" identifier == identifier) )) (compound_statement "{\nLAB_00151f77:\n    local_20 = MagickFalse;\n  }" { (labeled_statement "LAB_00151f77:\n    local_20 = MagickFalse;" statement_identifier : (expression_statement "local_20 = MagickFalse;" (assignment_expression "local_20 = MagickFalse" identifier = identifier) ;)) }) (else_clause "else {\n    cube_info->quantize_info->number_colors = cube_info->colors;\n    do {\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    } while (images != (Image *)0x0);\n  }" else (compound_statement "{\n    cube_info->quantize_info->number_colors = cube_info->colors;\n    do {\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    } while (images != (Image *)0x0);\n  }" { (expression_statement "cube_info->quantize_info->number_colors = cube_info->colors;" (assignment_expression "cube_info->quantize_info->number_colors = cube_info->colors" (field_expression "cube_info->quantize_info->number_colors" (field_expression "cube_info->quantize_info" identifier -> field_identifier) -> field_identifier) = (field_expression "cube_info->colors" identifier -> field_identifier)) ;) (do_statement "do {\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    } while (images != (Image *)0x0);" do (compound_statement "{\n      local_20 = AssignImageColors(images,cube_info,exception);\n      if (local_20 == MagickFalse) goto LAB_00151f77;\n      images = GetNextImageInList(images);\n    }" { (expression_statement "local_20 = AssignImageColors(images,cube_info,exception);" (assignment_expression "local_20 = AssignImageColors(images,cube_info,exception)" identifier = (call_expression "AssignImageColors(images,cube_info,exception)" identifier (argument_list "(images,cube_info,exception)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_20 == MagickFalse) goto LAB_00151f77;" if (parenthesized_expression "(local_20 == MagickFalse)" ( (binary_expression "local_20 == MagickFalse" identifier == identifier) )) (goto_statement "goto LAB_00151f77;" goto statement_identifier ;)) (expression_statement "images = GetNextImageInList(images);" (assignment_expression "images = GetNextImageInList(images)" identifier = (call_expression "GetNextImageInList(images)" identifier (argument_list "(images)" ( identifier )))) ;) }) while (parenthesized_expression "(images != (Image *)0x0)" ( (binary_expression "images != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (expression_statement "pNVar6 = cube_info->node_queue;" (assignment_expression "pNVar6 = cube_info->node_queue" identifier = (field_expression "cube_info->node_queue" identifier -> field_identifier)) ;) (do_statement "do {\n    p_Var1 = pNVar6->next;\n    pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes);\n    pNVar6->nodes = pNVar3;\n    RelinquishMagickMemory(cube_info->node_queue);\n    cube_info->node_queue = p_Var1;\n    pNVar6 = p_Var1;\n  } while (p_Var1 != (_Nodes_conflict *)0x0);" do (compound_statement "{\n    p_Var1 = pNVar6->next;\n    pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes);\n    pNVar6->nodes = pNVar3;\n    RelinquishMagickMemory(cube_info->node_queue);\n    cube_info->node_queue = p_Var1;\n    pNVar6 = p_Var1;\n  }" { (expression_statement "p_Var1 = pNVar6->next;" (assignment_expression "p_Var1 = pNVar6->next" identifier = (field_expression "pNVar6->next" identifier -> field_identifier)) ;) (expression_statement "pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes);" (assignment_expression "pNVar3 = (NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes)" identifier = (cast_expression "(NodeInfo_conflict *)RelinquishMagickMemory(pNVar6->nodes)" ( (type_descriptor "NodeInfo_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(pNVar6->nodes)" identifier (argument_list "(pNVar6->nodes)" ( (field_expression "pNVar6->nodes" identifier -> field_identifier) ))))) ;) (expression_statement "pNVar6->nodes = pNVar3;" (assignment_expression "pNVar6->nodes = pNVar3" (field_expression "pNVar6->nodes" identifier -> field_identifier) = identifier) ;) (expression_statement "RelinquishMagickMemory(cube_info->node_queue);" (call_expression "RelinquishMagickMemory(cube_info->node_queue)" identifier (argument_list "(cube_info->node_queue)" ( (field_expression "cube_info->node_queue" identifier -> field_identifier) ))) ;) (expression_statement "cube_info->node_queue = p_Var1;" (assignment_expression "cube_info->node_queue = p_Var1" (field_expression "cube_info->node_queue" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar6 = p_Var1;" (assignment_expression "pNVar6 = p_Var1" identifier = identifier) ;) }) while (parenthesized_expression "(p_Var1 != (_Nodes_conflict *)0x0)" ( (binary_expression "p_Var1 != (_Nodes_conflict *)0x0" identifier != (cast_expression "(_Nodes_conflict *)0x0" ( (type_descriptor "_Nodes_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (cube_info->memory_info != (MemoryInfo *)0x0) {\n    pMVar4 = RelinquishVirtualMemory(cube_info->memory_info);\n    cube_info->memory_info = pMVar4;\n  }" if (parenthesized_expression "(cube_info->memory_info != (MemoryInfo *)0x0)" ( (binary_expression "cube_info->memory_info != (MemoryInfo *)0x0" (field_expression "cube_info->memory_info" identifier -> field_identifier) != (cast_expression "(MemoryInfo *)0x0" ( (type_descriptor "MemoryInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMVar4 = RelinquishVirtualMemory(cube_info->memory_info);\n    cube_info->memory_info = pMVar4;\n  }" { (expression_statement "pMVar4 = RelinquishVirtualMemory(cube_info->memory_info);" (assignment_expression "pMVar4 = RelinquishVirtualMemory(cube_info->memory_info)" identifier = (call_expression "RelinquishVirtualMemory(cube_info->memory_info)" identifier (argument_list "(cube_info->memory_info)" ( (field_expression "cube_info->memory_info" identifier -> field_identifier) )))) ;) (expression_statement "cube_info->memory_info = pMVar4;" (assignment_expression "cube_info->memory_info = pMVar4" (field_expression "cube_info->memory_info" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pQVar5 = DestroyQuantizeInfo(cube_info->quantize_info);" (assignment_expression "pQVar5 = DestroyQuantizeInfo(cube_info->quantize_info)" identifier = (call_expression "DestroyQuantizeInfo(cube_info->quantize_info)" identifier (argument_list "(cube_info->quantize_info)" ( (field_expression "cube_info->quantize_info" identifier -> field_identifier) )))) ;) (expression_statement "cube_info->quantize_info = pQVar5;" (assignment_expression "cube_info->quantize_info = pQVar5" (field_expression "cube_info->quantize_info" identifier -> field_identifier) = identifier) ;) (expression_statement "RelinquishMagickMemory(cube_info);" (call_expression "RelinquishMagickMemory(cube_info)" identifier (argument_list "(cube_info)" ( identifier ))) ;) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "int RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}\n\n" (function_definition "int RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}" primitive_type (function_declarator "RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" { (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" identifier (argument_list "("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" ( (string_literal ""images != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" { (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" identifier (argument_list "("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" ( (string_literal ""images->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" * (cast_expression "(int *)(param_2 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3328)" ( (binary_expression "param_2 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;" (call_expression "LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)" ( number_literal , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""RemapImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002f75ae" & identifier) , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" if (parenthesized_expression "(*(int *)(param_4 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_4 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_4 + 0x1c)" * (cast_expression "(int *)(param_4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x1c)" ( (binary_expression "param_4 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" { (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""RemapImages"" " string_content ") ))) ;) })) (if_statement "if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }" { (expression_statement "iVar2 = QuantizeImages(param_1,param_2,param_4);" (assignment_expression "iVar2 = QuantizeImages(param_1,param_2,param_4)" identifier = (call_expression "QuantizeImages(param_1,param_2,param_4)" identifier (argument_list "(param_1,param_2,param_4)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = FUN_0014f680();" (assignment_expression "iVar2 = FUN_0014f680()" identifier = (call_expression "FUN_0014f680()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }" { (expression_statement "ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);" (call_expression "ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318)" identifier (argument_list "(param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318)" ( identifier , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""RemapImages"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = FUN_0014ac50();" (assignment_expression "iVar3 = FUN_0014ac50()" identifier = (call_expression "FUN_0014ac50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00151f77:\n    local_20 = 0;\n  }" { (labeled_statement "LAB_00151f77:\n    local_20 = 0;" statement_identifier : (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" else (compound_statement "{\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" { (expression_statement "**(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);" (assignment_expression "**(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4)" (pointer_expression "**(undefined4 **)(iVar2 + 0x2ec)" * (pointer_expression "*(undefined4 **)(iVar2 + 0x2ec)" * (cast_expression "(undefined4 **)(iVar2 + 0x2ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x2ec)" ( (binary_expression "iVar2 + 0x2ec" identifier + number_literal) ))))) = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);" do (compound_statement "{\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    }" { (expression_statement "local_20 = FUN_0014eda0();" (assignment_expression "local_20 = FUN_0014eda0()" identifier = (call_expression "FUN_0014eda0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_20 == 0) goto LAB_00151f77;" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00151f77;" goto statement_identifier ;)) (expression_statement "param_2 = GetNextImageInList(param_2);" (assignment_expression "param_2 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }))) (expression_statement "puVar5 = *(undefined4 **)(iVar2 + 0x60);" (assignment_expression "puVar5 = *(undefined4 **)(iVar2 + 0x60)" identifier = (pointer_expression "*(undefined4 **)(iVar2 + 0x60)" * (cast_expression "(undefined4 **)(iVar2 + 0x60)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x60)" ( (binary_expression "iVar2 + 0x60" identifier + number_literal) ))))) ;) (do_statement "do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);" do (compound_statement "{\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  }" { (expression_statement "puVar1 = (undefined4 *)puVar5[1];" (assignment_expression "puVar1 = (undefined4 *)puVar5[1]" identifier = (cast_expression "(undefined4 *)puVar5[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar4 = RelinquishMagickMemory(*puVar5);" (assignment_expression "uVar4 = RelinquishMagickMemory(*puVar5)" identifier = (call_expression "RelinquishMagickMemory(*puVar5)" identifier (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "*puVar5 = uVar4;" (assignment_expression "*puVar5 = uVar4" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));" (call_expression "RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x60))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x60)" * (cast_expression "(undefined4 *)(iVar2 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x60)" ( (binary_expression "iVar2 + 0x60" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 **)(iVar2 + 0x60) = puVar1;" (assignment_expression "*(undefined4 **)(iVar2 + 0x60) = puVar1" (pointer_expression "*(undefined4 **)(iVar2 + 0x60)" * (cast_expression "(undefined4 **)(iVar2 + 0x60)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x60)" ( (binary_expression "iVar2 + 0x60" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar5 = puVar1;" (assignment_expression "puVar5 = puVar1" identifier = identifier) ;) }) while (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 100) != 0)" ( (binary_expression "*(int *)(iVar2 + 100) != 0" (pointer_expression "*(int *)(iVar2 + 100)" * (cast_expression "(int *)(iVar2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 100)" ( (binary_expression "iVar2 + 100" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }" { (expression_statement "uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));" (assignment_expression "uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100))" identifier = (call_expression "RelinquishVirtualMemory(*(int *)(iVar2 + 100))" identifier (argument_list "(*(int *)(iVar2 + 100))" ( (pointer_expression "*(int *)(iVar2 + 100)" * (cast_expression "(int *)(iVar2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 100)" ( (binary_expression "iVar2 + 100" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 100) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 100) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 100)" * (cast_expression "(undefined4 *)(iVar2 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 100)" ( (binary_expression "iVar2 + 100" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));" (assignment_expression "uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec))" identifier = (call_expression "DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x2ec))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x2ec)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ec)" ( (binary_expression "iVar2 + 0x2ec" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2ec) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ec) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ec)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ec)" ( (binary_expression "iVar2 + 0x2ec" identifier + number_literal) )))) = identifier) ;) (expression_statement "RelinquishMagickMemory(iVar2);" (call_expression "RelinquishMagickMemory(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return local_20;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (string_literal " string_content escape_sequence ") , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}" (primitive_type "int") (function_declarator "RemapImages(undefined4 param_1,int param_2,int param_3,int param_4)" (identifier "RemapImages") (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int local_20;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }\n  if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }\n  if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }\n  if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }\n  if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }\n  iVar2 = FUN_0014f680();\n  if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }\n  iVar3 = FUN_0014ac50();\n  if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }\n  puVar5 = *(undefined4 **)(iVar2 + 0x60);\n  do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);\n  if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }\n  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));\n  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;\n  RelinquishMagickMemory(iVar2);\n  return local_20;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");\n  }" ({ "{") (expression_statement "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");" (call_expression "__assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" (identifier "__assert_fail") (argument_list "("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages")" (( "(") (string_literal ""images != (Image *) NULL"" (" """) (string_content "images != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (number_literal "0xe2d") (, ",") (string_literal ""RemapImages"" (" """) (string_content "RemapImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x3344) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_2 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" (* "*") (cast_expression "(int *)(param_2 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3344)" (( "(") (binary_expression "param_2 + 0x3344" (identifier "param_2") (+ "+") (number_literal "0x3344")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");\n  }" ({ "{") (expression_statement "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages");" (call_expression "__assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" (identifier "__assert_fail") (argument_list "("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,\n                  "RemapImages")" (( "(") (string_literal ""images->signature == MagickCoreSignature"" (" """) (string_content "images->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (number_literal "0xe2e") (, ",") (string_literal ""RemapImages"" (" """) (string_content "RemapImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" (* "*") (cast_expression "(int *)(param_2 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3328)" (( "(") (binary_expression "param_2 + 0x3328" (identifier "param_2") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)\n    ;" (call_expression "LogMagickEvent(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/quantize.c","RemapImages",0xe30,&DAT_002f75ae,param_2 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (string_literal ""RemapImages"" (" """) (string_content "RemapImages") (" """)) (, ",") (number_literal "0xe30") (, ",") (pointer_expression "&DAT_002f75ae" (& "&") (identifier "DAT_002f75ae")) (, ",") (binary_expression "param_2 + 0x318" (identifier "param_2") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")\n    ;" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (number_literal "0xe31") (, ",") (string_literal ""RemapImages"" (" """) (string_content "RemapImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_4 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_4 + 0x1c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_4 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_4 + 0x1c)" (* "*") (cast_expression "(int *)(param_4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x1c)" (( "(") (binary_expression "param_4 + 0x1c" (identifier "param_4") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");\n  }" ({ "{") (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" (identifier "__assert_fail") (argument_list "("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,\n                  "RemapImages")" (( "(") (string_literal ""exception->signature == MagickCoreSignature"" (" """) (string_content "exception->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (number_literal "0xe32") (, ",") (string_literal ""RemapImages"" (" """) (string_content "RemapImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = QuantizeImages(param_1,param_2,param_4);\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = QuantizeImages(param_1,param_2,param_4);" (assignment_expression "iVar2 = QuantizeImages(param_1,param_2,param_4)" (identifier "iVar2") (= "=") (call_expression "QuantizeImages(param_1,param_2,param_4)" (identifier "QuantizeImages") (argument_list "(param_1,param_2,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_4") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0014f680();" (assignment_expression "iVar2 = FUN_0014f680()" (identifier "iVar2") (= "=") (call_expression "FUN_0014f680()" (identifier "FUN_0014f680") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);\n    return 0;\n  }" ({ "{") (expression_statement "ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318);" (call_expression "ThrowMagickException\n              (param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318)" (identifier "ThrowMagickException") (argument_list "(param_4,"MagickCore/quantize.c","RemapImages",0xe43,400,"MemoryAllocationFailed",\n               "`%s\'",param_2 + 0x318)" (( "(") (identifier "param_4") (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (string_literal ""RemapImages"" (" """) (string_content "RemapImages") (" """)) (, ",") (number_literal "0xe43") (, ",") (number_literal "400") (, ",") (string_literal ""MemoryAllocationFailed"" (" """) (string_content "MemoryAllocationFailed") (" """)) (, ",") (string_literal ""`%s\'"" (" """) (string_content "`%s") (escape_sequence "\'") (" """)) (, ",") (binary_expression "param_2 + 0x318" (identifier "param_2") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_0014ac50();" (assignment_expression "iVar3 = FUN_0014ac50()" (identifier "iVar3") (= "=") (call_expression "FUN_0014ac50()" (identifier "FUN_0014ac50") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\nLAB_00151f77:\n    local_20 = 0;\n  }\n  else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00151f77:\n    local_20 = 0;\n  }" ({ "{") (labeled_statement "LAB_00151f77:\n    local_20 = 0;" (statement_identifier "LAB_00151f77") (: ":") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" (else "else") (compound_statement "{\n    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);\n    do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);\n  }" ({ "{") (expression_statement "**(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);" (assignment_expression "**(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4)" (pointer_expression "**(undefined4 **)(iVar2 + 0x2ec)" (* "*") (pointer_expression "*(undefined4 **)(iVar2 + 0x2ec)" (* "*") (cast_expression "(undefined4 **)(iVar2 + 0x2ec)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x2ec)" (( "(") (binary_expression "iVar2 + 0x2ec" (identifier "iVar2") (+ "+") (number_literal "0x2ec")) () ")"))))) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (do_statement "do {\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      local_20 = FUN_0014eda0();\n      if (local_20 == 0) goto LAB_00151f77;\n      param_2 = GetNextImageInList(param_2);\n    }" ({ "{") (expression_statement "local_20 = FUN_0014eda0();" (assignment_expression "local_20 = FUN_0014eda0()" (identifier "local_20") (= "=") (call_expression "FUN_0014eda0()" (identifier "FUN_0014eda0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (local_20 == 0) goto LAB_00151f77;" (if "if") (parenthesized_expression "(local_20 == 0)" (( "(") (binary_expression "local_20 == 0" (identifier "local_20") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00151f77;" (goto "goto") (statement_identifier "LAB_00151f77") (; ";"))) (expression_statement "param_2 = GetNextImageInList(param_2);" (assignment_expression "param_2 = GetNextImageInList(param_2)" (identifier "param_2") (= "=") (call_expression "GetNextImageInList(param_2)" (identifier "GetNextImageInList") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (expression_statement "puVar5 = *(undefined4 **)(iVar2 + 0x60);" (assignment_expression "puVar5 = *(undefined4 **)(iVar2 + 0x60)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined4 **)(iVar2 + 0x60)" (* "*") (cast_expression "(undefined4 **)(iVar2 + 0x60)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x60)" (( "(") (binary_expression "iVar2 + 0x60" (identifier "iVar2") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (do_statement "do {\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  } while (puVar1 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n    puVar1 = (undefined4 *)puVar5[1];\n    uVar4 = RelinquishMagickMemory(*puVar5);\n    *puVar5 = uVar4;\n    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));\n    *(undefined4 **)(iVar2 + 0x60) = puVar1;\n    puVar5 = puVar1;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)puVar5[1];" (assignment_expression "puVar1 = (undefined4 *)puVar5[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)puVar5[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar4 = RelinquishMagickMemory(*puVar5);" (assignment_expression "uVar4 = RelinquishMagickMemory(*puVar5)" (identifier "uVar4") (= "=") (call_expression "RelinquishMagickMemory(*puVar5)" (identifier "RelinquishMagickMemory") (argument_list "(*puVar5)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) () ")")))) (; ";")) (expression_statement "*puVar5 = uVar4;" (assignment_expression "*puVar5 = uVar4" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));" (call_expression "RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60))" (identifier "RelinquishMagickMemory") (argument_list "(*(undefined4 *)(iVar2 + 0x60))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x60)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x60)" (( "(") (binary_expression "iVar2 + 0x60" (identifier "iVar2") (+ "+") (number_literal "0x60")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 **)(iVar2 + 0x60) = puVar1;" (assignment_expression "*(undefined4 **)(iVar2 + 0x60) = puVar1" (pointer_expression "*(undefined4 **)(iVar2 + 0x60)" (* "*") (cast_expression "(undefined4 **)(iVar2 + 0x60)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x60)" (( "(") (binary_expression "iVar2 + 0x60" (identifier "iVar2") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar5 = puVar1;" (assignment_expression "puVar5 = puVar1" (identifier "puVar5") (= "=") (identifier "puVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (*(int *)(iVar2 + 100) != 0) {\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 100) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 100) != 0" (pointer_expression "*(int *)(iVar2 + 100)" (* "*") (cast_expression "(int *)(iVar2 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 100)" (( "(") (binary_expression "iVar2 + 100" (identifier "iVar2") (+ "+") (number_literal "100")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));\n    *(undefined4 *)(iVar2 + 100) = uVar4;\n  }" ({ "{") (expression_statement "uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));" (assignment_expression "uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100))" (identifier "uVar4") (= "=") (call_expression "RelinquishVirtualMemory(*(int *)(iVar2 + 100))" (identifier "RelinquishVirtualMemory") (argument_list "(*(int *)(iVar2 + 100))" (( "(") (pointer_expression "*(int *)(iVar2 + 100)" (* "*") (cast_expression "(int *)(iVar2 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 100)" (( "(") (binary_expression "iVar2 + 100" (identifier "iVar2") (+ "+") (number_literal "100")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 100) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 100) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 100)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 100)" (( "(") (binary_expression "iVar2 + 100" (identifier "iVar2") (+ "+") (number_literal "100")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));" (assignment_expression "uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec))" (identifier "uVar4") (= "=") (call_expression "DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec))" (identifier "DestroyQuantizeInfo") (argument_list "(*(undefined4 *)(iVar2 + 0x2ec))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x2ec)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2ec)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2ec)" (( "(") (binary_expression "iVar2 + 0x2ec" (identifier "iVar2") (+ "+") (number_literal "0x2ec")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x2ec) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ec) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ec)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2ec)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2ec)" (( "(") (binary_expression "iVar2 + 0x2ec" (identifier "iVar2") (+ "+") (number_literal "0x2ec")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "RelinquishMagickMemory(iVar2);" (call_expression "RelinquishMagickMemory(iVar2)" (identifier "RelinquishMagickMemory") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": 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 "LogEventType": Some values do not have unique names */

type_1
function_1(type_2 *quantize_info,type_3 *var_1,type_3 *var_6,type_4 *var_5)

{
  type_5 *var_17;
  type_6 *var_9;
  type_1 var_12;
  type_7 *pNVar3;
  type_8 *pMVar4;
  type_2 *pQVar5;
  type_9 *pNVar6;
  type_1 var_14;
  
  if (var_1 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"RemapImages");
  }
  if (var_1->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,
                  "RemapImages");
  }
  if (var_1->debug != var_3) {
    var_4(TraceEvent,"MagickCore/quantize.c","RemapImages",0xe30,"%s",var_1->filename);
  }
  if (var_5 == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"RemapImages")
    ;
  }
  if (var_5->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,
                  "RemapImages");
  }
  if (var_6 == (type_3 *)0x0) {
    var_12 = var_7(quantize_info,var_1,var_5);
    return var_12;
  }
  var_9 = var_8(quantize_info,8,quantize_info->number_colors);
  if (var_9 == (type_6 *)0x0) {
    var_10
              (var_5,"MagickCore/quantize.c","RemapImages",0xe43,ErrorException,
               "MemoryAllocationFailed","`%s\'",var_1->filename);
    return var_3;
  }
  var_12 = var_11(var_9,var_6,var_5);
  if (var_12 == var_3) {
LAB_00151f77:
    var_14 = var_3;
  }
  else {
    var_9->quantize_info->number_colors = var_9->colors;
    do {
      var_14 = var_13(var_1,var_9,var_5);
      if (var_14 == var_3) goto LAB_00151f77;
      var_1 = var_15(var_1);
    } while (var_1 != (type_3 *)0x0);
  }
  pNVar6 = var_9->node_queue;
  do {
    var_17 = pNVar6->next;
    pNVar3 = (type_7 *)var_16(pNVar6->nodes);
    pNVar6->nodes = pNVar3;
    var_16(var_9->node_queue);
    var_9->node_queue = var_17;
    pNVar6 = var_17;
  } while (var_17 != (type_5 *)0x0);
  if (var_9->memory_info != (type_8 *)0x0) {
    pMVar4 = var_18(var_9->memory_info);
    var_9->memory_info = pMVar4;
  }
  pQVar5 = var_19(var_9->quantize_info);
  var_9->quantize_info = pQVar5;
  var_16(var_9);
  return var_14;
}


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

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

int MASKED(undefined4 param_1,int param_2,int param_3,int param_4)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int local_20;
  
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image *) NULL","MagickCore/quantize.c",0xe2d,"MASKED");
  }
  if (*(int *)(param_2 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images->signature == MagickCoreSignature","MagickCore/quantize.c",0xe2e,
                  "MASKED");
  }
  if (*(int *)(param_2 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/quantize.c","MASKED",0xe30,&DAT_002f75ae,param_2 + 0x318)
    ;
  }
  if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/quantize.c",0xe31,"MASKED")
    ;
  }
  if (*(int *)(param_4 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/quantize.c",0xe32,
                  "MASKED");
  }
  if (param_3 == 0) {
    iVar2 = QuantizeImages(param_1,param_2,param_4);
    return iVar2;
  }
  iVar2 = FUN_0014f680();
  if (iVar2 == 0) {
    ThrowMagickException
              (param_4,"MagickCore/quantize.c","MASKED",0xe43,400,"MemoryAllocationFailed",
               "`%s\'",param_2 + 0x318);
    return 0;
  }
  iVar3 = FUN_0014ac50();
  if (iVar3 == 0) {
LAB_00151f77:
    local_20 = 0;
  }
  else {
    **(undefined4 **)(iVar2 + 0x2ec) = *(undefined4 *)(iVar2 + 4);
    do {
      local_20 = FUN_0014eda0();
      if (local_20 == 0) goto LAB_00151f77;
      param_2 = GetNextImageInList(param_2);
    } while (param_2 != 0);
  }
  puVar5 = *(undefined4 **)(iVar2 + 0x60);
  do {
    puVar1 = (undefined4 *)puVar5[1];
    uVar4 = RelinquishMagickMemory(*puVar5);
    *puVar5 = uVar4;
    RelinquishMagickMemory(*(undefined4 *)(iVar2 + 0x60));
    *(undefined4 **)(iVar2 + 0x60) = puVar1;
    puVar5 = puVar1;
  } while (puVar1 != (undefined4 *)0x0);
  if (*(int *)(iVar2 + 100) != 0) {
    uVar4 = RelinquishVirtualMemory(*(int *)(iVar2 + 100));
    *(undefined4 *)(iVar2 + 100) = uVar4;
  }
  uVar4 = DestroyQuantizeInfo(*(undefined4 *)(iVar2 + 0x2ec));
  *(undefined4 *)(iVar2 + 0x2ec) = uVar4;
  RelinquishMagickMemory(iVar2);
  return local_20;
}

