
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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 */

void DrawSetGravity(DrawingWand *wand,GravityType gravity)

{
  undefined4 uVar1;
  
  if (wand == (DrawingWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"
                 );
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug != MagickFalse) {
      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);
    }
    if (((wand->filter_off != MagickFalse) ||
        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)) {
      wand->graphic_context[wand->index]->gravity = gravity;
      uVar1 = CommandOptionToMnemonic(0x21,gravity);
      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,
                "DrawSetGravity");
}



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

void DrawSetGravity(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"
                 );
  }
  if (*(int *)(param_1 + 0x1054) == -0x54535255) {
    if (*(int *)(param_1 + 0x1050) != 0) {
      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);
    }
    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);
    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||
       (param_2 != 0)) {
      *(int *)(iVar1 + 0x26c) = param_2;
      uVar2 = CommandOptionToMnemonic(0x21,param_2);
      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,
                "DrawSetGravity");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x0001e920
ADD EBX,0x109554
MOV EDI,dword ptr [ESP + 0x14]
TEST ESI,ESI
JZ 0x00060b82
CMP dword ptr [ESI + 0x1054],0xabacadab
JNZ 0x00060b63
MOV ECX,dword ptr [ESI + 0x1050]
TEST ECX,ECX
JNZ 0x00060b30
MOV EDX,dword ptr [ESI + 0x1034]
MOV EAX,dword ptr [ESI + 0x1038]
MOV EAX,dword ptr [EAX + EDX*0x4]
MOV EDX,dword ptr [ESI + 0x103c]
TEST EDX,EDX
JNZ 0x00060afd
CMP dword ptr [EAX + 0x26c],EDI
JNZ 0x00060afd
TEST EDI,EDI
JZ 0x00060b22
SUB ESP,0x8
MOV dword ptr [EAX + 0x26c],EDI
PUSH EDI
PUSH 0x21
CALL 0x0001e350
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfff88d46]
PUSH EAX
PUSH ESI
CALL 0x00056e90
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff91a64]
PUSH EAX
LEA EAX,[EBX + 0xfff899d0]
PUSH 0x14d5
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
ADD ESP,0x20
JMP 0x00060ad8
LEA EAX,[EBX + 0xfff899e0]
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH 0x14d3
PUSH EAX
LEA EAX,[EBX + 0xfff8d4b8]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff899e0]
PUSH EAX
LEA EAX,[EBX + 0xfff888f8]
PUSH 0x14d2
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\nvoid DrawSetGravity(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}\n\n" comment (function_definition "void DrawSetGravity(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" primitive_type (function_declarator "DrawSetGravity(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\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",0x14d2,"DrawSetGravity"\n                 );\n  }" { comment (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 )" identifier (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 )" ( (string_literal ""wand != (DrawingWand *) NULL"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawSetGravity"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\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      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\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      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4)" ( number_literal , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , (string_literal ""DrawSetGravity"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" ( (binary_expression "*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4" (pointer_expression "*(int *)(param_1 + 0x1038)" * (cast_expression "(int *)(param_1 + 0x1038)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1038)" ( (binary_expression "param_1 + 0x1038" identifier + number_literal) )))) + (binary_expression "*(int *)(param_1 + 0x1034) * 4" (pointer_expression "*(int *)(param_1 + 0x1034)" * (cast_expression "(int *)(param_1 + 0x1034)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1034)" ( (binary_expression "param_1 + 0x1034" identifier + number_literal) )))) * number_literal)) ))))) ;) (if_statement "if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }" if (parenthesized_expression "(((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0))" ( (binary_expression "((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2))" ( (binary_expression "(*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x103c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x103c) != 0" (pointer_expression "*(int *)(param_1 + 0x103c)" * (cast_expression "(int *)(param_1 + 0x103c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x103c)" ( (binary_expression "param_1 + 0x103c" identifier + number_literal) )))) != number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x26c) != param_2)" ( (binary_expression "*(int *)(iVar1 + 0x26c) != param_2" (pointer_expression "*(int *)(iVar1 + 0x26c)" * (cast_expression "(int *)(iVar1 + 0x26c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x26c)" ( (binary_expression "iVar1 + 0x26c" identifier + number_literal) )))) != identifier) ))) )) || (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }" { (expression_statement "*(int *)(iVar1 + 0x26c) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x26c) = param_2" (pointer_expression "*(int *)(iVar1 + 0x26c)" * (cast_expression "(int *)(iVar1 + 0x26c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x26c)" ( (binary_expression "iVar1 + 0x26c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = CommandOptionToMnemonic(0x21,param_2);" (assignment_expression "uVar2 = CommandOptionToMnemonic(0x21,param_2)" identifier = (call_expression "CommandOptionToMnemonic(0x21,param_2)" identifier (argument_list "(0x21,param_2)" ( number_literal , identifier )))) ;) (expression_statement "FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);" (call_expression "FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2)" identifier (argument_list "(param_1,"gravity \'%s\'\n",uVar2)" ( identifier , (string_literal ""gravity \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , identifier ))) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawSetGravity"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\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\nvoid DrawSetGravity(DrawingWand *wand,GravityType gravity)\n\n{\n  undefined4 uVar1;\n  \n  if (wand == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);\n    }\n    if (((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)) {\n      wand->graphic_context[wand->index]->gravity = gravity;\n      uVar1 = CommandOptionToMnemonic(0x21,gravity);\n      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}\n\n" comment comment comment comment comment comment comment (function_definition "void DrawSetGravity(DrawingWand *wand,GravityType gravity)\n\n{\n  undefined4 uVar1;\n  \n  if (wand == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);\n    }\n    if (((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)) {\n      wand->graphic_context[wand->index]->gravity = gravity;\n      uVar1 = CommandOptionToMnemonic(0x21,gravity);\n      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" primitive_type (function_declarator "DrawSetGravity(DrawingWand *wand,GravityType gravity)" identifier (parameter_list "(DrawingWand *wand,GravityType gravity)" ( (parameter_declaration "DrawingWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "GravityType gravity" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (wand == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);\n    }\n    if (((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)) {\n      wand->graphic_context[wand->index]->gravity = gravity;\n      uVar1 = CommandOptionToMnemonic(0x21,gravity);\n      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (wand == (DrawingWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\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",0x14d2,"DrawSetGravity"\n                 );\n  }" { comment (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 )" identifier (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 )" ( (string_literal ""wand != (DrawingWand *) NULL"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawSetGravity"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);\n    }\n    if (((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)) {\n      wand->graphic_context[wand->index]->gravity = gravity;\n      uVar1 = CommandOptionToMnemonic(0x21,gravity);\n      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);\n    }\n    return;\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      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);\n    }\n    if (((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)) {\n      wand->graphic_context[wand->index]->gravity = gravity;\n      uVar1 = CommandOptionToMnemonic(0x21,gravity);\n      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);\n    }\n    return;\n  }" { (if_statement "if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);\n    }" if (parenthesized_expression "(wand->debug != MagickFalse)" ( (binary_expression "wand->debug != MagickFalse" (field_expression "wand->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name);" (call_expression "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name)" identifier (argument_list "(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",wand->name)" ( number_literal , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , (string_literal ""DrawSetGravity"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "wand->name" identifier -> field_identifier) ))) ;) })) (if_statement "if (((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)) {\n      wand->graphic_context[wand->index]->gravity = gravity;\n      uVar1 = CommandOptionToMnemonic(0x21,gravity);\n      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);\n    }" if (parenthesized_expression "(((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity))" ( (binary_expression "((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)) || (gravity != ForgetGravity)" (parenthesized_expression "((wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity))" ( (binary_expression "(wand->filter_off != MagickFalse) ||\n        (wand->graphic_context[wand->index]->gravity != gravity)" (parenthesized_expression "(wand->filter_off != MagickFalse)" ( (binary_expression "wand->filter_off != MagickFalse" (field_expression "wand->filter_off" identifier -> field_identifier) != identifier) )) || (parenthesized_expression "(wand->graphic_context[wand->index]->gravity != gravity)" ( (binary_expression "wand->graphic_context[wand->index]->gravity != gravity" (field_expression "wand->graphic_context[wand->index]->gravity" (subscript_expression "wand->graphic_context[wand->index]" (field_expression "wand->graphic_context" identifier -> field_identifier) [ (field_expression "wand->index" identifier -> field_identifier) ]) -> field_identifier) != identifier) ))) )) || (parenthesized_expression "(gravity != ForgetGravity)" ( (binary_expression "gravity != ForgetGravity" identifier != identifier) ))) )) (compound_statement "{\n      wand->graphic_context[wand->index]->gravity = gravity;\n      uVar1 = CommandOptionToMnemonic(0x21,gravity);\n      MVGPrintf(wand,"gravity \'%s\'\n",uVar1);\n    }" { (expression_statement "wand->graphic_context[wand->index]->gravity = gravity;" (assignment_expression "wand->graphic_context[wand->index]->gravity = gravity" (field_expression "wand->graphic_context[wand->index]->gravity" (subscript_expression "wand->graphic_context[wand->index]" (field_expression "wand->graphic_context" identifier -> field_identifier) [ (field_expression "wand->index" identifier -> field_identifier) ]) -> field_identifier) = identifier) ;) (expression_statement "uVar1 = CommandOptionToMnemonic(0x21,gravity);" (assignment_expression "uVar1 = CommandOptionToMnemonic(0x21,gravity)" identifier = (call_expression "CommandOptionToMnemonic(0x21,gravity)" identifier (argument_list "(0x21,gravity)" ( number_literal , identifier )))) ;) (expression_statement "MVGPrintf(wand,"gravity \'%s\'\n",uVar1);" (call_expression "MVGPrintf(wand,"gravity \'%s\'\n",uVar1)" identifier (argument_list "(wand,"gravity \'%s\'\n",uVar1)" ( identifier , (string_literal ""gravity \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , identifier ))) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawSetGravity"" " string_content ") ))) ;) })))
(translation_unit "void DrawSetGravity(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}\n\n" (function_definition "void DrawSetGravity(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" primitive_type (function_declarator "DrawSetGravity(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\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",0x14d2,"DrawSetGravity"\n                 );\n  }" { (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 )" identifier (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 )" ( (string_literal ""wand != (DrawingWand *) NULL"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawSetGravity"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\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      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\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      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4)" ( number_literal , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , (string_literal ""DrawSetGravity"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" ( (binary_expression "*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4" (pointer_expression "*(int *)(param_1 + 0x1038)" * (cast_expression "(int *)(param_1 + 0x1038)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1038)" ( (binary_expression "param_1 + 0x1038" identifier + number_literal) )))) + (binary_expression "*(int *)(param_1 + 0x1034) * 4" (pointer_expression "*(int *)(param_1 + 0x1034)" * (cast_expression "(int *)(param_1 + 0x1034)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1034)" ( (binary_expression "param_1 + 0x1034" identifier + number_literal) )))) * number_literal)) ))))) ;) (if_statement "if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }" if (parenthesized_expression "(((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0))" ( (binary_expression "((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2))" ( (binary_expression "(*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x103c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x103c) != 0" (pointer_expression "*(int *)(param_1 + 0x103c)" * (cast_expression "(int *)(param_1 + 0x103c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x103c)" ( (binary_expression "param_1 + 0x103c" identifier + number_literal) )))) != number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x26c) != param_2)" ( (binary_expression "*(int *)(iVar1 + 0x26c) != param_2" (pointer_expression "*(int *)(iVar1 + 0x26c)" * (cast_expression "(int *)(iVar1 + 0x26c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x26c)" ( (binary_expression "iVar1 + 0x26c" identifier + number_literal) )))) != identifier) ))) )) || (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }" { (expression_statement "*(int *)(iVar1 + 0x26c) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x26c) = param_2" (pointer_expression "*(int *)(iVar1 + 0x26c)" * (cast_expression "(int *)(iVar1 + 0x26c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x26c)" ( (binary_expression "iVar1 + 0x26c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = CommandOptionToMnemonic(0x21,param_2);" (assignment_expression "uVar2 = CommandOptionToMnemonic(0x21,param_2)" identifier = (call_expression "CommandOptionToMnemonic(0x21,param_2)" identifier (argument_list "(0x21,param_2)" ( number_literal , identifier )))) ;) (expression_statement "FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);" (call_expression "FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2)" identifier (argument_list "(param_1,"gravity \'%s\'\n",uVar2)" ( identifier , (string_literal ""gravity \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/drawing-wand.c"" " string_content ") , number_literal , (string_literal ""DrawSetGravity"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (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)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) ))) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence string_content escape_sequence escape_sequence ") , IDENT ))) ;) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void DrawSetGravity(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" (primitive_type "void") (function_declarator "DrawSetGravity(int param_1,int param_2)" (identifier "DrawSetGravity") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );\n  }\n  if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\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",0x14d2,"DrawSetGravity"\n                 );\n  }" ({ "{") (expression_statement "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 );" (call_expression "__assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\n                 )" (identifier "__assert_fail") (argument_list "("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"\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 "0x14d2") (, ",") (string_literal ""DrawSetGravity"" (" """) (string_content "DrawSetGravity") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x1054) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\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      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }\n    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);\n    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1050) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\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      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",param_1 + 4)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/drawing-wand.c"" (" """) (string_content "MagickWand/drawing-wand.c") (" """)) (, ",") (string_literal ""DrawSetGravity"" (" """) (string_content "DrawSetGravity") (" """)) (, ",") (number_literal "0x14d5") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4" (pointer_expression "*(int *)(param_1 + 0x1038)" (* "*") (cast_expression "(int *)(param_1 + 0x1038)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1038)" (( "(") (binary_expression "param_1 + 0x1038" (identifier "param_1") (+ "+") (number_literal "0x1038")) () ")")))) (+ "+") (binary_expression "*(int *)(param_1 + 0x1034) * 4" (pointer_expression "*(int *)(param_1 + 0x1034)" (* "*") (cast_expression "(int *)(param_1 + 0x1034)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1034)" (( "(") (binary_expression "param_1 + 0x1034" (identifier "param_1") (+ "+") (number_literal "0x1034")) () ")")))) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)) {\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }" (if "if") (parenthesized_expression "(((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0))" (( "(") (binary_expression "((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||\n       (param_2 != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2))" (( "(") (binary_expression "(*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x103c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x103c) != 0" (pointer_expression "*(int *)(param_1 + 0x103c)" (* "*") (cast_expression "(int *)(param_1 + 0x103c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x103c)" (( "(") (binary_expression "param_1 + 0x103c" (identifier "param_1") (+ "+") (number_literal "0x103c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(iVar1 + 0x26c) != param_2)" (( "(") (binary_expression "*(int *)(iVar1 + 0x26c) != param_2" (pointer_expression "*(int *)(iVar1 + 0x26c)" (* "*") (cast_expression "(int *)(iVar1 + 0x26c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x26c)" (( "(") (binary_expression "iVar1 + 0x26c" (identifier "iVar1") (+ "+") (number_literal "0x26c")) () ")")))) (!= "!=") (identifier "param_2")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      *(int *)(iVar1 + 0x26c) = param_2;\n      uVar2 = CommandOptionToMnemonic(0x21,param_2);\n      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);\n    }" ({ "{") (expression_statement "*(int *)(iVar1 + 0x26c) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x26c) = param_2" (pointer_expression "*(int *)(iVar1 + 0x26c)" (* "*") (cast_expression "(int *)(iVar1 + 0x26c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x26c)" (( "(") (binary_expression "iVar1 + 0x26c" (identifier "iVar1") (+ "+") (number_literal "0x26c")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar2 = CommandOptionToMnemonic(0x21,param_2);" (assignment_expression "uVar2 = CommandOptionToMnemonic(0x21,param_2)" (identifier "uVar2") (= "=") (call_expression "CommandOptionToMnemonic(0x21,param_2)" (identifier "CommandOptionToMnemonic") (argument_list "(0x21,param_2)" (( "(") (number_literal "0x21") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);" (call_expression "FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2)" (identifier "FUN_00056e90") (argument_list "(param_1,"gravity \'%s\'\n",uVar2)" (( "(") (identifier "param_1") (, ",") (string_literal ""gravity \'%s\'\n"" (" """) (string_content "gravity ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,\n                "DrawSetGravity")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/drawing-wand.c"" (" """) (string_content "MagickWand/drawing-wand.c") (" """)) (, ",") (number_literal "0x14d3") (, ",") (string_literal ""DrawSetGravity"" (" """) (string_content "DrawSetGravity") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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 */

void function_1(type_1 *var_1,type_2 var_5)

{
  type_3 uVar1;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"DrawSetGravity"
                 );
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(0x40000,"MagickWand/drawing-wand.c","DrawSetGravity",0x14d5,"%s",var_1->name);
    }
    if (((var_1->filter_off != var_3) ||
        (var_1->graphic_context[var_1->index]->var_5 != var_5)) || (var_5 != var_6)) {
      var_1->graphic_context[var_1->index]->var_5 = var_5;
      uVar1 = var_7(0x21,var_5);
      var_8(var_1,"gravity \'%s\'\n",uVar1);
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,
                "DrawSetGravity");
}


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

void MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (DrawingWand *) NULL","MagickWand/drawing-wand.c",0x14d2,"MASKED"
                 );
  }
  if (*(int *)(param_1 + 0x1054) == -0x54535255) {
    if (*(int *)(param_1 + 0x1050) != 0) {
      LogMagickEvent(0x40000,"MagickWand/drawing-wand.c","MASKED",0x14d5,"%s",param_1 + 4);
    }
    iVar1 = *(int *)(*(int *)(param_1 + 0x1038) + *(int *)(param_1 + 0x1034) * 4);
    if (((*(int *)(param_1 + 0x103c) != 0) || (*(int *)(iVar1 + 0x26c) != param_2)) ||
       (param_2 != 0)) {
      *(int *)(iVar1 + 0x26c) = param_2;
      uVar2 = CommandOptionToMnemonic(0x21,param_2);
      FUN_00056e90(param_1,"gravity \'%s\'\n",uVar2);
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/drawing-wand.c",0x14d3,
                "MASKED");
}

