
/* 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 */

MagickBooleanType
MagickGetImagePage(MagickWand *wand,size_t *width,size_t *height,ssize_t *x,ssize_t *y)

{
  Image *pIVar1;
  
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,
                  "MagickGetImagePage");
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug == MagickFalse) {
      pIVar1 = wand->images;
    }
    else {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name
                    );
      pIVar1 = wand->images;
    }
    if (pIVar1 != (Image *)0x0) {
      *width = (pIVar1->page).width;
      *height = (pIVar1->page).height;
      *x = (pIVar1->page).x;
      *y = (pIVar1->page).y;
      return MagickTrue;
    }
    ThrowMagickException
              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,
               "ContainsNoImages",&DAT_000e91ee,wand->name);
    return MagickFalse;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,
                "MagickGetImagePage");
}



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

undefined4
MagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,
                  undefined4 *param_5)

{
  int iVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,
                  "MagickGetImagePage");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) == 0) {
      iVar1 = *(int *)(param_1 + 0x1004);
    }
    else {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",
                     param_1 + 4);
      iVar1 = *(int *)(param_1 + 0x1004);
    }
    if (iVar1 != 0) {
      *param_2 = *(undefined4 *)(iVar1 + 0x200);
      *param_3 = *(undefined4 *)(iVar1 + 0x204);
      *param_4 = *(undefined4 *)(iVar1 + 0x208);
      *param_5 = *(undefined4 *)(iVar1 + 0x20c);
      return 1;
    }
    ThrowMagickException
              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",
               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,
                "MagickGetImagePage");
}


PUSH ESI
PUSH EBX
CALL 0x0001e920
ADD EBX,0xf36b9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x00076a38
CMP dword ptr [ESI + 0x101c],0xabacadab
JNZ 0x00076a57
MOV EAX,dword ptr [ESI + 0x1018]
TEST EAX,EAX
JNZ 0x000769c0
MOV EAX,dword ptr [ESI + 0x1004]
TEST EAX,EAX
JZ 0x000769f8
MOV ECX,dword ptr [EAX + 0x200]
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EDX],ECX
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [EAX + 0x204]
MOV dword ptr [EDX],ECX
MOV EDX,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [EAX + 0x208]
MOV dword ptr [EDX],ECX
MOV EDX,dword ptr [EAX + 0x20c]
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [EAX],EDX
ADD ESP,0x4
MOV EAX,0x1
POP EBX
POP ESI
RET
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff91a64]
PUSH EAX
LEA EAX,[EBX + 0xfff8f584]
PUSH 0x15b2
PUSH EAX
LEA EAX,[EBX + 0xfff8d3d9]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
MOV EAX,dword ptr [ESI + 0x1004]
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00076980
LEA EAX,[ESI + 0x4]
PUSH EAX
LEA EAX,[EBX + 0xfff7f1ee]
PUSH EAX
LEA EAX,[EBX + 0xfff86fbe]
PUSH EAX
LEA EAX,[EBX + 0xfff8f584]
PUSH 0x1d6
PUSH 0x15b4
PUSH EAX
LEA EAX,[EBX + 0xfff8d3d9]
PUSH EAX
PUSH dword ptr [ESI + 0x100c]
CALL 0x0001de10
ADD ESP,0x20
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xfff8f598]
PUSH EAX
LEA EAX,[EBX + 0xfff8d3d9]
PUSH 0x15af
PUSH EAX
LEA EAX,[EBX + 0xfff8d530]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff8f598]
PUSH EAX
LEA EAX,[EBX + 0xfff8d3d9]
PUSH 0x15b0
PUSH EAX
LEA EAX,[EBX + 0xfff8d4b8]
PUSH EAX
CALL 0x0001ccf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nMagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}\n\n" comment (function_definition "undefined4\nMagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" type_identifier (function_declarator "MagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" { comment (expression_statement "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");" (call_expression "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" identifier (argument_list "("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" ( (string_literal ""wand != (const MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImagePage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) == 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" else (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImagePage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }" { (expression_statement "*param_2 = *(undefined4 *)(iVar1 + 0x200);" (assignment_expression "*param_2 = *(undefined4 *)(iVar1 + 0x200)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x200)" * (cast_expression "(undefined4 *)(iVar1 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x200)" ( (binary_expression "iVar1 + 0x200" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = *(undefined4 *)(iVar1 + 0x204);" (assignment_expression "*param_3 = *(undefined4 *)(iVar1 + 0x204)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x204)" * (cast_expression "(undefined4 *)(iVar1 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x204)" ( (binary_expression "iVar1 + 0x204" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = *(undefined4 *)(iVar1 + 0x208);" (assignment_expression "*param_4 = *(undefined4 *)(iVar1 + 0x208)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x208)" * (cast_expression "(undefined4 *)(iVar1 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x208)" ( (binary_expression "iVar1 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = *(undefined4 *)(iVar1 + 0x20c);" (assignment_expression "*param_5 = *(undefined4 *)(iVar1 + 0x20c)" (pointer_expression "*param_5" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x20c)" * (cast_expression "(undefined4 *)(iVar1 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20c)" ( (binary_expression "iVar1 + 0x20c" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);" (call_expression "ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImagePage"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImagePage"" " string_content ") ))) ;) })))
(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\nMagickBooleanType\nMagickGetImagePage(MagickWand *wand,size_t *width,size_t *height,ssize_t *x,ssize_t *y)\n\n{\n  Image *pIVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      *width = (pIVar1->page).width;\n      *height = (pIVar1->page).height;\n      *x = (pIVar1->page).x;\n      *y = (pIVar1->page).y;\n      return MagickTrue;\n    }\n    ThrowMagickException\n              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name);\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType\nMagickGetImagePage(MagickWand *wand,size_t *width,size_t *height,ssize_t *x,ssize_t *y)\n\n{\n  Image *pIVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      *width = (pIVar1->page).width;\n      *height = (pIVar1->page).height;\n      *x = (pIVar1->page).x;\n      *y = (pIVar1->page).y;\n      return MagickTrue;\n    }\n    ThrowMagickException\n              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name);\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" type_identifier (function_declarator "MagickGetImagePage(MagickWand *wand,size_t *width,size_t *height,ssize_t *x,ssize_t *y)" identifier (parameter_list "(MagickWand *wand,size_t *width,size_t *height,ssize_t *x,ssize_t *y)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "size_t *width" primitive_type (pointer_declarator "*width" * identifier)) , (parameter_declaration "size_t *height" primitive_type (pointer_declarator "*height" * identifier)) , (parameter_declaration "ssize_t *x" primitive_type (pointer_declarator "*x" * identifier)) , (parameter_declaration "ssize_t *y" primitive_type (pointer_declarator "*y" * identifier)) ))) (compound_statement "{\n  Image *pIVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      *width = (pIVar1->page).width;\n      *height = (pIVar1->page).height;\n      *x = (pIVar1->page).x;\n      *y = (pIVar1->page).y;\n      return MagickTrue;\n    }\n    ThrowMagickException\n              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name);\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" { (declaration "Image *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" if (parenthesized_expression "(wand == (MagickWand *)0x0)" ( (binary_expression "wand == (MagickWand *)0x0" identifier == (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" { comment (expression_statement "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");" (call_expression "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" identifier (argument_list "("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" ( (string_literal ""wand != (const MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImagePage"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      *width = (pIVar1->page).width;\n      *height = (pIVar1->page).height;\n      *x = (pIVar1->page).x;\n      *y = (pIVar1->page).y;\n      return MagickTrue;\n    }\n    ThrowMagickException\n              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name);\n    return MagickFalse;\n  }" if (parenthesized_expression "(wand->signature == 0xabacadab)" ( (binary_expression "wand->signature == 0xabacadab" (field_expression "wand->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      *width = (pIVar1->page).width;\n      *height = (pIVar1->page).height;\n      *x = (pIVar1->page).x;\n      *y = (pIVar1->page).y;\n      return MagickTrue;\n    }\n    ThrowMagickException\n              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name);\n    return MagickFalse;\n  }" { (if_statement "if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }" if (parenthesized_expression "(wand->debug == MagickFalse)" ( (binary_expression "wand->debug == MagickFalse" (field_expression "wand->debug" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      pIVar1 = wand->images;\n    }" { (expression_statement "pIVar1 = wand->images;" (assignment_expression "pIVar1 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) }) (else_clause "else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }" else (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );\n      pIVar1 = wand->images;\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    );" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    )" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",wand->name\n                    )" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImagePage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (expression_statement "pIVar1 = wand->images;" (assignment_expression "pIVar1 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) }))) (if_statement "if (pIVar1 != (Image *)0x0) {\n      *width = (pIVar1->page).width;\n      *height = (pIVar1->page).height;\n      *x = (pIVar1->page).x;\n      *y = (pIVar1->page).y;\n      return MagickTrue;\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      *width = (pIVar1->page).width;\n      *height = (pIVar1->page).height;\n      *x = (pIVar1->page).x;\n      *y = (pIVar1->page).y;\n      return MagickTrue;\n    }" { (expression_statement "*width = (pIVar1->page).width;" (assignment_expression "*width = (pIVar1->page).width" (pointer_expression "*width" * identifier) = (field_expression "(pIVar1->page).width" (parenthesized_expression "(pIVar1->page)" ( (field_expression "pIVar1->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*height = (pIVar1->page).height;" (assignment_expression "*height = (pIVar1->page).height" (pointer_expression "*height" * identifier) = (field_expression "(pIVar1->page).height" (parenthesized_expression "(pIVar1->page)" ( (field_expression "pIVar1->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*x = (pIVar1->page).x;" (assignment_expression "*x = (pIVar1->page).x" (pointer_expression "*x" * identifier) = (field_expression "(pIVar1->page).x" (parenthesized_expression "(pIVar1->page)" ( (field_expression "pIVar1->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*y = (pIVar1->page).y;" (assignment_expression "*y = (pIVar1->page).y" (pointer_expression "*y" * identifier) = (field_expression "(pIVar1->page).y" (parenthesized_expression "(pIVar1->page)" ( (field_expression "pIVar1->page" identifier -> field_identifier) )) . field_identifier)) ;) (return_statement "return MagickTrue;" return identifier ;) })) (expression_statement "ThrowMagickException\n              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name);" (call_expression "ThrowMagickException\n              (wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name)" identifier (argument_list "(wand->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,\n               "ContainsNoImages",&DAT_000e91ee,wand->name)" ( (field_expression "wand->exception" identifier -> field_identifier) , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImagePage"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (return_statement "return MagickFalse;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImagePage"" " string_content ") ))) ;) })))
(translation_unit "undefined4\nMagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}\n\n" (function_definition "undefined4\nMagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" type_identifier (function_declarator "MagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" { (expression_statement "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");" (call_expression "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" identifier (argument_list "("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" ( (string_literal ""wand != (const MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImagePage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) == 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" else (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImagePage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }" { (expression_statement "*param_2 = *(undefined4 *)(iVar1 + 0x200);" (assignment_expression "*param_2 = *(undefined4 *)(iVar1 + 0x200)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x200)" * (cast_expression "(undefined4 *)(iVar1 + 0x200)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x200)" ( (binary_expression "iVar1 + 0x200" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = *(undefined4 *)(iVar1 + 0x204);" (assignment_expression "*param_3 = *(undefined4 *)(iVar1 + 0x204)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x204)" * (cast_expression "(undefined4 *)(iVar1 + 0x204)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x204)" ( (binary_expression "iVar1 + 0x204" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = *(undefined4 *)(iVar1 + 0x208);" (assignment_expression "*param_4 = *(undefined4 *)(iVar1 + 0x208)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x208)" * (cast_expression "(undefined4 *)(iVar1 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x208)" ( (binary_expression "iVar1 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = *(undefined4 *)(iVar1 + 0x20c);" (assignment_expression "*param_5 = *(undefined4 *)(iVar1 + 0x20c)" (pointer_expression "*param_5" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 0x20c)" * (cast_expression "(undefined4 *)(iVar1 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20c)" ( (binary_expression "iVar1 + 0x20c" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);" (call_expression "ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImagePage"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImagePage"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 { (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) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4\nMagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" (type_identifier "undefined4") (function_declarator "MagickGetImagePage(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)" (identifier "MagickGetImagePage") (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                  undefined4 *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");\n  }" ({ "{") (expression_statement "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage");" (call_expression "__assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" (identifier "__assert_fail") (argument_list "("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,\n                  "MagickGetImagePage")" (( "(") (string_literal ""wand != (const MagickWand *) NULL"" (" """) (string_content "wand != (const MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x15af") (, ",") (string_literal ""MagickGetImagePage"" (" """) (string_content "MagickGetImagePage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" (* "*") (cast_expression "(int *)(param_1 + 0x101c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x101c)" (( "(") (binary_expression "param_1 + 0x101c" (identifier "param_1") (+ "+") (number_literal "0x101c")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }\n    ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);\n    return 0;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1018) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1018) == 0" (pointer_expression "*(int *)(param_1 + 0x1018)" (* "*") (cast_expression "(int *)(param_1 + 0x1018)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1018)" (( "(") (binary_expression "param_1 + 0x1018" (identifier "param_1") (+ "+") (number_literal "0x1018")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" (else "else") (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",\n                     param_1 + 4)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (string_literal ""MagickGetImagePage"" (" """) (string_content "MagickGetImagePage") (" """)) (, ",") (number_literal "0x15b2") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 0) {\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *param_2 = *(undefined4 *)(iVar1 + 0x200);\n      *param_3 = *(undefined4 *)(iVar1 + 0x204);\n      *param_4 = *(undefined4 *)(iVar1 + 0x208);\n      *param_5 = *(undefined4 *)(iVar1 + 0x20c);\n      return 1;\n    }" ({ "{") (expression_statement "*param_2 = *(undefined4 *)(iVar1 + 0x200);" (assignment_expression "*param_2 = *(undefined4 *)(iVar1 + 0x200)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x200)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x200)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x200)" (( "(") (binary_expression "iVar1 + 0x200" (identifier "iVar1") (+ "+") (number_literal "0x200")) () ")"))))) (; ";")) (expression_statement "*param_3 = *(undefined4 *)(iVar1 + 0x204);" (assignment_expression "*param_3 = *(undefined4 *)(iVar1 + 0x204)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x204)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x204)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x204)" (( "(") (binary_expression "iVar1 + 0x204" (identifier "iVar1") (+ "+") (number_literal "0x204")) () ")"))))) (; ";")) (expression_statement "*param_4 = *(undefined4 *)(iVar1 + 0x208);" (assignment_expression "*param_4 = *(undefined4 *)(iVar1 + 0x208)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x208)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x208)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x208)" (( "(") (binary_expression "iVar1 + 0x208" (identifier "iVar1") (+ "+") (number_literal "0x208")) () ")"))))) (; ";")) (expression_statement "*param_5 = *(undefined4 *)(iVar1 + 0x20c);" (assignment_expression "*param_5 = *(undefined4 *)(iVar1 + 0x20c)" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x20c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20c)" (( "(") (binary_expression "iVar1 + 0x20c" (identifier "iVar1") (+ "+") (number_literal "0x20c")) () ")"))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);" (call_expression "ThrowMagickException\n              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4)" (identifier "ThrowMagickException") (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MagickGetImagePage",\n               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100c)" (( "(") (binary_expression "param_1 + 0x100c" (identifier "param_1") (+ "+") (number_literal "0x100c")) () ")")))) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (string_literal ""MagickGetImagePage"" (" """) (string_content "MagickGetImagePage") (" """)) (, ",") (number_literal "0x15b4") (, ",") (number_literal "0x1d6") (, ",") (string_literal ""ContainsNoImages"" (" """) (string_content "ContainsNoImages") (" """)) (, ",") (pointer_expression "&DAT_000e91ee" (& "&") (identifier "DAT_000e91ee")) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,\n                "MagickGetImagePage")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x15b0") (, ",") (string_literal ""MagickGetImagePage"" (" """) (string_content "MagickGetImagePage") (" """)) () ")"))) (; ";")) (} "}")))

/* 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 */

type_1
function_1(type_2 *var_1,size_t *width,size_t *height,ssize_t *x,ssize_t *y)

{
  type_3 *var_5;
  
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,
                  "MagickGetImagePage");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug == var_3) {
      var_5 = var_1->images;
    }
    else {
      var_4(0x40000,"MagickWand/magick-image.c","MagickGetImagePage",0x15b2,"%s",var_1->name
                    );
      var_5 = var_1->images;
    }
    if (var_5 != (type_3 *)0x0) {
      *width = (var_5->page).width;
      *height = (var_5->page).height;
      *x = (var_5->page).x;
      *y = (var_5->page).y;
      return MagickTrue;
    }
    var_6
              (var_1->exception,"MagickWand/magick-image.c","MagickGetImagePage",0x15b4,0x1d6,
               "ContainsNoImages",&DAT_000e91ee,var_1->name);
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,
                "MagickGetImagePage");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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 (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)))))))) 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) (string_literal (string_content)) (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: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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))))))) (return_statement (number_literal)))) (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))))) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (string_literal (string_content)) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

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

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

{
  int iVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (const MagickWand *) NULL","MagickWand/magick-image.c",0x15af,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) == 0) {
      iVar1 = *(int *)(param_1 + 0x1004);
    }
    else {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MASKED",0x15b2,"%s",
                     param_1 + 4);
      iVar1 = *(int *)(param_1 + 0x1004);
    }
    if (iVar1 != 0) {
      *param_2 = *(undefined4 *)(iVar1 + 0x200);
      *param_3 = *(undefined4 *)(iVar1 + 0x204);
      *param_4 = *(undefined4 *)(iVar1 + 0x208);
      *param_5 = *(undefined4 *)(iVar1 + 0x20c);
      return 1;
    }
    ThrowMagickException
              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c","MASKED",
               0x15b4,0x1d6,"ContainsNoImages",&DAT_000e91ee,param_1 + 4);
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x15b0,
                "MASKED");
}

