
/* 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
MagickFloodfillPaintImage
          (MagickWand *wand,PixelWand *fill,double fuzz,PixelWand *bordercolor,ssize_t x,ssize_t y,
          MagickBooleanType invert)

{
  int iVar1;
  Image *pIVar2;
  int iVar3;
  MagickBooleanType MVar4;
  int in_GS_OFFSET;
  PixelInfo target;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,
                  "MagickFloodfillPaintImage");
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug == MagickFalse) {
      pIVar2 = wand->images;
    }
    else {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",
                     wand->name);
      pIVar2 = wand->images;
    }
    if (pIVar2 == (Image *)0x0) {
      MVar4 = MagickFalse;
      ThrowMagickException
                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6
                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);
    }
    else {
      iVar3 = CloneDrawInfo(wand->image_info,0);
      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));
      pIVar2 = wand->images;
      GetOneVirtualPixelInfo
                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);
      if (bordercolor != (PixelWand *)0x0) {
        PixelGetMagickColor(bordercolor,&target);
      }
      pIVar2 = wand->images;
      pIVar2->fuzz = fuzz;
      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);
      DestroyDrawInfo(iVar3);
    }
    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail_local();
    }
    return MVar4;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,
                "MagickFloodfillPaintImage");
}



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

undefined4
MagickFloodfillPaintImage
          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,
          undefined4 param_7)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  undefined1 local_70 [80];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x72d59;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,
                  "MagickFloodfillPaintImage");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) == 0) {
      iVar1 = *(int *)(param_1 + 0x1004);
    }
    else {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",
                     param_1 + 4);
      iVar1 = *(int *)(param_1 + 0x1004);
    }
    if (iVar1 == 0) {
      uVar3 = 0;
      ThrowMagickException
                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",
                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,
                 param_1 + 4);
    }
    else {
      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);
      PixelGetQuantumPacket(param_2,iVar2 + 0x48);
      iVar1 = *(int *)(param_1 + 0x1004);
      GetOneVirtualPixelInfo
                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),
                 local_70,*(undefined4 *)(param_1 + 0x100c));
      if (param_4 != 0) {
        PixelGetMagickColor(param_4,local_70);
      }
      iVar1 = *(int *)(param_1 + 0x1004);
      *(undefined8 *)(iVar1 + 0x220) = param_3;
      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,
                                  *(undefined4 *)(param_1 + 0x100c));
      DestroyDrawInfo(iVar2);
    }
    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
      FUN_000e7d60();
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,
                "MagickFloodfillPaintImage");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001e920
ADD EBX,0xf72a7
SUB ESP,0x7c
MOV EAX,dword ptr [ESP + 0xa0]
MOV ESI,dword ptr [ESP + 0x90]
FLD qword ptr [ESP + 0x98]
MOV EBP,dword ptr [ESP + 0x94]
FSTP qword ptr [ESP]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x6c],EAX
XOR EAX,EAX
TEST ESI,ESI
JZ 0x00072f2a
CMP dword ptr [ESI + 0x101c],0xabacadab
JNZ 0x00072f0b
MOV EAX,dword ptr [ESI + 0x1018]
TEST EAX,EAX
JNZ 0x00072e90
MOV EAX,dword ptr [ESI + 0x1004]
TEST EAX,EAX
JZ 0x00072ecc
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [ESI + 0x1008]
CALL 0x0001d680
MOV EDI,EAX
POP EAX
POP EDX
LEA EAX,[EDI + 0x48]
PUSH EAX
PUSH EBP
CALL 0x0001c810
POP EBP
XOR EDX,EDX
POP EAX
MOV ECX,dword ptr [ESI + 0x1004]
PUSH dword ptr [ESI + 0x100c]
LEA EBP,[ESP + 0x28]
PUSH EBP
MOV EAX,dword ptr [ESP + 0xb8]
DIV dword ptr [ECX + 0x1c]
PUSH EDX
MOV EAX,dword ptr [ESP + 0xb8]
XOR EDX,EDX
DIV dword ptr [ECX + 0x18]
PUSH EDX
PUSH 0x6
PUSH ECX
CALL 0x0001d1a0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x00072e30
SUB ESP,0x8
PUSH EBP
PUSH EAX
CALL 0x0001c540
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x1004]
SUB ESP,0x4
FLD qword ptr [ESP + 0x4]
FSTP qword ptr [EAX + 0x220]
PUSH dword ptr [ESI + 0x100c]
PUSH dword ptr [ESP + 0xb4]
PUSH dword ptr [ESP + 0xb4]
PUSH dword ptr [ESP + 0xb4]
PUSH EBP
PUSH EDI
PUSH EAX
CALL 0x0001d9d0
ADD ESP,0x14
PUSH EDI
MOV ESI,EAX
CALL 0x0001dc30
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x6c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00072f49
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff91a64]
PUSH EAX
LEA EAX,[EBX + 0xfff8fee4]
PUSH 0xddc
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 0x00072dc5
LEA EAX,[ESI + 0x4]
PUSH EAX
LEA EAX,[EBX + 0xfff7f1ee]
PUSH EAX
LEA EAX,[EBX + 0xfff86fbe]
PUSH EAX
LEA EAX,[EBX + 0xfff8fee4]
PUSH 0x1d6
PUSH 0xdde
PUSH EAX
LEA EAX,[EBX + 0xfff8d3d9]
PUSH EAX
PUSH dword ptr [ESI + 0x100c]
XOR ESI,ESI
CALL 0x0001de10
ADD ESP,0x20
JMP 0x00072e74
LEA EAX,[EBX + 0xfff8ff00]
PUSH EAX
LEA EAX,[EBX + 0xfff8d3d9]
PUSH 0xdda
PUSH EAX
LEA EAX,[EBX + 0xfff8d4b8]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff8ff00]
PUSH EAX
LEA EAX,[EBX + 0xfff8d3d9]
PUSH 0xdd9
PUSH EAX
LEA EAX,[EBX + 0xfff8d3f3]
PUSH EAX
CALL 0x0001ccf0
CALL 0x000e7d60
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nMagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}\n\n" comment (function_definition "undefined4\nMagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" type_identifier (function_declarator "MagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_70 [80];" type_identifier (array_declarator "local_70 [80]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x72d59;" (assignment_expression "uStack_14 = 0x72d59" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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 != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickFloodfillPaintImage"" " 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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar3;\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar3;\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","MagickFloodfillPaintImage",0xddc,"%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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" else (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickFloodfillPaintImage"" " 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      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);" (call_expression "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 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 ""MagickFloodfillPaintImage"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) }) (else_clause "else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" else (compound_statement "{\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" { (expression_statement "iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);" (assignment_expression "iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0)" identifier = (call_expression "CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1008),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1008)" * (cast_expression "(undefined4 *)(param_1 + 0x1008)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "PixelGetQuantumPacket(param_2,iVar2 + 0x48);" (call_expression "PixelGetQuantumPacket(param_2,iVar2 + 0x48)" identifier (argument_list "(param_2,iVar2 + 0x48)" ( identifier , (binary_expression "iVar2 + 0x48" 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) ))))) ;) (expression_statement "GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));" (call_expression "GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c))" ( identifier , number_literal , (binary_expression "param_5 % *(uint *)(iVar1 + 0x18)" identifier % (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) , (binary_expression "param_6 % *(uint *)(iVar1 + 0x1c)" identifier % (pointer_expression "*(uint *)(iVar1 + 0x1c)" * (cast_expression "(uint *)(iVar1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) ))))) , identifier , (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) )))) ))) ;) (if_statement "if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n        PixelGetMagickColor(param_4,local_70);\n      }" { (expression_statement "PixelGetMagickColor(param_4,local_70);" (call_expression "PixelGetMagickColor(param_4,local_70)" identifier (argument_list "(param_4,local_70)" ( identifier , identifier ))) ;) })) (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) ))))) ;) (expression_statement "*(undefined8 *)(iVar1 + 0x220) = param_3;" (assignment_expression "*(undefined8 *)(iVar1 + 0x220) = param_3" (pointer_expression "*(undefined8 *)(iVar1 + 0x220)" * (cast_expression "(undefined8 *)(iVar1 + 0x220)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x220)" ( (binary_expression "iVar1 + 0x220" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" ( identifier , identifier , identifier , identifier , identifier , identifier , (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) )))) )))) ;) (expression_statement "DestroyDrawInfo(iVar2);" (call_expression "DestroyDrawInfo(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) }))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }" { comment (expression_statement "FUN_000e7d60();" (call_expression "FUN_000e7d60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickFloodfillPaintImage"" " 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\nMagickFloodfillPaintImage\n          (MagickWand *wand,PixelWand *fill,double fuzz,PixelWand *bordercolor,ssize_t x,ssize_t y,\n          MagickBooleanType invert)\n\n{\n  int iVar1;\n  Image *pIVar2;\n  int iVar3;\n  MagickBooleanType MVar4;\n  int in_GS_OFFSET;\n  PixelInfo target;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      MVar4 = MagickFalse;\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);\n    }\n    else {\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType\nMagickFloodfillPaintImage\n          (MagickWand *wand,PixelWand *fill,double fuzz,PixelWand *bordercolor,ssize_t x,ssize_t y,\n          MagickBooleanType invert)\n\n{\n  int iVar1;\n  Image *pIVar2;\n  int iVar3;\n  MagickBooleanType MVar4;\n  int in_GS_OFFSET;\n  PixelInfo target;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      MVar4 = MagickFalse;\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);\n    }\n    else {\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" type_identifier (function_declarator "MagickFloodfillPaintImage\n          (MagickWand *wand,PixelWand *fill,double fuzz,PixelWand *bordercolor,ssize_t x,ssize_t y,\n          MagickBooleanType invert)" identifier (parameter_list "(MagickWand *wand,PixelWand *fill,double fuzz,PixelWand *bordercolor,ssize_t x,ssize_t y,\n          MagickBooleanType invert)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "PixelWand *fill" type_identifier (pointer_declarator "*fill" * identifier)) , (parameter_declaration "double fuzz" primitive_type identifier) , (parameter_declaration "PixelWand *bordercolor" type_identifier (pointer_declarator "*bordercolor" * identifier)) , (parameter_declaration "ssize_t x" primitive_type identifier) , (parameter_declaration "ssize_t y" primitive_type identifier) , (parameter_declaration "MagickBooleanType invert" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  Image *pIVar2;\n  int iVar3;\n  MagickBooleanType MVar4;\n  int in_GS_OFFSET;\n  PixelInfo target;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      MVar4 = MagickFalse;\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);\n    }\n    else {\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Image *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "MagickBooleanType MVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "PixelInfo target;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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 != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickFloodfillPaintImage"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      MVar4 = MagickFalse;\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);\n    }\n    else {\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar4;\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      pIVar2 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      MVar4 = MagickFalse;\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);\n    }\n    else {\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar4;\n  }" { (if_statement "if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = 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      pIVar2 = wand->images;\n    }" { (expression_statement "pIVar2 = wand->images;" (assignment_expression "pIVar2 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) }) (else_clause "else {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = wand->images;\n    }" else (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);\n      pIVar2 = wand->images;\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     wand->name)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickFloodfillPaintImage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (expression_statement "pIVar2 = wand->images;" (assignment_expression "pIVar2 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) }))) (if_statement "if (pIVar2 == (Image *)0x0) {\n      MVar4 = MagickFalse;\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);\n    }\n    else {\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }" if (parenthesized_expression "(pIVar2 == (Image *)0x0)" ( (binary_expression "pIVar2 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      MVar4 = MagickFalse;\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);\n    }" { (expression_statement "MVar4 = MagickFalse;" (assignment_expression "MVar4 = MagickFalse" identifier = identifier) ;) (expression_statement "ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name);" (call_expression "ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name)" identifier (argument_list "(wand->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6\n                 ,"ContainsNoImages",&DAT_000e91ee,wand->name)" ( (field_expression "wand->exception" identifier -> field_identifier) , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickFloodfillPaintImage"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) }) (else_clause "else {\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }" else (compound_statement "{\n      iVar3 = CloneDrawInfo(wand->image_info,0);\n      PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));\n      pIVar2 = wand->images;\n      GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);\n      if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }\n      pIVar2 = wand->images;\n      pIVar2->fuzz = fuzz;\n      MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);\n      DestroyDrawInfo(iVar3);\n    }" { (expression_statement "iVar3 = CloneDrawInfo(wand->image_info,0);" (assignment_expression "iVar3 = CloneDrawInfo(wand->image_info,0)" identifier = (call_expression "CloneDrawInfo(wand->image_info,0)" identifier (argument_list "(wand->image_info,0)" ( (field_expression "wand->image_info" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48));" (call_expression "PixelGetQuantumPacket(fill,(PixelInfo *)(iVar3 + 0x48))" identifier (argument_list "(fill,(PixelInfo *)(iVar3 + 0x48))" ( identifier , (cast_expression "(PixelInfo *)(iVar3 + 0x48)" ( (type_descriptor "PixelInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x48)" ( (binary_expression "iVar3 + 0x48" identifier + number_literal) ))) ))) ;) (expression_statement "pIVar2 = wand->images;" (assignment_expression "pIVar2 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) (expression_statement "GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception);" (call_expression "GetOneVirtualPixelInfo\n                (pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception)" identifier (argument_list "(pIVar2,6,(uint)x % pIVar2->columns,(uint)y % pIVar2->rows,&target,wand->exception)" ( identifier , number_literal , (binary_expression "(uint)x % pIVar2->columns" (cast_expression "(uint)x" ( (type_descriptor "uint" type_identifier) ) identifier) % (field_expression "pIVar2->columns" identifier -> field_identifier)) , (binary_expression "(uint)y % pIVar2->rows" (cast_expression "(uint)y" ( (type_descriptor "uint" type_identifier) ) identifier) % (field_expression "pIVar2->rows" identifier -> field_identifier)) , (pointer_expression "&target" & identifier) , (field_expression "wand->exception" identifier -> field_identifier) ))) ;) (if_statement "if (bordercolor != (PixelWand *)0x0) {\n        PixelGetMagickColor(bordercolor,&target);\n      }" if (parenthesized_expression "(bordercolor != (PixelWand *)0x0)" ( (binary_expression "bordercolor != (PixelWand *)0x0" identifier != (cast_expression "(PixelWand *)0x0" ( (type_descriptor "PixelWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        PixelGetMagickColor(bordercolor,&target);\n      }" { (expression_statement "PixelGetMagickColor(bordercolor,&target);" (call_expression "PixelGetMagickColor(bordercolor,&target)" identifier (argument_list "(bordercolor,&target)" ( identifier , (pointer_expression "&target" & identifier) ))) ;) })) (expression_statement "pIVar2 = wand->images;" (assignment_expression "pIVar2 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) (expression_statement "pIVar2->fuzz = fuzz;" (assignment_expression "pIVar2->fuzz = fuzz" (field_expression "pIVar2->fuzz" identifier -> field_identifier) = identifier) ;) (expression_statement "MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception);" (assignment_expression "MVar4 = FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception)" identifier = (call_expression "FloodfillPaintImage(pIVar2,iVar3,&target,x,y,invert,wand->exception)" identifier (argument_list "(pIVar2,iVar3,&target,x,y,invert,wand->exception)" ( identifier , identifier , (pointer_expression "&target" & identifier) , identifier , identifier , identifier , (field_expression "wand->exception" identifier -> field_identifier) )))) ;) (expression_statement "DestroyDrawInfo(iVar3);" (call_expression "DestroyDrawInfo(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) }))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return MVar4;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickFloodfillPaintImage"" " string_content ") ))) ;) })))
(translation_unit "undefined4\nMagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}\n\n" (function_definition "undefined4\nMagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" type_identifier (function_declarator "MagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_70 [80];" type_identifier (array_declarator "local_70 [80]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x72d59;" (assignment_expression "uStack_14 = 0x72d59" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }" { (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickFloodfillPaintImage"" " 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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\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","MagickFloodfillPaintImage",0xddc,"%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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" else (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickFloodfillPaintImage"" " 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      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);" (call_expression "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 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 ""MagickFloodfillPaintImage"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e91ee" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) }) (else_clause "else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" else (compound_statement "{\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" { (expression_statement "iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);" (assignment_expression "iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0)" identifier = (call_expression "CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1008),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1008)" * (cast_expression "(undefined4 *)(param_1 + 0x1008)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "PixelGetQuantumPacket(param_2,iVar2 + 0x48);" (call_expression "PixelGetQuantumPacket(param_2,iVar2 + 0x48)" identifier (argument_list "(param_2,iVar2 + 0x48)" ( identifier , (binary_expression "iVar2 + 0x48" 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) ))))) ;) (expression_statement "GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));" (call_expression "GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c))" ( identifier , number_literal , (binary_expression "param_5 % *(uint *)(iVar1 + 0x18)" identifier % (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) , (binary_expression "param_6 % *(uint *)(iVar1 + 0x1c)" identifier % (pointer_expression "*(uint *)(iVar1 + 0x1c)" * (cast_expression "(uint *)(iVar1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) ))))) , identifier , (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) )))) ))) ;) (if_statement "if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n        PixelGetMagickColor(param_4,local_70);\n      }" { (expression_statement "PixelGetMagickColor(param_4,local_70);" (call_expression "PixelGetMagickColor(param_4,local_70)" identifier (argument_list "(param_4,local_70)" ( identifier , identifier ))) ;) })) (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) ))))) ;) (expression_statement "*(undefined8 *)(iVar1 + 0x220) = param_3;" (assignment_expression "*(undefined8 *)(iVar1 + 0x220) = param_3" (pointer_expression "*(undefined8 *)(iVar1 + 0x220)" * (cast_expression "(undefined8 *)(iVar1 + 0x220)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x220)" ( (binary_expression "iVar1 + 0x220" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" ( identifier , identifier , identifier , identifier , identifier , identifier , (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) )))) )))) ;) (expression_statement "DestroyDrawInfo(iVar2);" (call_expression "DestroyDrawInfo(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) }))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n      FUN_000e7d60();\n    }" { (expression_statement "FUN_000e7d60();" (call_expression "FUN_000e7d60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickFloodfillPaintImage"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 IDENT = 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) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (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) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT % (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT % (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , 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 (call_expression IDENT (argument_list ( IDENT , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4\nMagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" (type_identifier "undefined4") (function_declarator "MagickFloodfillPaintImage\n          (int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)" (identifier "MagickFloodfillPaintImage") (parameter_list "(int param_1,undefined4 param_2,undefined8 param_3,int param_4,uint param_5,uint param_6,\n          undefined4 param_7)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  undefined1 local_70 [80];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x72d59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_70 [80];" (type_identifier "undefined1") (array_declarator "local_70 [80]" (identifier "local_70") ([ "[") (number_literal "80") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x72d59;" (assignment_expression "uStack_14 = 0x72d59" (identifier "uStack_14") (= "=") (number_literal "0x72d59")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\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 != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");\n  }" ({ "{") (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" (identifier "__assert_fail") (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,\n                  "MagickFloodfillPaintImage")" (( "(") (string_literal ""wand != (MagickWand *) NULL"" (" """) (string_content "wand != (MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0xdd9") (, ",") (string_literal ""MagickFloodfillPaintImage"" (" """) (string_content "MagickFloodfillPaintImage") (" """)) () ")"))) (; ";")) (} "}"))) (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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar1 == 0) {\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar3;\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","MagickFloodfillPaintImage",0xddc,"%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","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" (else "else") (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);\n      iVar1 = *(int *)(param_1 + 0x1004);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",\n                     param_1 + 4)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (string_literal ""MagickFloodfillPaintImage"" (" """) (string_content "MagickFloodfillPaintImage") (" """)) (, ",") (number_literal "0xddc") (, ",") (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      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }\n    else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4);" (call_expression "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 param_1 + 4)" (identifier "ThrowMagickException") (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",\n                 "MagickFloodfillPaintImage",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,\n                 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 ""MagickFloodfillPaintImage"" (" """) (string_content "MagickFloodfillPaintImage") (" """)) (, ",") (number_literal "0xdde") (, ",") (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")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" (else "else") (compound_statement "{\n      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);\n      PixelGetQuantumPacket(param_2,iVar2 + 0x48);\n      iVar1 = *(int *)(param_1 + 0x1004);\n      GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));\n      if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }\n      iVar1 = *(int *)(param_1 + 0x1004);\n      *(undefined8 *)(iVar1 + 0x220) = param_3;\n      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));\n      DestroyDrawInfo(iVar2);\n    }" ({ "{") (expression_statement "iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);" (assignment_expression "iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0)" (identifier "iVar2") (= "=") (call_expression "CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0)" (identifier "CloneDrawInfo") (argument_list "(*(undefined4 *)(param_1 + 0x1008),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1008)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1008)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1008)" (( "(") (binary_expression "param_1 + 0x1008" (identifier "param_1") (+ "+") (number_literal "0x1008")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "PixelGetQuantumPacket(param_2,iVar2 + 0x48);" (call_expression "PixelGetQuantumPacket(param_2,iVar2 + 0x48)" (identifier "PixelGetQuantumPacket") (argument_list "(param_2,iVar2 + 0x48)" (( "(") (identifier "param_2") (, ",") (binary_expression "iVar2 + 0x48" (identifier "iVar2") (+ "+") (number_literal "0x48")) () ")"))) (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c));" (call_expression "GetOneVirtualPixelInfo\n                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c))" (identifier "GetOneVirtualPixelInfo") (argument_list "(iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),\n                 local_70,*(undefined4 *)(param_1 + 0x100c))" (( "(") (identifier "iVar1") (, ",") (number_literal "6") (, ",") (binary_expression "param_5 % *(uint *)(iVar1 + 0x18)" (identifier "param_5") (% "%") (pointer_expression "*(uint *)(iVar1 + 0x18)" (* "*") (cast_expression "(uint *)(iVar1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")"))))) (, ",") (binary_expression "param_6 % *(uint *)(iVar1 + 0x1c)" (identifier "param_6") (% "%") (pointer_expression "*(uint *)(iVar1 + 0x1c)" (* "*") (cast_expression "(uint *)(iVar1 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")"))))) (, ",") (identifier "local_70") (, ",") (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")) () ")")))) () ")"))) (; ";")) (if_statement "if (param_4 != 0) {\n        PixelGetMagickColor(param_4,local_70);\n      }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        PixelGetMagickColor(param_4,local_70);\n      }" ({ "{") (expression_statement "PixelGetMagickColor(param_4,local_70);" (call_expression "PixelGetMagickColor(param_4,local_70)" (identifier "PixelGetMagickColor") (argument_list "(param_4,local_70)" (( "(") (identifier "param_4") (, ",") (identifier "local_70") () ")"))) (; ";")) (} "}"))) (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")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(iVar1 + 0x220) = param_3;" (assignment_expression "*(undefined8 *)(iVar1 + 0x220) = param_3" (pointer_expression "*(undefined8 *)(iVar1 + 0x220)" (* "*") (cast_expression "(undefined8 *)(iVar1 + 0x220)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x220)" (( "(") (binary_expression "iVar1 + 0x220" (identifier "iVar1") (+ "+") (number_literal "0x220")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" (identifier "uVar3") (= "=") (call_expression "FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" (identifier "FloodfillPaintImage") (argument_list "(iVar1,iVar2,local_70,param_5,param_6,param_7,\n                                  *(undefined4 *)(param_1 + 0x100c))" (( "(") (identifier "iVar1") (, ",") (identifier "iVar2") (, ",") (identifier "local_70") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (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")) () ")")))) () ")")))) (; ";")) (expression_statement "DestroyDrawInfo(iVar2);" (call_expression "DestroyDrawInfo(iVar2)" (identifier "DestroyDrawInfo") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n      FUN_000e7d60();\n    }" ({ "{") (expression_statement "FUN_000e7d60();" (call_expression "FUN_000e7d60()" (identifier "FUN_000e7d60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,\n                "MagickFloodfillPaintImage")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0xdda") (, ",") (string_literal ""MagickFloodfillPaintImage"" (" """) (string_content "MagickFloodfillPaintImage") (" """)) () ")"))) (; ";")) (} "}")))

/* 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_2,type_3 *fill,double fuzz,type_3 *var_12,ssize_t x,ssize_t y,
          type_1 invert)

{
  int var_16;
  type_4 *var_6;
  int var_10;
  type_1 MVar4;
  int var_1;
  type_5 target;
  
  var_16 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,
                  "MagickFloodfillPaintImage");
  }
  if (var_2->signature == 0xabacadab) {
    if (var_2->debug == var_4) {
      var_6 = var_2->images;
    }
    else {
      var_5(0x40000,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xddc,"%s",
                     var_2->name);
      var_6 = var_2->images;
    }
    if (var_6 == (type_4 *)0x0) {
      MVar4 = var_4;
      var_7
                (var_2->exception,"MagickWand/magick-image.c","MagickFloodfillPaintImage",0xdde,0x1d6
                 ,"ContainsNoImages",&DAT_000e91ee,var_2->name);
    }
    else {
      var_10 = var_8(var_2->image_info,0);
      var_9(fill,(type_5 *)(var_10 + 0x48));
      var_6 = var_2->images;
      var_11
                (var_6,6,(type_6)x % var_6->columns,(type_6)y % var_6->rows,&target,var_2->exception);
      if (var_12 != (type_3 *)0x0) {
        var_13(var_12,&target);
      }
      var_6 = var_2->images;
      var_6->fuzz = fuzz;
      MVar4 = var_14(var_6,var_10,&target,x,y,invert,var_2->exception);
      var_15(var_10);
    }
    if (var_16 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
      var_17();
    }
    return MVar4;
  }
                    /* WARNING: Subroutine does not return */
  var_3("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,
                "MagickFloodfillPaintImage");
}


(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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (identifier) right: (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)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (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)))))) (binary_expression left: (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)))))) (identifier) (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (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 (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))) (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,undefined8 param_3,int param_4,uint param_5,uint param_6,
          undefined4 param_7)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  undefined1 local_70 [80];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x72d59;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0xdd9,
                  "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",0xddc,"%s",
                     param_1 + 4);
      iVar1 = *(int *)(param_1 + 0x1004);
    }
    if (iVar1 == 0) {
      uVar3 = 0;
      ThrowMagickException
                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-image.c",
                 "MASKED",0xdde,0x1d6,"ContainsNoImages",&DAT_000e91ee,
                 param_1 + 4);
    }
    else {
      iVar2 = CloneDrawInfo(*(undefined4 *)(param_1 + 0x1008),0);
      PixelGetQuantumPacket(param_2,iVar2 + 0x48);
      iVar1 = *(int *)(param_1 + 0x1004);
      GetOneVirtualPixelInfo
                (iVar1,6,param_5 % *(uint *)(iVar1 + 0x18),param_6 % *(uint *)(iVar1 + 0x1c),
                 local_70,*(undefined4 *)(param_1 + 0x100c));
      if (param_4 != 0) {
        PixelGetMagickColor(param_4,local_70);
      }
      iVar1 = *(int *)(param_1 + 0x1004);
      *(undefined8 *)(iVar1 + 0x220) = param_3;
      uVar3 = FloodfillPaintImage(iVar1,iVar2,local_70,param_5,param_6,param_7,
                                  *(undefined4 *)(param_1 + 0x100c));
      DestroyDrawInfo(iVar2);
    }
    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
      FUN_000e7d60();
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0xdda,
                "MASKED");
}

