
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* DWARF original prototype: void RelinquishCompositeOptions(CompositeOptions * composite_options,
   CompositeOptions * composite_options) */

void __regparm3
RelinquishCompositeOptions
          (CompositeOptions *composite_options,CompositeOptions *composite_options_1)

{
  ChannelType CVar1;
  
  if (composite_options->channel != UndefinedChannel) {
    CVar1 = RelinquishMagickMemory(composite_options->channel);
    composite_options->channel = CVar1;
  }
  if (composite_options_1->channel != UndefinedChannel) {
    CVar1 = RelinquishMagickMemory(composite_options_1->channel);
    composite_options_1->channel = CVar1;
  }
  return;
}



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

void __regparm3 FUN_0002aa10(int *param_1,int *param_2)

{
  int iVar1;
  
  if (*param_1 != 0) {
    iVar1 = RelinquishMagickMemory(*param_1);
    *param_1 = iVar1;
  }
  if (*param_2 != 0) {
    iVar1 = RelinquishMagickMemory(*param_2);
    *param_2 = iVar1;
  }
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
MOV EAX,dword ptr [EAX]
CALL 0x0001e920
ADD EBX,0x13f5e2
TEST EAX,EAX
JZ 0x0002aa36
SUB ESP,0xc
PUSH EAX
CALL 0x0001dc90
ADD ESP,0x10
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x0002aa4a
SUB ESP,0xc
PUSH EAX
CALL 0x0001dc90
ADD ESP,0x10
MOV dword ptr [ESI],EAX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0002aa10(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0002aa10(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002aa10(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }" { (expression_statement "iVar1 = RelinquishMagickMemory(*param_1);" (assignment_expression "iVar1 = RelinquishMagickMemory(*param_1)" identifier = (call_expression "RelinquishMagickMemory(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (if_statement "if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }" if (parenthesized_expression "(*param_2 != 0)" ( (binary_expression "*param_2 != 0" (pointer_expression "*param_2" * identifier) != number_literal) )) (compound_statement "{\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }" { (expression_statement "iVar1 = RelinquishMagickMemory(*param_2);" (assignment_expression "iVar1 = RelinquishMagickMemory(*param_2)" identifier = (call_expression "RelinquishMagickMemory(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* DWARF original prototype: void RelinquishCompositeOptions(CompositeOptions * composite_options,\n   CompositeOptions * composite_options) */\n\nvoid __regparm3\nRelinquishCompositeOptions\n          (CompositeOptions *composite_options,CompositeOptions *composite_options_1)\n\n{\n  ChannelType CVar1;\n  \n  if (composite_options->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options->channel);\n    composite_options->channel = CVar1;\n  }\n  if (composite_options_1->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options_1->channel);\n    composite_options_1->channel = CVar1;\n  }\n  return;\n}\n\n" comment comment comment comment (function_definition "void __regparm3\nRelinquishCompositeOptions\n          (CompositeOptions *composite_options,CompositeOptions *composite_options_1)\n\n{\n  ChannelType CVar1;\n  \n  if (composite_options->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options->channel);\n    composite_options->channel = CVar1;\n  }\n  if (composite_options_1->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options_1->channel);\n    composite_options_1->channel = CVar1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "RelinquishCompositeOptions\n          (CompositeOptions *composite_options,CompositeOptions *composite_options_1)" identifier (parameter_list "(CompositeOptions *composite_options,CompositeOptions *composite_options_1)" ( (parameter_declaration "CompositeOptions *composite_options" type_identifier (pointer_declarator "*composite_options" * identifier)) , (parameter_declaration "CompositeOptions *composite_options_1" type_identifier (pointer_declarator "*composite_options_1" * identifier)) ))) (compound_statement "{\n  ChannelType CVar1;\n  \n  if (composite_options->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options->channel);\n    composite_options->channel = CVar1;\n  }\n  if (composite_options_1->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options_1->channel);\n    composite_options_1->channel = CVar1;\n  }\n  return;\n}" { (declaration "ChannelType CVar1;" type_identifier identifier ;) (if_statement "if (composite_options->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options->channel);\n    composite_options->channel = CVar1;\n  }" if (parenthesized_expression "(composite_options->channel != UndefinedChannel)" ( (binary_expression "composite_options->channel != UndefinedChannel" (field_expression "composite_options->channel" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    CVar1 = RelinquishMagickMemory(composite_options->channel);\n    composite_options->channel = CVar1;\n  }" { (expression_statement "CVar1 = RelinquishMagickMemory(composite_options->channel);" (assignment_expression "CVar1 = RelinquishMagickMemory(composite_options->channel)" identifier = (call_expression "RelinquishMagickMemory(composite_options->channel)" identifier (argument_list "(composite_options->channel)" ( (field_expression "composite_options->channel" identifier -> field_identifier) )))) ;) (expression_statement "composite_options->channel = CVar1;" (assignment_expression "composite_options->channel = CVar1" (field_expression "composite_options->channel" identifier -> field_identifier) = identifier) ;) })) (if_statement "if (composite_options_1->channel != UndefinedChannel) {\n    CVar1 = RelinquishMagickMemory(composite_options_1->channel);\n    composite_options_1->channel = CVar1;\n  }" if (parenthesized_expression "(composite_options_1->channel != UndefinedChannel)" ( (binary_expression "composite_options_1->channel != UndefinedChannel" (field_expression "composite_options_1->channel" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    CVar1 = RelinquishMagickMemory(composite_options_1->channel);\n    composite_options_1->channel = CVar1;\n  }" { (expression_statement "CVar1 = RelinquishMagickMemory(composite_options_1->channel);" (assignment_expression "CVar1 = RelinquishMagickMemory(composite_options_1->channel)" identifier = (call_expression "RelinquishMagickMemory(composite_options_1->channel)" identifier (argument_list "(composite_options_1->channel)" ( (field_expression "composite_options_1->channel" identifier -> field_identifier) )))) ;) (expression_statement "composite_options_1->channel = CVar1;" (assignment_expression "composite_options_1->channel = CVar1" (field_expression "composite_options_1->channel" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0002aa10(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002aa10(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002aa10(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }" { (expression_statement "iVar1 = RelinquishMagickMemory(*param_1);" (assignment_expression "iVar1 = RelinquishMagickMemory(*param_1)" identifier = (call_expression "RelinquishMagickMemory(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (if_statement "if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }" if (parenthesized_expression "(*param_2 != 0)" ( (binary_expression "*param_2 != 0" (pointer_expression "*param_2" * identifier) != number_literal) )) (compound_statement "{\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }" { (expression_statement "iVar1 = RelinquishMagickMemory(*param_2);" (assignment_expression "iVar1 = RelinquishMagickMemory(*param_2)" identifier = (call_expression "RelinquishMagickMemory(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002aa10(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002aa10(int *param_1,int *param_2)" (identifier "FUN_0002aa10") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }\n  if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*param_1 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = RelinquishMagickMemory(*param_1);\n    *param_1 = iVar1;\n  }" ({ "{") (expression_statement "iVar1 = RelinquishMagickMemory(*param_1);" (assignment_expression "iVar1 = RelinquishMagickMemory(*param_1)" (identifier "iVar1") (= "=") (call_expression "RelinquishMagickMemory(*param_1)" (identifier "RelinquishMagickMemory") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (if_statement "if (*param_2 != 0) {\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }" (if "if") (parenthesized_expression "(*param_2 != 0)" (( "(") (binary_expression "*param_2 != 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = RelinquishMagickMemory(*param_2);\n    *param_2 = iVar1;\n  }" ({ "{") (expression_statement "iVar1 = RelinquishMagickMemory(*param_2);" (assignment_expression "iVar1 = RelinquishMagickMemory(*param_2)" (identifier "iVar1") (= "=") (call_expression "RelinquishMagickMemory(*param_2)" (identifier "RelinquishMagickMemory") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* DWARF original prototype: void RelinquishCompositeOptions(CompositeOptions * composite_options,
   CompositeOptions * composite_options) */

void __regparm3
function_1
          (type_1 *composite_options,type_1 *composite_options_1)

{
  type_2 CVar1;
  
  if (composite_options->channel != var_1) {
    CVar1 = var_2(composite_options->channel);
    composite_options->channel = CVar1;
  }
  if (composite_options_1->channel != var_1) {
    CVar1 = var_2(composite_options_1->channel);
    composite_options_1->channel = CVar1;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement))))

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

void __regparm3 MASKED(int *param_1,int *param_2)

{
  int iVar1;
  
  if (*param_1 != 0) {
    iVar1 = RelinquishMagickMemory(*param_1);
    *param_1 = iVar1;
  }
  if (*param_2 != 0) {
    iVar1 = RelinquishMagickMemory(*param_2);
    *param_2 = iVar1;
  }
  return;
}

