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

EncodeImageHandler * GetImageEncoder(MagickInfo *magick_info)

{
  EncodeImageHandler *pEVar1;
  
  if (magick_info == (MagickInfo *)0x0) {
    pEVar1 = (EncodeImageHandler *)0x0;
  }
  else {
    if (magick_info->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,
                    "GetImageEncoder");
    }
    pEVar1 = magick_info->encoder;
  }
  return pEVar1;
}



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

undefined4 GetImageEncoder(int param_1)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
    uVar1 = 0;
  }
  else {
    if (*(int *)(param_1 + 0x34) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,
                    "GetImageEncoder");
    }
    uVar1 = *(undefined4 *)(param_1 + 0x1c);
  }
  return uVar1;
}


PUSH EBX
CALL 0x00038830
ADD EBX,0x2e27fa
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x000f6830
CMP dword ptr [EAX + 0x34],0xabacadab
JNZ 0x000f6834
MOV EAX,dword ptr [EAX + 0x1c]
ADD ESP,0x8
POP EBX
RET
XOR EAX,EAX
JMP 0x000f6823
LEA EAX,[EBX + 0xffee0c98]
PUSH EAX
LEA EAX,[EBX + 0xffee0967]
PUSH 0x101
PUSH EAX
LEA EAX,[EBX + 0xffed670c]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 GetImageEncoder(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 GetImageEncoder(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "GetImageEncoder(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" { (if_statement "if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x34) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x34) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" { comment (expression_statement "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");" (call_expression "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" identifier (argument_list "("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" ( (string_literal ""magick_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/magick.c"" " string_content ") , number_literal , (string_literal ""GetImageEncoder"" " string_content ") ))) ;) })) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(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\nEncodeImageHandler * GetImageEncoder(MagickInfo *magick_info)\n\n{\n  EncodeImageHandler *pEVar1;\n  \n  if (magick_info == (MagickInfo *)0x0) {\n    pEVar1 = (EncodeImageHandler *)0x0;\n  }\n  else {\n    if (magick_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    pEVar1 = magick_info->encoder;\n  }\n  return pEVar1;\n}\n\n" comment comment comment comment comment comment comment (function_definition "EncodeImageHandler * GetImageEncoder(MagickInfo *magick_info)\n\n{\n  EncodeImageHandler *pEVar1;\n  \n  if (magick_info == (MagickInfo *)0x0) {\n    pEVar1 = (EncodeImageHandler *)0x0;\n  }\n  else {\n    if (magick_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    pEVar1 = magick_info->encoder;\n  }\n  return pEVar1;\n}" type_identifier (pointer_declarator "* GetImageEncoder(MagickInfo *magick_info)" * (function_declarator "GetImageEncoder(MagickInfo *magick_info)" identifier (parameter_list "(MagickInfo *magick_info)" ( (parameter_declaration "MagickInfo *magick_info" type_identifier (pointer_declarator "*magick_info" * identifier)) )))) (compound_statement "{\n  EncodeImageHandler *pEVar1;\n  \n  if (magick_info == (MagickInfo *)0x0) {\n    pEVar1 = (EncodeImageHandler *)0x0;\n  }\n  else {\n    if (magick_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    pEVar1 = magick_info->encoder;\n  }\n  return pEVar1;\n}" { (declaration "EncodeImageHandler *pEVar1;" type_identifier (pointer_declarator "*pEVar1" * identifier) ;) (if_statement "if (magick_info == (MagickInfo *)0x0) {\n    pEVar1 = (EncodeImageHandler *)0x0;\n  }\n  else {\n    if (magick_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    pEVar1 = magick_info->encoder;\n  }" if (parenthesized_expression "(magick_info == (MagickInfo *)0x0)" ( (binary_expression "magick_info == (MagickInfo *)0x0" identifier == (cast_expression "(MagickInfo *)0x0" ( (type_descriptor "MagickInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pEVar1 = (EncodeImageHandler *)0x0;\n  }" { (expression_statement "pEVar1 = (EncodeImageHandler *)0x0;" (assignment_expression "pEVar1 = (EncodeImageHandler *)0x0" identifier = (cast_expression "(EncodeImageHandler *)0x0" ( (type_descriptor "EncodeImageHandler *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (magick_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    pEVar1 = magick_info->encoder;\n  }" else (compound_statement "{\n    if (magick_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    pEVar1 = magick_info->encoder;\n  }" { (if_statement "if (magick_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" if (parenthesized_expression "(magick_info->signature != 0xabacadab)" ( (binary_expression "magick_info->signature != 0xabacadab" (field_expression "magick_info->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" { comment (expression_statement "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");" (call_expression "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" identifier (argument_list "("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" ( (string_literal ""magick_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/magick.c"" " string_content ") , number_literal , (string_literal ""GetImageEncoder"" " string_content ") ))) ;) })) (expression_statement "pEVar1 = magick_info->encoder;" (assignment_expression "pEVar1 = magick_info->encoder" identifier = (field_expression "magick_info->encoder" identifier -> field_identifier)) ;) }))) (return_statement "return pEVar1;" return identifier ;) })))
(translation_unit "undefined4 GetImageEncoder(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 GetImageEncoder(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "GetImageEncoder(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" { (if_statement "if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x34) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x34) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" { (expression_statement "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");" (call_expression "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" identifier (argument_list "("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" ( (string_literal ""magick_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/magick.c"" " string_content ") , number_literal , (string_literal ""GetImageEncoder"" " string_content ") ))) ;) })) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 GetImageEncoder(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "GetImageEncoder(int param_1)" (identifier "GetImageEncoder") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == 0) {\n    uVar1 = 0;\n  }\n  else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" (else "else") (compound_statement "{\n    if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }\n    uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x34) != -0x54535255) {\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x34) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x34) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");\n    }" ({ "{") (expression_statement "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder");" (call_expression "__assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" (identifier "__assert_fail") (argument_list "("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,\n                    "GetImageEncoder")" (( "(") (string_literal ""magick_info->signature == MagickCoreSignature"" (" """) (string_content "magick_info->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/magick.c"" (" """) (string_content "MagickCore/magick.c") (" """)) (, ",") (number_literal "0x101") (, ",") (string_literal ""GetImageEncoder"" (" """) (string_content "GetImageEncoder") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x1c)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *var_1)

{
  type_1 *pEVar1;
  
  if (var_1 == (type_2 *)0x0) {
    pEVar1 = (type_1 *)0x0;
  }
  else {
    if (var_1->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
      var_2("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,
                    "GetImageEncoder");
    }
    pEVar1 = var_1->encoder;
  }
  return pEVar1;
}


(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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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 (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (return_statement (identifier)))))

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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
    uVar1 = 0;
  }
  else {
    if (*(int *)(param_1 + 0x34) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("magick_info->signature == MagickCoreSignature","MagickCore/magick.c",0x101,
                    "MASKED");
    }
    uVar1 = *(undefined4 *)(param_1 + 0x1c);
  }
  return uVar1;
}

