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

MagickBooleanType DrawPopPattern(DrawingWand *wand)

{
  int iVar1;
  Image *pIVar2;
  size_t sVar3;
  char *pcVar4;
  MagickBooleanType MVar5;
  int in_GS_OFFSET;
  char geometry [4096];
  char key [4096];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (wand == (DrawingWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"
                 );
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug == MagickFalse) {
      pIVar2 = wand->image;
    }
    else {
      LogMagickEvent();
      pIVar2 = wand->image;
    }
    if (pIVar2 == (Image *)0x0) {
      ThrowMagickException();
      pcVar4 = wand->pattern_id;
    }
    else {
      pcVar4 = wand->pattern_id;
    }
    if (pcVar4 == (char *)0x0) {
      ThrowMagickException();
      MVar5 = MagickFalse;
    }
    else {
      FormatLocaleString();
      SetImageArtifact();
      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",
                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,
                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);
      SetImageArtifact();
      pcVar4 = (char *)DestroyString();
      wand->pattern_offset = 0;
      wand->pattern_id = pcVar4;
      sVar3 = wand->indent_depth;
      (wand->pattern_bounds).x = 0;
      (wand->pattern_bounds).y = 0;
      (wand->pattern_bounds).width = 0;
      (wand->pattern_bounds).height = 0;
      wand->filter_off = MagickTrue;
      if (sVar3 != 0) {
        wand->indent_depth = sVar3 - 1;
      }
      MVGPrintf(wand,"pop pattern\n");
      MVar5 = MagickTrue;
    }
    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail_local();
    }
    return MVar5;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,
                "DrawPopPattern");
}



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

undefined4 DrawPopPattern(int param_1)

{
  undefined4 uVar1;
  int in_GS_OFFSET;
  int iVar2;
  undefined1 local_2020 [8192];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5e0a9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"
                 );
  }
  if (*(int *)(param_1 + 0x1054) == -0x54535255) {
    if (*(int *)(param_1 + 0x1050) == 0) {
      iVar2 = *(int *)(param_1 + 0x1004);
    }
    else {
      LogMagickEvent();
      iVar2 = *(int *)(param_1 + 0x1004);
    }
    if (iVar2 == 0) {
      ThrowMagickException();
      iVar2 = *(int *)(param_1 + 0x101c);
    }
    else {
      iVar2 = *(int *)(param_1 + 0x101c);
    }
    if (iVar2 == 0) {
      ThrowMagickException();
      uVar1 = 0;
    }
    else {
      FormatLocaleString();
      SetImageArtifact();
      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",
                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),
                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2
                        );
      SetImageArtifact();
      uVar1 = DestroyString();
      *(undefined4 *)(param_1 + 0x1030) = 0;
      *(undefined4 *)(param_1 + 0x101c) = uVar1;
      *(undefined4 *)(param_1 + 0x1028) = 0;
      *(undefined4 *)(param_1 + 0x102c) = 0;
      *(undefined4 *)(param_1 + 0x1020) = 0;
      *(undefined4 *)(param_1 + 0x1024) = 0;
      *(undefined4 *)(param_1 + 0x103c) = 1;
      if (*(int *)(param_1 + 0x1040) != 0) {
        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;
      }
      FUN_00056e90();
      uVar1 = 1;
    }
    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
      FUN_000e7d60();
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,
                "DrawPopPattern");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001e920
ADD EBX,0x10bf57
SUB ESP,0x202c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x201c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x2040]
TEST ESI,ESI
JZ 0x0005e343
CMP dword ptr [ESI + 0x1054],0xabacadab
JNZ 0x0005e324
MOV ECX,dword ptr [ESI + 0x1050]
TEST ECX,ECX
JNZ 0x0005e258
MOV EDX,dword ptr [ESI + 0x1004]
TEST EDX,EDX
JZ 0x0005e294
MOV EAX,dword ptr [ESI + 0x101c]
TEST EAX,EAX
JZ 0x0005e2e0
PUSH EAX
LEA EAX,[EBX + 0xfff91a64]
PUSH EAX
PUSH 0x1000
LEA EDI,[ESP + 0x1028]
PUSH EDI
CALL 0x0001e2f0
MOV EAX,dword ptr [ESI + 0x1030]
ADD ESP,0xc
ADD EAX,dword ptr [ESI + 0x100c]
PUSH EAX
PUSH EDI
PUSH dword ptr [ESI + 0x1004]
CALL 0x0001e210
MOV EAX,dword ptr [ESI + 0x1024]
SUB ESP,0x14
XOR EDX,EDX
FILD dword ptr [ESI + 0x102c]
MOV dword ptr [ESP + 0x28],EDX
XOR EDX,EDX
FSTP qword ptr [ESP + 0x18]
FILD dword ptr [ESI + 0x1028]
FSTP qword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [ESI + 0x1020]
FILD qword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x28],EDX
FSTP qword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x24],EAX
LEA EAX,[EBX + 0xfff88bba]
FILD qword ptr [ESP + 0x24]
FSTP qword ptr [ESP]
PUSH EAX
PUSH 0x1000
LEA EBP,[ESP + 0x48]
PUSH EBP
CALL 0x0001e2f0
ADD ESP,0x2c
PUSH EBP
PUSH EDI
PUSH dword ptr [ESI + 0x1004]
CALL 0x0001e210
POP EAX
PUSH dword ptr [ESI + 0x101c]
CALL 0x0001dac0
ADD ESP,0x10
MOV dword ptr [ESI + 0x1030],0x0
MOV dword ptr [ESI + 0x101c],EAX
MOV EAX,dword ptr [ESI + 0x1040]
MOV dword ptr [ESI + 0x1028],0x0
MOV dword ptr [ESI + 0x102c],0x0
MOV dword ptr [ESI + 0x1020],0x0
MOV dword ptr [ESI + 0x1024],0x0
MOV dword ptr [ESI + 0x103c],0x1
TEST EAX,EAX
JNZ 0x0005e248
LEA EAX,[EBX + 0xfff88bd2]
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x00056e90
ADD ESP,0x10
MOV EAX,0x1
MOV ECX,dword ptr [ESP + 0x201c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0005e31f
ADD ESP,0x202c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB EAX,0x1
MOV dword ptr [ESI + 0x1040],EAX
JMP 0x0005e20e
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff91a64]
PUSH EAX
LEA EAX,[EBX + 0xfff89d90]
PUSH 0x1021
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
MOV EDX,dword ptr [ESI + 0x1004]
ADD ESP,0x20
TEST EDX,EDX
JNZ 0x0005e0ff
LEA EAX,[ESI + 0x4]
PUSH EAX
LEA EAX,[EBX + 0xfff7f1ee]
PUSH EAX
LEA EAX,[EBX + 0xfff86fbe]
PUSH EAX
LEA EAX,[EBX + 0xfff89d90]
PUSH 0x1d6
PUSH 0x1023
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH EAX
PUSH dword ptr [ESI + 0x1008]
CALL 0x0001de10
MOV EAX,dword ptr [ESI + 0x101c]
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x0005e10d
LEA ESI,[ESI]
LEA EAX,[ESI + 0x4]
PUSH EAX
LEA EAX,[EBX + 0xfff7f1ee]
PUSH EAX
LEA EAX,[EBX + 0xfff89288]
PUSH EAX
LEA EAX,[EBX + 0xfff89d90]
PUSH 0x168
PUSH 0x1027
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH EAX
PUSH dword ptr [ESI + 0x1008]
CALL 0x0001de10
ADD ESP,0x20
XOR EAX,EAX
JMP 0x0005e226
CALL 0x000e7d60
LEA EAX,[EBX + 0xfff89da0]
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH 0x101f
PUSH EAX
LEA EAX,[EBX + 0xfff8d4b8]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff89da0]
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH 0x101e
PUSH EAX
LEA EAX,[EBX + 0xfff88912]
PUSH EAX
CALL 0x0001ccf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 DrawPopPattern(int param_1)\n\n{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}\n\n" comment (function_definition "undefined4 DrawPopPattern(int param_1)\n\n{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" type_identifier (function_declarator "DrawPopPattern(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_2020 [8192];" type_identifier (array_declarator "local_2020 [8192]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5e0a9;" (assignment_expression "uStack_14 = 0x5e0a9" 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 != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\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 != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }" { comment (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" identifier (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" ( (string_literal ""wand != (DrawingWand *) NULL"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawPopPattern"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1054) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x1054) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x1054)" * (cast_expression "(int *)(param_1 + 0x1054)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1054)" ( (binary_expression "param_1 + 0x1054" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000e7d60();\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1050) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1050) == 0" (pointer_expression "*(int *)(param_1 + 0x1050)" * (cast_expression "(int *)(param_1 + 0x1050)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1050)" ( (binary_expression "param_1 + 0x1050" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar2 = *(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();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" else (compound_statement "{\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar2 = *(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 (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" { (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x101c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x101c)" identifier = (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) ))))) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x101c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x101c)" identifier = (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) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      ThrowMagickException();\n      uVar1 = 0;\n    }" { (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" else (compound_statement "{\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" { (expression_statement "FormatLocaleString();" (call_expression "FormatLocaleString()" identifier (argument_list "()" ( ))) ;) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" identifier (argument_list "()" ( ))) ;) (expression_statement "FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );" (call_expression "FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        )" identifier (argument_list "(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        )" ( identifier , number_literal , (string_literal ""%.20gx%.20g%+.20g%+.20g"" " string_content ") , (cast_expression "(double)*(uint *)(param_1 + 0x1020)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_1 + 0x1020)" * (cast_expression "(uint *)(param_1 + 0x1020)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1020)" ( (binary_expression "param_1 + 0x1020" identifier + number_literal) ))))) , (cast_expression "(double)*(uint *)(param_1 + 0x1024)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_1 + 0x1024)" * (cast_expression "(uint *)(param_1 + 0x1024)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1024)" ( (binary_expression "param_1 + 0x1024" identifier + number_literal) ))))) , (cast_expression "(double)*(int *)(param_1 + 0x1028)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_1 + 0x1028)" * (cast_expression "(int *)(param_1 + 0x1028)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1028)" ( (binary_expression "param_1 + 0x1028" identifier + number_literal) ))))) , (cast_expression "(double)*(int *)(param_1 + 0x102c)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_1 + 0x102c)" * (cast_expression "(int *)(param_1 + 0x102c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x102c)" ( (binary_expression "param_1 + 0x102c" identifier + number_literal) ))))) , identifier ))) ;) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = DestroyString();" (assignment_expression "uVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1030) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1030) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1030)" * (cast_expression "(undefined4 *)(param_1 + 0x1030)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1030)" ( (binary_expression "param_1 + 0x1030" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x101c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x101c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x101c)" * (cast_expression "(undefined4 *)(param_1 + 0x101c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1028) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1028) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1028)" * (cast_expression "(undefined4 *)(param_1 + 0x1028)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1028)" ( (binary_expression "param_1 + 0x1028" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x102c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x102c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x102c)" * (cast_expression "(undefined4 *)(param_1 + 0x102c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x102c)" ( (binary_expression "param_1 + 0x102c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1020) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1020) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1020)" * (cast_expression "(undefined4 *)(param_1 + 0x1020)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1020)" ( (binary_expression "param_1 + 0x1020" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1024) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1024) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1024)" * (cast_expression "(undefined4 *)(param_1 + 0x1024)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1024)" ( (binary_expression "param_1 + 0x1024" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x103c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x103c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x103c)" * (cast_expression "(undefined4 *)(param_1 + 0x103c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x103c)" ( (binary_expression "param_1 + 0x103c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x1040) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1040) != 0" (pointer_expression "*(int *)(param_1 + 0x1040)" * (cast_expression "(int *)(param_1 + 0x1040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1040)" ( (binary_expression "param_1 + 0x1040" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }" { (expression_statement "*(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;" (assignment_expression "*(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1" (pointer_expression "*(int *)(param_1 + 0x1040)" * (cast_expression "(int *)(param_1 + 0x1040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1040)" ( (binary_expression "param_1 + 0x1040" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x1040) + -1" (pointer_expression "*(int *)(param_1 + 0x1040)" * (cast_expression "(int *)(param_1 + 0x1040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1040)" ( (binary_expression "param_1 + 0x1040" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "FUN_00056e90();" (call_expression "FUN_00056e90()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }))) (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 uVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawPopPattern"" " 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/* WARNING: Enum "ComplianceType": Some values do not have unique names */\n\nMagickBooleanType DrawPopPattern(DrawingWand *wand)\n\n{\n  int iVar1;\n  Image *pIVar2;\n  size_t sVar3;\n  char *pcVar4;\n  MagickBooleanType MVar5;\n  int in_GS_OFFSET;\n  char geometry [4096];\n  char key [4096];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (wand == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->image;\n    }\n    else {\n      LogMagickEvent();\n      pIVar2 = wand->image;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      ThrowMagickException();\n      pcVar4 = wand->pattern_id;\n    }\n    else {\n      pcVar4 = wand->pattern_id;\n    }\n    if (pcVar4 == (char *)0x0) {\n      ThrowMagickException();\n      MVar5 = MagickFalse;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "MagickBooleanType DrawPopPattern(DrawingWand *wand)\n\n{\n  int iVar1;\n  Image *pIVar2;\n  size_t sVar3;\n  char *pcVar4;\n  MagickBooleanType MVar5;\n  int in_GS_OFFSET;\n  char geometry [4096];\n  char key [4096];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (wand == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->image;\n    }\n    else {\n      LogMagickEvent();\n      pIVar2 = wand->image;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      ThrowMagickException();\n      pcVar4 = wand->pattern_id;\n    }\n    else {\n      pcVar4 = wand->pattern_id;\n    }\n    if (pcVar4 == (char *)0x0) {\n      ThrowMagickException();\n      MVar5 = MagickFalse;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" type_identifier (function_declarator "DrawPopPattern(DrawingWand *wand)" identifier (parameter_list "(DrawingWand *wand)" ( (parameter_declaration "DrawingWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  Image *pIVar2;\n  size_t sVar3;\n  char *pcVar4;\n  MagickBooleanType MVar5;\n  int in_GS_OFFSET;\n  char geometry [4096];\n  char key [4096];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (wand == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->image;\n    }\n    else {\n      LogMagickEvent();\n      pIVar2 = wand->image;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      ThrowMagickException();\n      pcVar4 = wand->pattern_id;\n    }\n    else {\n      pcVar4 = wand->pattern_id;\n    }\n    if (pcVar4 == (char *)0x0) {\n      ThrowMagickException();\n      MVar5 = MagickFalse;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Image *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "MagickBooleanType MVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char geometry [4096];" primitive_type (array_declarator "geometry [4096]" identifier [ number_literal ]) ;) (declaration "char key [4096];" primitive_type (array_declarator "key [4096]" identifier [ number_literal ]) ;) (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 == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }" if (parenthesized_expression "(wand == (DrawingWand *)0x0)" ( (binary_expression "wand == (DrawingWand *)0x0" identifier == (cast_expression "(DrawingWand *)0x0" ( (type_descriptor "DrawingWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }" { comment (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" identifier (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" ( (string_literal ""wand != (DrawingWand *) NULL"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawPopPattern"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->image;\n    }\n    else {\n      LogMagickEvent();\n      pIVar2 = wand->image;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      ThrowMagickException();\n      pcVar4 = wand->pattern_id;\n    }\n    else {\n      pcVar4 = wand->pattern_id;\n    }\n    if (pcVar4 == (char *)0x0) {\n      ThrowMagickException();\n      MVar5 = MagickFalse;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar5;\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->image;\n    }\n    else {\n      LogMagickEvent();\n      pIVar2 = wand->image;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      ThrowMagickException();\n      pcVar4 = wand->pattern_id;\n    }\n    else {\n      pcVar4 = wand->pattern_id;\n    }\n    if (pcVar4 == (char *)0x0) {\n      ThrowMagickException();\n      MVar5 = MagickFalse;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }\n    if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    return MVar5;\n  }" { (if_statement "if (wand->debug == MagickFalse) {\n      pIVar2 = wand->image;\n    }\n    else {\n      LogMagickEvent();\n      pIVar2 = wand->image;\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->image;\n    }" { (expression_statement "pIVar2 = wand->image;" (assignment_expression "pIVar2 = wand->image" identifier = (field_expression "wand->image" identifier -> field_identifier)) ;) }) (else_clause "else {\n      LogMagickEvent();\n      pIVar2 = wand->image;\n    }" else (compound_statement "{\n      LogMagickEvent();\n      pIVar2 = wand->image;\n    }" { (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" identifier (argument_list "()" ( ))) ;) (expression_statement "pIVar2 = wand->image;" (assignment_expression "pIVar2 = wand->image" identifier = (field_expression "wand->image" identifier -> field_identifier)) ;) }))) (if_statement "if (pIVar2 == (Image *)0x0) {\n      ThrowMagickException();\n      pcVar4 = wand->pattern_id;\n    }\n    else {\n      pcVar4 = wand->pattern_id;\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      ThrowMagickException();\n      pcVar4 = wand->pattern_id;\n    }" { (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar4 = wand->pattern_id;" (assignment_expression "pcVar4 = wand->pattern_id" identifier = (field_expression "wand->pattern_id" identifier -> field_identifier)) ;) }) (else_clause "else {\n      pcVar4 = wand->pattern_id;\n    }" else (compound_statement "{\n      pcVar4 = wand->pattern_id;\n    }" { (expression_statement "pcVar4 = wand->pattern_id;" (assignment_expression "pcVar4 = wand->pattern_id" identifier = (field_expression "wand->pattern_id" identifier -> field_identifier)) ;) }))) (if_statement "if (pcVar4 == (char *)0x0) {\n      ThrowMagickException();\n      MVar5 = MagickFalse;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      ThrowMagickException();\n      MVar5 = MagickFalse;\n    }" { (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (expression_statement "MVar5 = MagickFalse;" (assignment_expression "MVar5 = MagickFalse" identifier = identifier) ;) }) (else_clause "else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }" else (compound_statement "{\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);\n      SetImageArtifact();\n      pcVar4 = (char *)DestroyString();\n      wand->pattern_offset = 0;\n      wand->pattern_id = pcVar4;\n      sVar3 = wand->indent_depth;\n      (wand->pattern_bounds).x = 0;\n      (wand->pattern_bounds).y = 0;\n      (wand->pattern_bounds).width = 0;\n      (wand->pattern_bounds).height = 0;\n      wand->filter_off = MagickTrue;\n      if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }\n      MVGPrintf(wand,"pop pattern\n");\n      MVar5 = MagickTrue;\n    }" { (expression_statement "FormatLocaleString();" (call_expression "FormatLocaleString()" identifier (argument_list "()" ( ))) ;) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" identifier (argument_list "()" ( ))) ;) (expression_statement "FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4);" (call_expression "FormatLocaleString(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4)" identifier (argument_list "(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)(wand->pattern_bounds).width,(double)(wand->pattern_bounds).height,\n                         (double)(wand->pattern_bounds).x,(double)(wand->pattern_bounds).y,pcVar4)" ( identifier , number_literal , (string_literal ""%.20gx%.20g%+.20g%+.20g"" " string_content ") , (cast_expression "(double)(wand->pattern_bounds).width" ( (type_descriptor "double" primitive_type) ) (field_expression "(wand->pattern_bounds).width" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier)) , (cast_expression "(double)(wand->pattern_bounds).height" ( (type_descriptor "double" primitive_type) ) (field_expression "(wand->pattern_bounds).height" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier)) , (cast_expression "(double)(wand->pattern_bounds).x" ( (type_descriptor "double" primitive_type) ) (field_expression "(wand->pattern_bounds).x" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier)) , (cast_expression "(double)(wand->pattern_bounds).y" ( (type_descriptor "double" primitive_type) ) (field_expression "(wand->pattern_bounds).y" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier)) , identifier ))) ;) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar4 = (char *)DestroyString();" (assignment_expression "pcVar4 = (char *)DestroyString()" identifier = (cast_expression "(char *)DestroyString()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "DestroyString()" identifier (argument_list "()" ( ))))) ;) (expression_statement "wand->pattern_offset = 0;" (assignment_expression "wand->pattern_offset = 0" (field_expression "wand->pattern_offset" identifier -> field_identifier) = number_literal) ;) (expression_statement "wand->pattern_id = pcVar4;" (assignment_expression "wand->pattern_id = pcVar4" (field_expression "wand->pattern_id" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar3 = wand->indent_depth;" (assignment_expression "sVar3 = wand->indent_depth" identifier = (field_expression "wand->indent_depth" identifier -> field_identifier)) ;) (expression_statement "(wand->pattern_bounds).x = 0;" (assignment_expression "(wand->pattern_bounds).x = 0" (field_expression "(wand->pattern_bounds).x" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(wand->pattern_bounds).y = 0;" (assignment_expression "(wand->pattern_bounds).y = 0" (field_expression "(wand->pattern_bounds).y" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(wand->pattern_bounds).width = 0;" (assignment_expression "(wand->pattern_bounds).width = 0" (field_expression "(wand->pattern_bounds).width" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(wand->pattern_bounds).height = 0;" (assignment_expression "(wand->pattern_bounds).height = 0" (field_expression "(wand->pattern_bounds).height" (parenthesized_expression "(wand->pattern_bounds)" ( (field_expression "wand->pattern_bounds" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "wand->filter_off = MagickTrue;" (assignment_expression "wand->filter_off = MagickTrue" (field_expression "wand->filter_off" identifier -> field_identifier) = identifier) ;) (if_statement "if (sVar3 != 0) {\n        wand->indent_depth = sVar3 - 1;\n      }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        wand->indent_depth = sVar3 - 1;\n      }" { (expression_statement "wand->indent_depth = sVar3 - 1;" (assignment_expression "wand->indent_depth = sVar3 - 1" (field_expression "wand->indent_depth" identifier -> field_identifier) = (binary_expression "sVar3 - 1" identifier - number_literal)) ;) })) (expression_statement "MVGPrintf(wand,"pop pattern\n");" (call_expression "MVGPrintf(wand,"pop pattern\n")" identifier (argument_list "(wand,"pop pattern\n")" ( identifier , (string_literal ""pop pattern\n"" " string_content escape_sequence ") ))) ;) (expression_statement "MVar5 = MagickTrue;" (assignment_expression "MVar5 = MagickTrue" identifier = 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 MVar5;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawPopPattern"" " string_content ") ))) ;) })))
(translation_unit "undefined4 DrawPopPattern(int param_1)\n\n{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}\n\n" (function_definition "undefined4 DrawPopPattern(int param_1)\n\n{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" type_identifier (function_declarator "DrawPopPattern(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_2020 [8192];" type_identifier (array_declarator "local_2020 [8192]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5e0a9;" (assignment_expression "uStack_14 = 0x5e0a9" 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 != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }" { (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" identifier (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" ( (string_literal ""wand != (DrawingWand *) NULL"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawPopPattern"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1054) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x1054) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x1054)" * (cast_expression "(int *)(param_1 + 0x1054)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1054)" ( (binary_expression "param_1 + 0x1054" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1050) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1050) == 0" (pointer_expression "*(int *)(param_1 + 0x1050)" * (cast_expression "(int *)(param_1 + 0x1050)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1050)" ( (binary_expression "param_1 + 0x1050" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar2 = *(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();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" else (compound_statement "{\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" { (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar2 = *(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 (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" { (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x101c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x101c)" identifier = (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) ))))) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x101c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x101c)" identifier = (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) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      ThrowMagickException();\n      uVar1 = 0;\n    }" { (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" else (compound_statement "{\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" { (expression_statement "FormatLocaleString();" (call_expression "FormatLocaleString()" identifier (argument_list "()" ( ))) ;) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" identifier (argument_list "()" ( ))) ;) (expression_statement "FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );" (call_expression "FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        )" identifier (argument_list "(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        )" ( identifier , number_literal , (string_literal ""%.20gx%.20g%+.20g%+.20g"" " string_content ") , (cast_expression "(double)*(uint *)(param_1 + 0x1020)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_1 + 0x1020)" * (cast_expression "(uint *)(param_1 + 0x1020)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1020)" ( (binary_expression "param_1 + 0x1020" identifier + number_literal) ))))) , (cast_expression "(double)*(uint *)(param_1 + 0x1024)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(uint *)(param_1 + 0x1024)" * (cast_expression "(uint *)(param_1 + 0x1024)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1024)" ( (binary_expression "param_1 + 0x1024" identifier + number_literal) ))))) , (cast_expression "(double)*(int *)(param_1 + 0x1028)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_1 + 0x1028)" * (cast_expression "(int *)(param_1 + 0x1028)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1028)" ( (binary_expression "param_1 + 0x1028" identifier + number_literal) ))))) , (cast_expression "(double)*(int *)(param_1 + 0x102c)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_1 + 0x102c)" * (cast_expression "(int *)(param_1 + 0x102c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x102c)" ( (binary_expression "param_1 + 0x102c" identifier + number_literal) ))))) , identifier ))) ;) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = DestroyString();" (assignment_expression "uVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1030) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1030) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1030)" * (cast_expression "(undefined4 *)(param_1 + 0x1030)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1030)" ( (binary_expression "param_1 + 0x1030" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x101c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x101c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x101c)" * (cast_expression "(undefined4 *)(param_1 + 0x101c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1028) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1028) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1028)" * (cast_expression "(undefined4 *)(param_1 + 0x1028)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1028)" ( (binary_expression "param_1 + 0x1028" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x102c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x102c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x102c)" * (cast_expression "(undefined4 *)(param_1 + 0x102c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x102c)" ( (binary_expression "param_1 + 0x102c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1020) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1020) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1020)" * (cast_expression "(undefined4 *)(param_1 + 0x1020)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1020)" ( (binary_expression "param_1 + 0x1020" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1024) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1024) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1024)" * (cast_expression "(undefined4 *)(param_1 + 0x1024)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1024)" ( (binary_expression "param_1 + 0x1024" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x103c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x103c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x103c)" * (cast_expression "(undefined4 *)(param_1 + 0x103c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x103c)" ( (binary_expression "param_1 + 0x103c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x1040) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1040) != 0" (pointer_expression "*(int *)(param_1 + 0x1040)" * (cast_expression "(int *)(param_1 + 0x1040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1040)" ( (binary_expression "param_1 + 0x1040" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }" { (expression_statement "*(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;" (assignment_expression "*(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1" (pointer_expression "*(int *)(param_1 + 0x1040)" * (cast_expression "(int *)(param_1 + 0x1040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1040)" ( (binary_expression "param_1 + 0x1040" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x1040) + -1" (pointer_expression "*(int *)(param_1 + 0x1040)" * (cast_expression "(int *)(param_1 + 0x1040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1040)" ( (binary_expression "param_1 + 0x1040" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "FUN_00056e90();" (call_expression "FUN_00056e90()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }))) (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 uVar1;" return identifier ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawPopPattern"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 ( ))) ;) (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 ( ))) ;) (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 (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 ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (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 DrawPopPattern(int param_1)\n\n{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" (type_identifier "undefined4") (function_declarator "DrawPopPattern(int param_1)" (identifier "DrawPopPattern") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int in_GS_OFFSET;\n  int iVar2;\n  undefined1 local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e0a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 local_2020 [8192];" (type_identifier "undefined1") (array_declarator "local_2020 [8192]" (identifier "local_2020") ([ "[") (number_literal "8192") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5e0a9;" (assignment_expression "uStack_14 = 0x5e0a9" (identifier "uStack_14") (= "=") (number_literal "0x5e0a9")) (; ";")) (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 != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\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 != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );\n  }" ({ "{") (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" (identifier "__assert_fail") (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"\n                 )" (( "(") (string_literal ""wand != (DrawingWand *) NULL"" (" """) (string_content "wand != (DrawingWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/drawing-wand.c"" (" """) (string_content "MagickWand/drawing-wand.c") (" """)) (, ",") (number_literal "0x101e") (, ",") (string_literal ""DrawPopPattern"" (" """) (string_content "DrawPopPattern") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1054) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x1054) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x1054)" (* "*") (cast_expression "(int *)(param_1 + 0x1054)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1054)" (( "(") (binary_expression "param_1 + 0x1054" (identifier "param_1") (+ "+") (number_literal "0x1054")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }\n    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n      FUN_000e7d60();\n    }\n    return uVar1;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1050) == 0) {\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }\n    else {\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1050) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1050) == 0" (pointer_expression "*(int *)(param_1 + 0x1050)" (* "*") (cast_expression "(int *)(param_1 + 0x1050)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1050)" (( "(") (binary_expression "param_1 + 0x1050" (identifier "param_1") (+ "+") (number_literal "0x1050")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1004)" (identifier "iVar2") (= "=") (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();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" (else "else") (compound_statement "{\n      LogMagickEvent();\n      iVar2 = *(int *)(param_1 + 0x1004);\n    }" ({ "{") (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" (identifier "LogMagickEvent") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1004)" (identifier "iVar2") (= "=") (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 (iVar2 == 0) {\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      ThrowMagickException();\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" ({ "{") (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" (identifier "ThrowMagickException") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x101c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x101c)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" (else "else") (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x101c);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x101c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x101c)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n      ThrowMagickException();\n      uVar1 = 0;\n    }\n    else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      ThrowMagickException();\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" (identifier "ThrowMagickException") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" (else "else") (compound_statement "{\n      FormatLocaleString();\n      SetImageArtifact();\n      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );\n      SetImageArtifact();\n      uVar1 = DestroyString();\n      *(undefined4 *)(param_1 + 0x1030) = 0;\n      *(undefined4 *)(param_1 + 0x101c) = uVar1;\n      *(undefined4 *)(param_1 + 0x1028) = 0;\n      *(undefined4 *)(param_1 + 0x102c) = 0;\n      *(undefined4 *)(param_1 + 0x1020) = 0;\n      *(undefined4 *)(param_1 + 0x1024) = 0;\n      *(undefined4 *)(param_1 + 0x103c) = 1;\n      if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }\n      FUN_00056e90();\n      uVar1 = 1;\n    }" ({ "{") (expression_statement "FormatLocaleString();" (call_expression "FormatLocaleString()" (identifier "FormatLocaleString") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" (identifier "SetImageArtifact") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        );" (call_expression "FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        )" (identifier "FormatLocaleString") (argument_list "(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",\n                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),\n                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2\n                        )" (( "(") (identifier "local_2020") (, ",") (number_literal "0x1000") (, ",") (string_literal ""%.20gx%.20g%+.20g%+.20g"" (" """) (string_content "%.20gx%.20g%+.20g%+.20g") (" """)) (, ",") (cast_expression "(double)*(uint *)(param_1 + 0x1020)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(uint *)(param_1 + 0x1020)" (* "*") (cast_expression "(uint *)(param_1 + 0x1020)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1020)" (( "(") (binary_expression "param_1 + 0x1020" (identifier "param_1") (+ "+") (number_literal "0x1020")) () ")"))))) (, ",") (cast_expression "(double)*(uint *)(param_1 + 0x1024)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(uint *)(param_1 + 0x1024)" (* "*") (cast_expression "(uint *)(param_1 + 0x1024)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1024)" (( "(") (binary_expression "param_1 + 0x1024" (identifier "param_1") (+ "+") (number_literal "0x1024")) () ")"))))) (, ",") (cast_expression "(double)*(int *)(param_1 + 0x1028)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_1 + 0x1028)" (* "*") (cast_expression "(int *)(param_1 + 0x1028)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1028)" (( "(") (binary_expression "param_1 + 0x1028" (identifier "param_1") (+ "+") (number_literal "0x1028")) () ")"))))) (, ",") (cast_expression "(double)*(int *)(param_1 + 0x102c)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_1 + 0x102c)" (* "*") (cast_expression "(int *)(param_1 + 0x102c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x102c)" (( "(") (binary_expression "param_1 + 0x102c" (identifier "param_1") (+ "+") (number_literal "0x102c")) () ")"))))) (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "SetImageArtifact();" (call_expression "SetImageArtifact()" (identifier "SetImageArtifact") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = DestroyString();" (assignment_expression "uVar1 = DestroyString()" (identifier "uVar1") (= "=") (call_expression "DestroyString()" (identifier "DestroyString") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1030) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1030) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1030)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1030)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1030)" (( "(") (binary_expression "param_1 + 0x1030" (identifier "param_1") (+ "+") (number_literal "0x1030")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x101c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x101c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x101c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x101c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x101c)" (( "(") (binary_expression "param_1 + 0x101c" (identifier "param_1") (+ "+") (number_literal "0x101c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1028) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1028) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1028)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1028)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1028)" (( "(") (binary_expression "param_1 + 0x1028" (identifier "param_1") (+ "+") (number_literal "0x1028")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x102c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x102c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x102c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x102c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x102c)" (( "(") (binary_expression "param_1 + 0x102c" (identifier "param_1") (+ "+") (number_literal "0x102c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1020) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1020) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1020)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1020)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1020)" (( "(") (binary_expression "param_1 + 0x1020" (identifier "param_1") (+ "+") (number_literal "0x1020")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1024) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1024) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1024)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1024)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1024)" (( "(") (binary_expression "param_1 + 0x1024" (identifier "param_1") (+ "+") (number_literal "0x1024")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x103c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x103c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x103c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x103c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x103c)" (( "(") (binary_expression "param_1 + 0x103c" (identifier "param_1") (+ "+") (number_literal "0x103c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x1040) != 0) {\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1040) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1040) != 0" (pointer_expression "*(int *)(param_1 + 0x1040)" (* "*") (cast_expression "(int *)(param_1 + 0x1040)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1040)" (( "(") (binary_expression "param_1 + 0x1040" (identifier "param_1") (+ "+") (number_literal "0x1040")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;\n      }" ({ "{") (expression_statement "*(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;" (assignment_expression "*(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1" (pointer_expression "*(int *)(param_1 + 0x1040)" (* "*") (cast_expression "(int *)(param_1 + 0x1040)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1040)" (( "(") (binary_expression "param_1 + 0x1040" (identifier "param_1") (+ "+") (number_literal "0x1040")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x1040) + -1" (pointer_expression "*(int *)(param_1 + 0x1040)" (* "*") (cast_expression "(int *)(param_1 + 0x1040)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1040)" (( "(") (binary_expression "param_1 + 0x1040" (identifier "param_1") (+ "+") (number_literal "0x1040")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "FUN_00056e90();" (call_expression "FUN_00056e90()" (identifier "FUN_00056e90") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (} "}")))) (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 uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,\n                "DrawPopPattern")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/drawing-wand.c"" (" """) (string_content "MagickWand/drawing-wand.c") (" """)) (, ",") (number_literal "0x101f") (, ",") (string_literal ""DrawPopPattern"" (" """) (string_content "DrawPopPattern") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_2)

{
  int var_14;
  type_3 *var_6;
  size_t var_12;
  char *var_8;
  type_1 MVar5;
  int var_1;
  char geometry [4096];
  char key [4096];
  
  var_14 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"DrawPopPattern"
                 );
  }
  if (var_2->signature == 0xabacadab) {
    if (var_2->debug == var_4) {
      var_6 = var_2->image;
    }
    else {
      var_5();
      var_6 = var_2->image;
    }
    if (var_6 == (type_3 *)0x0) {
      var_7();
      var_8 = var_2->pattern_id;
    }
    else {
      var_8 = var_2->pattern_id;
    }
    if (var_8 == (char *)0x0) {
      var_7();
      MVar5 = var_4;
    }
    else {
      var_9();
      var_10();
      var_9(geometry,0x1000,"%.20gx%.20g%+.20g%+.20g",
                         (double)(var_2->pattern_bounds).width,(double)(var_2->pattern_bounds).height,
                         (double)(var_2->pattern_bounds).x,(double)(var_2->pattern_bounds).y,var_8);
      var_10();
      var_8 = (char *)var_11();
      var_2->pattern_offset = 0;
      var_2->pattern_id = var_8;
      var_12 = var_2->indent_depth;
      (var_2->pattern_bounds).x = 0;
      (var_2->pattern_bounds).y = 0;
      (var_2->pattern_bounds).width = 0;
      (var_2->pattern_bounds).height = 0;
      var_2->filter_off = MagickTrue;
      if (var_12 != 0) {
        var_2->indent_depth = var_12 - 1;
      }
      var_13(var_2,"pop pattern\n");
      MVar5 = MagickTrue;
    }
    if (var_14 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
      var_15();
    }
    return MVar5;
  }
                    /* WARNING: Subroutine does not return */
  var_3("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,
                "DrawPopPattern");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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))) (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))) (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 (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))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))))) (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))))) (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))))) (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))))) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (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: (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: (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)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (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 uVar1;
  int in_GS_OFFSET;
  int iVar2;
  undefined1 local_2020 [8192];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5e0a9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x101e,"MASKED"
                 );
  }
  if (*(int *)(param_1 + 0x1054) == -0x54535255) {
    if (*(int *)(param_1 + 0x1050) == 0) {
      iVar2 = *(int *)(param_1 + 0x1004);
    }
    else {
      LogMagickEvent();
      iVar2 = *(int *)(param_1 + 0x1004);
    }
    if (iVar2 == 0) {
      ThrowMagickException();
      iVar2 = *(int *)(param_1 + 0x101c);
    }
    else {
      iVar2 = *(int *)(param_1 + 0x101c);
    }
    if (iVar2 == 0) {
      ThrowMagickException();
      uVar1 = 0;
    }
    else {
      FormatLocaleString();
      SetImageArtifact();
      FormatLocaleString(local_2020,0x1000,"%.20gx%.20g%+.20g%+.20g",
                         (double)*(uint *)(param_1 + 0x1020),(double)*(uint *)(param_1 + 0x1024),
                         (double)*(int *)(param_1 + 0x1028),(double)*(int *)(param_1 + 0x102c),iVar2
                        );
      SetImageArtifact();
      uVar1 = DestroyString();
      *(undefined4 *)(param_1 + 0x1030) = 0;
      *(undefined4 *)(param_1 + 0x101c) = uVar1;
      *(undefined4 *)(param_1 + 0x1028) = 0;
      *(undefined4 *)(param_1 + 0x102c) = 0;
      *(undefined4 *)(param_1 + 0x1020) = 0;
      *(undefined4 *)(param_1 + 0x1024) = 0;
      *(undefined4 *)(param_1 + 0x103c) = 1;
      if (*(int *)(param_1 + 0x1040) != 0) {
        *(int *)(param_1 + 0x1040) = *(int *)(param_1 + 0x1040) + -1;
      }
      FUN_00056e90();
      uVar1 = 1;
    }
    if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
      FUN_000e7d60();
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x101f,
                "MASKED");
}

