
/* 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 "LogEventType": Some values do not have unique names */

Image * RemoveImageFromList(Image **images)

{
  Image *pIVar1;
  _Image *p_Var2;
  _Image *p_Var3;
  
  if (images == (Image **)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");
  }
  pIVar1 = *images;
  if (pIVar1 == (Image *)0x0) {
    return (Image *)0x0;
  }
  if (pIVar1->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,
                  "RemoveImageFromList");
  }
  if (pIVar1->debug == MagickFalse) {
    p_Var2 = pIVar1->previous;
    p_Var3 = pIVar1->next;
    if (p_Var2 == (_Image *)0x0) goto LAB_000efe76;
LAB_000efdf0:
    p_Var2->next = p_Var3;
    *images = p_Var2;
    p_Var3 = pIVar1->next;
    if (p_Var3 == (_Image *)0x0) goto LAB_000efe10;
    p_Var2 = pIVar1->previous;
  }
  else {
    LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)
    ;
    pIVar1 = *images;
    p_Var2 = pIVar1->previous;
    p_Var3 = pIVar1->next;
    if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;
LAB_000efe76:
    if (p_Var3 == (_Image *)0x0) {
      *images = (Image *)0x0;
      return pIVar1;
    }
  }
  p_Var3->previous = p_Var2;
  *images = p_Var3;
LAB_000efe10:
  pIVar1->previous = (_Image *)0x0;
  pIVar1->next = (_Image *)0x0;
  return pIVar1;
}



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

void RemoveImageFromList(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");
  }
  iVar1 = *param_1;
  if (iVar1 == 0) {
    return;
  }
  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,
                  "RemoveImageFromList");
  }
  if (*(int *)(iVar1 + 0x3328) == 0) {
    iVar2 = *(int *)(iVar1 + 0x333c);
    iVar3 = *(int *)(iVar1 + 0x3340);
    if (iVar2 == 0) goto LAB_000efe76;
LAB_000efdf0:
    *(int *)(iVar2 + 0x3340) = iVar3;
    *param_1 = iVar2;
    iVar3 = *(int *)(iVar1 + 0x3340);
    if (iVar3 == 0) goto LAB_000efe10;
    iVar2 = *(int *)(iVar1 + 0x333c);
  }
  else {
    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,
                   iVar1 + 0x318);
    iVar1 = *param_1;
    iVar2 = *(int *)(iVar1 + 0x333c);
    iVar3 = *(int *)(iVar1 + 0x3340);
    if (iVar2 != 0) goto LAB_000efdf0;
LAB_000efe76:
    if (iVar3 == 0) {
      *param_1 = 0;
      return;
    }
  }
  *(int *)(iVar3 + 0x333c) = iVar2;
  *param_1 = iVar3;
LAB_000efe10:
  *(undefined4 *)(iVar1 + 0x333c) = 0;
  *(undefined4 *)(iVar1 + 0x3340) = 0;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2e9259
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x000efe82
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x000efe24
CMP dword ptr [EAX + 0x3344],0xabacadab
JNZ 0x000efea1
MOV EDX,dword ptr [EAX + 0x3328]
TEST EDX,EDX
JNZ 0x000efe30
MOV ECX,dword ptr [EAX + 0x333c]
MOV EDX,dword ptr [EAX + 0x3340]
TEST ECX,ECX
JZ 0x000efe76
MOV dword ptr [ECX + 0x3340],EDX
MOV dword ptr [ESI],ECX
MOV EDX,dword ptr [EAX + 0x3340]
TEST EDX,EDX
JZ 0x000efe10
MOV ECX,dword ptr [EAX + 0x333c]
MOV dword ptr [EDX + 0x333c],ECX
MOV dword ptr [ESI],EDX
MOV dword ptr [EAX + 0x333c],0x0
MOV dword ptr [EAX + 0x3340],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x8
ADD EAX,0x318
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffedf8a8]
PUSH 0x402
PUSH EAX
LEA EAX,[EBX + 0xffedf5b4]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
MOV EAX,dword ptr [ESI]
ADD ESP,0x20
MOV ECX,dword ptr [EAX + 0x333c]
MOV EDX,dword ptr [EAX + 0x3340]
TEST ECX,ECX
JNZ 0x000efdf0
TEST EDX,EDX
JNZ 0x000efe08
MOV dword ptr [ESI],0x0
JMP 0x000efe24
LEA EAX,[EBX + 0xffedf8bc]
PUSH EAX
LEA EAX,[EBX + 0xffedf5b4]
PUSH 0x3fd
PUSH EAX
LEA EAX,[EBX + 0xffedf5e1]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffedf8bc]
PUSH EAX
LEA EAX,[EBX + 0xffedf5b4]
PUSH 0x400
PUSH EAX
LEA EAX,[EBX + 0xffedf208]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid RemoveImageFromList(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}\n\n" comment (function_definition "void RemoveImageFromList(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}" primitive_type (function_declarator "RemoveImageFromList(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }" { comment (expression_statement "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");" (call_expression "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" identifier (argument_list "("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" ( (string_literal ""images != (Image **) NULL"" " string_content ") , (string_literal ""MagickCore/list.c"" " string_content ") , number_literal , (string_literal ""RemoveImageFromList"" " string_content ") ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(iVar1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x3344)" * (cast_expression "(int *)(iVar1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3344)" ( (binary_expression "iVar1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" { comment (expression_statement "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");" (call_expression "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" identifier (argument_list "("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" ( (string_literal ""(*images)->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/list.c"" " string_content ") , number_literal , (string_literal ""RemoveImageFromList"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x3328) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x3328) == 0" (pointer_expression "*(int *)(iVar1 + 0x3328)" * (cast_expression "(int *)(iVar1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3328)" ( (binary_expression "iVar1 + 0x3328" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }" { (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar1 + 0x3340)" * (cast_expression "(int *)(iVar1 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) goto LAB_000efe76;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000efe76;" goto statement_identifier ;)) (labeled_statement "LAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;" statement_identifier : (expression_statement "*(int *)(iVar2 + 0x3340) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x3340) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x3340)" * (cast_expression "(int *)(iVar2 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3340)" ( (binary_expression "iVar2 + 0x3340" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar1 + 0x3340)" * (cast_expression "(int *)(iVar1 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) goto LAB_000efe10;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000efe10;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" else (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318)" ( number_literal , (string_literal ""MagickCore/list.c"" " string_content ") , (string_literal ""RemoveImageFromList"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "iVar1 + 0x318" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar1 + 0x3340)" * (cast_expression "(int *)(iVar1 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) goto LAB_000efdf0;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000efdf0;" goto statement_identifier ;)) (labeled_statement "LAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }" statement_identifier : (if_statement "if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_1 = 0;\n      return;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) }))) }))) (expression_statement "*(int *)(iVar3 + 0x333c) = iVar2;" (assignment_expression "*(int *)(iVar3 + 0x333c) = iVar2" (pointer_expression "*(int *)(iVar3 + 0x333c)" * (cast_expression "(int *)(iVar3 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x333c)" ( (binary_expression "iVar3 + 0x333c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (labeled_statement "LAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(iVar1 + 0x333c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x333c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x333c)" * (cast_expression "(undefined4 *)(iVar1 + 0x333c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(undefined4 *)(iVar1 + 0x3340) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x3340) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x3340)" * (cast_expression "(undefined4 *)(iVar1 + 0x3340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(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 "LogEventType": Some values do not have unique names */\n\nImage * RemoveImageFromList(Image **images)\n\n{\n  Image *pIVar1;\n  _Image *p_Var2;\n  _Image *p_Var3;\n  \n  if (images == (Image **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  pIVar1 = *images;\n  if (pIVar1 == (Image *)0x0) {\n    return (Image *)0x0;\n  }\n  if (pIVar1->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (pIVar1->debug == MagickFalse) {\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 == (_Image *)0x0) goto LAB_000efe76;\nLAB_000efdf0:\n    p_Var2->next = p_Var3;\n    *images = p_Var2;\n    p_Var3 = pIVar1->next;\n    if (p_Var3 == (_Image *)0x0) goto LAB_000efe10;\n    p_Var2 = pIVar1->previous;\n  }\n  else {\n    LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)\n    ;\n    pIVar1 = *images;\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }\n  }\n  p_Var3->previous = p_Var2;\n  *images = p_Var3;\nLAB_000efe10:\n  pIVar1->previous = (_Image *)0x0;\n  pIVar1->next = (_Image *)0x0;\n  return pIVar1;\n}\n\n" comment comment comment comment comment comment comment (function_definition "Image * RemoveImageFromList(Image **images)\n\n{\n  Image *pIVar1;\n  _Image *p_Var2;\n  _Image *p_Var3;\n  \n  if (images == (Image **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  pIVar1 = *images;\n  if (pIVar1 == (Image *)0x0) {\n    return (Image *)0x0;\n  }\n  if (pIVar1->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (pIVar1->debug == MagickFalse) {\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 == (_Image *)0x0) goto LAB_000efe76;\nLAB_000efdf0:\n    p_Var2->next = p_Var3;\n    *images = p_Var2;\n    p_Var3 = pIVar1->next;\n    if (p_Var3 == (_Image *)0x0) goto LAB_000efe10;\n    p_Var2 = pIVar1->previous;\n  }\n  else {\n    LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)\n    ;\n    pIVar1 = *images;\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }\n  }\n  p_Var3->previous = p_Var2;\n  *images = p_Var3;\nLAB_000efe10:\n  pIVar1->previous = (_Image *)0x0;\n  pIVar1->next = (_Image *)0x0;\n  return pIVar1;\n}" type_identifier (pointer_declarator "* RemoveImageFromList(Image **images)" * (function_declarator "RemoveImageFromList(Image **images)" identifier (parameter_list "(Image **images)" ( (parameter_declaration "Image **images" type_identifier (pointer_declarator "**images" * (pointer_declarator "*images" * identifier))) )))) (compound_statement "{\n  Image *pIVar1;\n  _Image *p_Var2;\n  _Image *p_Var3;\n  \n  if (images == (Image **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  pIVar1 = *images;\n  if (pIVar1 == (Image *)0x0) {\n    return (Image *)0x0;\n  }\n  if (pIVar1->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (pIVar1->debug == MagickFalse) {\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 == (_Image *)0x0) goto LAB_000efe76;\nLAB_000efdf0:\n    p_Var2->next = p_Var3;\n    *images = p_Var2;\n    p_Var3 = pIVar1->next;\n    if (p_Var3 == (_Image *)0x0) goto LAB_000efe10;\n    p_Var2 = pIVar1->previous;\n  }\n  else {\n    LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)\n    ;\n    pIVar1 = *images;\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }\n  }\n  p_Var3->previous = p_Var2;\n  *images = p_Var3;\nLAB_000efe10:\n  pIVar1->previous = (_Image *)0x0;\n  pIVar1->next = (_Image *)0x0;\n  return pIVar1;\n}" { (declaration "Image *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "_Image *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_Image *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (if_statement "if (images == (Image **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\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 "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }" { comment (expression_statement "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");" (call_expression "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" identifier (argument_list "("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" ( (string_literal ""images != (Image **) NULL"" " string_content ") , (string_literal ""MagickCore/list.c"" " string_content ") , number_literal , (string_literal ""RemoveImageFromList"" " string_content ") ))) ;) })) (expression_statement "pIVar1 = *images;" (assignment_expression "pIVar1 = *images" identifier = (pointer_expression "*images" * identifier)) ;) (if_statement "if (pIVar1 == (Image *)0x0) {\n    return (Image *)0x0;\n  }" if (parenthesized_expression "(pIVar1 == (Image *)0x0)" ( (binary_expression "pIVar1 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (Image *)0x0;\n  }" { (return_statement "return (Image *)0x0;" return (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (pIVar1->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" if (parenthesized_expression "(pIVar1->signature != 0xabacadab)" ( (binary_expression "pIVar1->signature != 0xabacadab" (field_expression "pIVar1->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" { comment (expression_statement "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");" (call_expression "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" identifier (argument_list "("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" ( (string_literal ""(*images)->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/list.c"" " string_content ") , number_literal , (string_literal ""RemoveImageFromList"" " string_content ") ))) ;) })) (if_statement "if (pIVar1->debug == MagickFalse) {\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 == (_Image *)0x0) goto LAB_000efe76;\nLAB_000efdf0:\n    p_Var2->next = p_Var3;\n    *images = p_Var2;\n    p_Var3 = pIVar1->next;\n    if (p_Var3 == (_Image *)0x0) goto LAB_000efe10;\n    p_Var2 = pIVar1->previous;\n  }\n  else {\n    LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)\n    ;\n    pIVar1 = *images;\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }\n  }" if (parenthesized_expression "(pIVar1->debug == MagickFalse)" ( (binary_expression "pIVar1->debug == MagickFalse" (field_expression "pIVar1->debug" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 == (_Image *)0x0) goto LAB_000efe76;\nLAB_000efdf0:\n    p_Var2->next = p_Var3;\n    *images = p_Var2;\n    p_Var3 = pIVar1->next;\n    if (p_Var3 == (_Image *)0x0) goto LAB_000efe10;\n    p_Var2 = pIVar1->previous;\n  }" { (expression_statement "p_Var2 = pIVar1->previous;" (assignment_expression "p_Var2 = pIVar1->previous" identifier = (field_expression "pIVar1->previous" identifier -> field_identifier)) ;) (expression_statement "p_Var3 = pIVar1->next;" (assignment_expression "p_Var3 = pIVar1->next" identifier = (field_expression "pIVar1->next" identifier -> field_identifier)) ;) (if_statement "if (p_Var2 == (_Image *)0x0) goto LAB_000efe76;" if (parenthesized_expression "(p_Var2 == (_Image *)0x0)" ( (binary_expression "p_Var2 == (_Image *)0x0" identifier == (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000efe76;" goto statement_identifier ;)) (labeled_statement "LAB_000efdf0:\n    p_Var2->next = p_Var3;" statement_identifier : (expression_statement "p_Var2->next = p_Var3;" (assignment_expression "p_Var2->next = p_Var3" (field_expression "p_Var2->next" identifier -> field_identifier) = identifier) ;)) (expression_statement "*images = p_Var2;" (assignment_expression "*images = p_Var2" (pointer_expression "*images" * identifier) = identifier) ;) (expression_statement "p_Var3 = pIVar1->next;" (assignment_expression "p_Var3 = pIVar1->next" identifier = (field_expression "pIVar1->next" identifier -> field_identifier)) ;) (if_statement "if (p_Var3 == (_Image *)0x0) goto LAB_000efe10;" if (parenthesized_expression "(p_Var3 == (_Image *)0x0)" ( (binary_expression "p_Var3 == (_Image *)0x0" identifier == (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000efe10;" goto statement_identifier ;)) (expression_statement "p_Var2 = pIVar1->previous;" (assignment_expression "p_Var2 = pIVar1->previous" identifier = (field_expression "pIVar1->previous" identifier -> field_identifier)) ;) }) (else_clause "else {\n    LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)\n    ;\n    pIVar1 = *images;\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }\n  }" else (compound_statement "{\n    LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)\n    ;\n    pIVar1 = *images;\n    p_Var2 = pIVar1->previous;\n    p_Var3 = pIVar1->next;\n    if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)\n    ;" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)" identifier (argument_list "(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",pIVar1->filename)" ( identifier , (string_literal ""MagickCore/list.c"" " string_content ") , (string_literal ""RemoveImageFromList"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "pIVar1->filename" identifier -> field_identifier) ))) ;) (expression_statement "pIVar1 = *images;" (assignment_expression "pIVar1 = *images" identifier = (pointer_expression "*images" * identifier)) ;) (expression_statement "p_Var2 = pIVar1->previous;" (assignment_expression "p_Var2 = pIVar1->previous" identifier = (field_expression "pIVar1->previous" identifier -> field_identifier)) ;) (expression_statement "p_Var3 = pIVar1->next;" (assignment_expression "p_Var3 = pIVar1->next" identifier = (field_expression "pIVar1->next" identifier -> field_identifier)) ;) (if_statement "if (p_Var2 != (_Image *)0x0) goto LAB_000efdf0;" if (parenthesized_expression "(p_Var2 != (_Image *)0x0)" ( (binary_expression "p_Var2 != (_Image *)0x0" identifier != (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000efdf0;" goto statement_identifier ;)) (labeled_statement "LAB_000efe76:\n    if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }" statement_identifier : (if_statement "if (p_Var3 == (_Image *)0x0) {\n      *images = (Image *)0x0;\n      return pIVar1;\n    }" if (parenthesized_expression "(p_Var3 == (_Image *)0x0)" ( (binary_expression "p_Var3 == (_Image *)0x0" identifier == (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *images = (Image *)0x0;\n      return pIVar1;\n    }" { (expression_statement "*images = (Image *)0x0;" (assignment_expression "*images = (Image *)0x0" (pointer_expression "*images" * identifier) = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pIVar1;" return identifier ;) }))) }))) (expression_statement "p_Var3->previous = p_Var2;" (assignment_expression "p_Var3->previous = p_Var2" (field_expression "p_Var3->previous" identifier -> field_identifier) = identifier) ;) (expression_statement "*images = p_Var3;" (assignment_expression "*images = p_Var3" (pointer_expression "*images" * identifier) = identifier) ;) (labeled_statement "LAB_000efe10:\n  pIVar1->previous = (_Image *)0x0;" statement_identifier : (expression_statement "pIVar1->previous = (_Image *)0x0;" (assignment_expression "pIVar1->previous = (_Image *)0x0" (field_expression "pIVar1->previous" identifier -> field_identifier) = (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "pIVar1->next = (_Image *)0x0;" (assignment_expression "pIVar1->next = (_Image *)0x0" (field_expression "pIVar1->next" identifier -> field_identifier) = (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pIVar1;" return identifier ;) })))
(translation_unit "void RemoveImageFromList(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}\n\n" (function_definition "void RemoveImageFromList(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}" primitive_type (function_declarator "RemoveImageFromList(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }" { (expression_statement "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");" (call_expression "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" identifier (argument_list "("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" ( (string_literal ""images != (Image **) NULL"" " string_content ") , (string_literal ""MagickCore/list.c"" " string_content ") , number_literal , (string_literal ""RemoveImageFromList"" " string_content ") ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(iVar1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x3344)" * (cast_expression "(int *)(iVar1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3344)" ( (binary_expression "iVar1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" { (expression_statement "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");" (call_expression "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" identifier (argument_list "("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" ( (string_literal ""(*images)->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/list.c"" " string_content ") , number_literal , (string_literal ""RemoveImageFromList"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x3328) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x3328) == 0" (pointer_expression "*(int *)(iVar1 + 0x3328)" * (cast_expression "(int *)(iVar1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3328)" ( (binary_expression "iVar1 + 0x3328" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }" { (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar1 + 0x3340)" * (cast_expression "(int *)(iVar1 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) goto LAB_000efe76;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000efe76;" goto statement_identifier ;)) (labeled_statement "LAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;" statement_identifier : (expression_statement "*(int *)(iVar2 + 0x3340) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x3340) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x3340)" * (cast_expression "(int *)(iVar2 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3340)" ( (binary_expression "iVar2 + 0x3340" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar1 + 0x3340)" * (cast_expression "(int *)(iVar1 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) goto LAB_000efe10;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000efe10;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" else (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318)" ( number_literal , (string_literal ""MagickCore/list.c"" " string_content ") , (string_literal ""RemoveImageFromList"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "iVar1 + 0x318" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar1 + 0x3340)" * (cast_expression "(int *)(iVar1 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) goto LAB_000efdf0;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000efdf0;" goto statement_identifier ;)) (labeled_statement "LAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }" statement_identifier : (if_statement "if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_1 = 0;\n      return;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) }))) }))) (expression_statement "*(int *)(iVar3 + 0x333c) = iVar2;" (assignment_expression "*(int *)(iVar3 + 0x333c) = iVar2" (pointer_expression "*(int *)(iVar3 + 0x333c)" * (cast_expression "(int *)(iVar3 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x333c)" ( (binary_expression "iVar3 + 0x333c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (labeled_statement "LAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(iVar1 + 0x333c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x333c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x333c)" * (cast_expression "(undefined4 *)(iVar1 + 0x333c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(undefined4 *)(iVar1 + 0x3340) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x3340) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x3340)" * (cast_expression "(undefined4 *)(iVar1 + 0x3340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3340)" ( (binary_expression "iVar1 + 0x3340" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (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) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) }))) }))) (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 (pointer_expression * IDENT) = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void RemoveImageFromList(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "RemoveImageFromList(int *param_1)" (identifier "RemoveImageFromList") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }\n  iVar1 = *param_1;\n  if (iVar1 == 0) {\n    return;\n  }\n  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }\n  if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }\n  *(int *)(iVar3 + 0x333c) = iVar2;\n  *param_1 = iVar3;\nLAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;\n  *(undefined4 *)(iVar1 + 0x3340) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");\n  }" ({ "{") (expression_statement "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");" (call_expression "__assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" (identifier "__assert_fail") (argument_list "("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList")" (( "(") (string_literal ""images != (Image **) NULL"" (" """) (string_content "images != (Image **) NULL") (" """)) (, ",") (string_literal ""MagickCore/list.c"" (" """) (string_content "MagickCore/list.c") (" """)) (, ",") (number_literal "0x3fd") (, ",") (string_literal ""RemoveImageFromList"" (" """) (string_content "RemoveImageFromList") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x3344) != -0x54535255)" (( "(") (binary_expression "*(int *)(iVar1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x3344)" (* "*") (cast_expression "(int *)(iVar1 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3344)" (( "(") (binary_expression "iVar1 + 0x3344" (identifier "iVar1") (+ "+") (number_literal "0x3344")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");\n  }" ({ "{") (expression_statement "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList");" (call_expression "__assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" (identifier "__assert_fail") (argument_list "("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,\n                  "RemoveImageFromList")" (( "(") (string_literal ""(*images)->signature == MagickCoreSignature"" (" """) (string_content "(*images)->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/list.c"" (" """) (string_content "MagickCore/list.c") (" """)) (, ",") (number_literal "0x400") (, ",") (string_literal ""RemoveImageFromList"" (" """) (string_content "RemoveImageFromList") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x3328) == 0) {\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }\n  else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x3328) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x3328) == 0" (pointer_expression "*(int *)(iVar1 + 0x3328)" (* "*") (cast_expression "(int *)(iVar1 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3328)" (( "(") (binary_expression "iVar1 + 0x3328" (identifier "iVar1") (+ "+") (number_literal "0x3328")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 == 0) goto LAB_000efe76;\nLAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;\n    *param_1 = iVar2;\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar3 == 0) goto LAB_000efe10;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x333c)" (* "*") (cast_expression "(int *)(iVar1 + 0x333c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x333c)" (( "(") (binary_expression "iVar1 + 0x333c" (identifier "iVar1") (+ "+") (number_literal "0x333c")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x3340)" (* "*") (cast_expression "(int *)(iVar1 + 0x3340)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3340)" (( "(") (binary_expression "iVar1 + 0x3340" (identifier "iVar1") (+ "+") (number_literal "0x3340")) () ")"))))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_000efe76;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000efe76;" (goto "goto") (statement_identifier "LAB_000efe76") (; ";"))) (labeled_statement "LAB_000efdf0:\n    *(int *)(iVar2 + 0x3340) = iVar3;" (statement_identifier "LAB_000efdf0") (: ":") (expression_statement "*(int *)(iVar2 + 0x3340) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x3340) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x3340)" (* "*") (cast_expression "(int *)(iVar2 + 0x3340)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x3340)" (( "(") (binary_expression "iVar2 + 0x3340" (identifier "iVar2") (+ "+") (number_literal "0x3340")) () ")")))) (= "=") (identifier "iVar3")) (; ";"))) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x3340)" (* "*") (cast_expression "(int *)(iVar1 + 0x3340)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3340)" (( "(") (binary_expression "iVar1 + 0x3340" (identifier "iVar1") (+ "+") (number_literal "0x3340")) () ")"))))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_000efe10;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000efe10;" (goto "goto") (statement_identifier "LAB_000efe10") (; ";"))) (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x333c)" (* "*") (cast_expression "(int *)(iVar1 + 0x333c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x333c)" (( "(") (binary_expression "iVar1 + 0x333c" (identifier "iVar1") (+ "+") (number_literal "0x333c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);\n    iVar1 = *param_1;\n    iVar2 = *(int *)(iVar1 + 0x333c);\n    iVar3 = *(int *)(iVar1 + 0x3340);\n    if (iVar2 != 0) goto LAB_000efdf0;\nLAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/list.c","RemoveImageFromList",0x402,&DAT_002b6e4e,\n                   iVar1 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/list.c"" (" """) (string_content "MagickCore/list.c") (" """)) (, ",") (string_literal ""RemoveImageFromList"" (" """) (string_content "RemoveImageFromList") (" """)) (, ",") (number_literal "0x402") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "iVar1 + 0x318" (identifier "iVar1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar1 + 0x333c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x333c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x333c)" (* "*") (cast_expression "(int *)(iVar1 + 0x333c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x333c)" (( "(") (binary_expression "iVar1 + 0x333c" (identifier "iVar1") (+ "+") (number_literal "0x333c")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar1 + 0x3340);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x3340)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x3340)" (* "*") (cast_expression "(int *)(iVar1 + 0x3340)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3340)" (( "(") (binary_expression "iVar1 + 0x3340" (identifier "iVar1") (+ "+") (number_literal "0x3340")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_000efdf0;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000efdf0;" (goto "goto") (statement_identifier "LAB_000efdf0") (; ";"))) (labeled_statement "LAB_000efe76:\n    if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }" (statement_identifier "LAB_000efe76") (: ":") (if_statement "if (iVar3 == 0) {\n      *param_1 = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_1 = 0;\n      return;\n    }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))) (} "}")))) (expression_statement "*(int *)(iVar3 + 0x333c) = iVar2;" (assignment_expression "*(int *)(iVar3 + 0x333c) = iVar2" (pointer_expression "*(int *)(iVar3 + 0x333c)" (* "*") (cast_expression "(int *)(iVar3 + 0x333c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x333c)" (( "(") (binary_expression "iVar3 + 0x333c" (identifier "iVar3") (+ "+") (number_literal "0x333c")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (labeled_statement "LAB_000efe10:\n  *(undefined4 *)(iVar1 + 0x333c) = 0;" (statement_identifier "LAB_000efe10") (: ":") (expression_statement "*(undefined4 *)(iVar1 + 0x333c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x333c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x333c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x333c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x333c)" (( "(") (binary_expression "iVar1 + 0x333c" (identifier "iVar1") (+ "+") (number_literal "0x333c")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (expression_statement "*(undefined4 *)(iVar1 + 0x3340) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x3340) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x3340)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x3340)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3340)" (( "(") (binary_expression "iVar1 + 0x3340" (identifier "iVar1") (+ "+") (number_literal "0x3340")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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 "LogEventType": Some values do not have unique names */

type_1 * function_1(type_1 **var_1)

{
  type_1 *var_3;
  type_2 *var_5;
  type_2 *var_6;
  
  if (var_1 == (type_1 **)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("images != (Image **) NULL","MagickCore/list.c",0x3fd,"RemoveImageFromList");
  }
  var_3 = *var_1;
  if (var_3 == (type_1 *)0x0) {
    return (type_1 *)0x0;
  }
  if (var_3->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,
                  "RemoveImageFromList");
  }
  if (var_3->debug == var_4) {
    var_5 = var_3->previous;
    var_6 = var_3->next;
    if (var_5 == (type_2 *)0x0) goto LAB_000efe76;
LAB_000efdf0:
    var_5->next = var_6;
    *var_1 = var_5;
    var_6 = var_3->next;
    if (var_6 == (type_2 *)0x0) goto LAB_000efe10;
    var_5 = var_3->previous;
  }
  else {
    var_7(TraceEvent,"MagickCore/list.c","RemoveImageFromList",0x402,"%s",var_3->filename)
    ;
    var_3 = *var_1;
    var_5 = var_3->previous;
    var_6 = var_3->next;
    if (var_5 != (type_2 *)0x0) goto LAB_000efdf0;
LAB_000efe76:
    if (var_6 == (type_2 *)0x0) {
      *var_1 = (type_1 *)0x0;
      return var_3;
    }
  }
  var_6->previous = var_5;
  *var_1 = var_6;
LAB_000efe10:
  var_3->previous = (type_2 *)0x0;
  var_3->next = (type_2 *)0x0;
  return var_3;
}


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

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

void MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("images != (Image **) NULL","MagickCore/list.c",0x3fd,"MASKED");
  }
  iVar1 = *param_1;
  if (iVar1 == 0) {
    return;
  }
  if (*(int *)(iVar1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(*images)->signature == MagickCoreSignature","MagickCore/list.c",0x400,
                  "MASKED");
  }
  if (*(int *)(iVar1 + 0x3328) == 0) {
    iVar2 = *(int *)(iVar1 + 0x333c);
    iVar3 = *(int *)(iVar1 + 0x3340);
    if (iVar2 == 0) goto LAB_000efe76;
LAB_000efdf0:
    *(int *)(iVar2 + 0x3340) = iVar3;
    *param_1 = iVar2;
    iVar3 = *(int *)(iVar1 + 0x3340);
    if (iVar3 == 0) goto LAB_000efe10;
    iVar2 = *(int *)(iVar1 + 0x333c);
  }
  else {
    LogMagickEvent(0x8000,"MagickCore/list.c","MASKED",0x402,&DAT_002b6e4e,
                   iVar1 + 0x318);
    iVar1 = *param_1;
    iVar2 = *(int *)(iVar1 + 0x333c);
    iVar3 = *(int *)(iVar1 + 0x3340);
    if (iVar2 != 0) goto LAB_000efdf0;
LAB_000efe76:
    if (iVar3 == 0) {
      *param_1 = 0;
      return;
    }
  }
  *(int *)(iVar3 + 0x333c) = iVar2;
  *param_1 = iVar3;
LAB_000efe10:
  *(undefined4 *)(iVar1 + 0x333c) = 0;
  *(undefined4 *)(iVar1 + 0x3340) = 0;
  return;
}

