
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */

PixelChannelMap * ClonePixelChannelMap(PixelChannelMap *channel_map)

{
  PixelChannelMap *pPVar1;
  int iVar2;
  PixelChannelMap *pPVar3;
  byte bVar4;
  
  bVar4 = 0;
  if (channel_map != (PixelChannelMap *)0x0) {
    pPVar1 = AcquirePixelChannelMap();
    if (pPVar1 != (PixelChannelMap *)0x0) {
      pPVar3 = pPVar1;
      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {
        pPVar3->channel = channel_map->channel;
        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);
        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);
      }
    }
    return pPVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,
                "ClonePixelChannelMap");
}



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

void ClonePixelChannelMap(undefined4 *param_1)

{
  undefined4 *puVar1;
  int iVar2;
  byte bVar3;
  
  bVar3 = 0;
  if (param_1 != (undefined4 *)0x0) {
    puVar1 = (undefined4 *)AcquirePixelChannelMap();
    if (puVar1 != (undefined4 *)0x0) {
      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {
        *puVar1 = *param_1;
        param_1 = param_1 + (uint)bVar3 * -2 + 1;
        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,
                "ClonePixelChannelMap");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00039d70
ADD EBX,0x2fa7f4
TEST ESI,ESI
JZ 0x0012382c
CALL 0x00030ae0
TEST EAX,EAX
JZ 0x00123828
MOV ECX,0xc0
MOV EDI,EAX
MOVSD.REP ES:EDI,ESI
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xffee25ac]
PUSH EAX
LEA EAX,[EBX + 0xffee19fd]
PUSH 0x8a
PUSH EAX
LEA EAX,[EBX + 0xffee25dc]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ClonePixelChannelMap(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}\n\n" comment (function_definition "void ClonePixelChannelMap(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" primitive_type (function_declarator "ClonePixelChannelMap(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }" { (expression_statement "puVar1 = (undefined4 *)AcquirePixelChannelMap();" (assignment_expression "puVar1 = (undefined4 *)AcquirePixelChannelMap()" identifier = (cast_expression "(undefined4 *)AcquirePixelChannelMap()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquirePixelChannelMap()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }" { (for_statement "for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }" for ( (assignment_expression "iVar2 = 0xc0" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }" { (expression_statement "*puVar1 = *param_1;" (assignment_expression "*puVar1 = *param_1" (pointer_expression "*puVar1" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar3 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar3 * -2 + 1" (binary_expression "param_1 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar1 = puVar1 + (uint)bVar3 * -2 + 1;" (assignment_expression "puVar1 = puVar1 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "puVar1 + (uint)bVar3 * -2 + 1" (binary_expression "puVar1 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) })) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");" (call_expression "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" identifier (argument_list "("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" ( (string_literal ""channel_map != (PixelChannelMap *) NULL"" " string_content ") , (string_literal ""MagickCore/pixel.c"" " string_content ") , number_literal , (string_literal ""ClonePixelChannelMap"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n\nPixelChannelMap * ClonePixelChannelMap(PixelChannelMap *channel_map)\n\n{\n  PixelChannelMap *pPVar1;\n  int iVar2;\n  PixelChannelMap *pPVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  if (channel_map != (PixelChannelMap *)0x0) {\n    pPVar1 = AcquirePixelChannelMap();\n    if (pPVar1 != (PixelChannelMap *)0x0) {\n      pPVar3 = pPVar1;\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }\n    }\n    return pPVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}\n\n" comment comment (function_definition "PixelChannelMap * ClonePixelChannelMap(PixelChannelMap *channel_map)\n\n{\n  PixelChannelMap *pPVar1;\n  int iVar2;\n  PixelChannelMap *pPVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  if (channel_map != (PixelChannelMap *)0x0) {\n    pPVar1 = AcquirePixelChannelMap();\n    if (pPVar1 != (PixelChannelMap *)0x0) {\n      pPVar3 = pPVar1;\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }\n    }\n    return pPVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" type_identifier (pointer_declarator "* ClonePixelChannelMap(PixelChannelMap *channel_map)" * (function_declarator "ClonePixelChannelMap(PixelChannelMap *channel_map)" identifier (parameter_list "(PixelChannelMap *channel_map)" ( (parameter_declaration "PixelChannelMap *channel_map" type_identifier (pointer_declarator "*channel_map" * identifier)) )))) (compound_statement "{\n  PixelChannelMap *pPVar1;\n  int iVar2;\n  PixelChannelMap *pPVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  if (channel_map != (PixelChannelMap *)0x0) {\n    pPVar1 = AcquirePixelChannelMap();\n    if (pPVar1 != (PixelChannelMap *)0x0) {\n      pPVar3 = pPVar1;\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }\n    }\n    return pPVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" { (declaration "PixelChannelMap *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "PixelChannelMap *pPVar3;" type_identifier (pointer_declarator "*pPVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (if_statement "if (channel_map != (PixelChannelMap *)0x0) {\n    pPVar1 = AcquirePixelChannelMap();\n    if (pPVar1 != (PixelChannelMap *)0x0) {\n      pPVar3 = pPVar1;\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }\n    }\n    return pPVar1;\n  }" if (parenthesized_expression "(channel_map != (PixelChannelMap *)0x0)" ( (binary_expression "channel_map != (PixelChannelMap *)0x0" identifier != (cast_expression "(PixelChannelMap *)0x0" ( (type_descriptor "PixelChannelMap *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pPVar1 = AcquirePixelChannelMap();\n    if (pPVar1 != (PixelChannelMap *)0x0) {\n      pPVar3 = pPVar1;\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }\n    }\n    return pPVar1;\n  }" { (expression_statement "pPVar1 = AcquirePixelChannelMap();" (assignment_expression "pPVar1 = AcquirePixelChannelMap()" identifier = (call_expression "AcquirePixelChannelMap()" identifier (argument_list "()" ( )))) ;) (if_statement "if (pPVar1 != (PixelChannelMap *)0x0) {\n      pPVar3 = pPVar1;\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }\n    }" if (parenthesized_expression "(pPVar1 != (PixelChannelMap *)0x0)" ( (binary_expression "pPVar1 != (PixelChannelMap *)0x0" identifier != (cast_expression "(PixelChannelMap *)0x0" ( (type_descriptor "PixelChannelMap *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pPVar3 = pPVar1;\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }\n    }" { (expression_statement "pPVar3 = pPVar1;" (assignment_expression "pPVar3 = pPVar1" identifier = identifier) ;) (for_statement "for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }" for ( (assignment_expression "iVar2 = 0xc0" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        pPVar3->channel = channel_map->channel;\n        channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);\n        pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);\n      }" { (expression_statement "pPVar3->channel = channel_map->channel;" (assignment_expression "pPVar3->channel = channel_map->channel" (field_expression "pPVar3->channel" identifier -> field_identifier) = (field_expression "channel_map->channel" identifier -> field_identifier)) ;) (expression_statement "channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4);" (assignment_expression "channel_map = (PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4)" identifier = (cast_expression "(PixelChannelMap *)((int)channel_map + (uint)bVar4 * -8 + 4)" ( (type_descriptor "PixelChannelMap *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)channel_map + (uint)bVar4 * -8 + 4)" ( (binary_expression "(int)channel_map + (uint)bVar4 * -8 + 4" (binary_expression "(int)channel_map + (uint)bVar4 * -8" (cast_expression "(int)channel_map" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4);" (assignment_expression "pPVar3 = (PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4)" identifier = (cast_expression "(PixelChannelMap *)((int)pPVar3 + (uint)bVar4 * -8 + 4)" ( (type_descriptor "PixelChannelMap *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pPVar3 + (uint)bVar4 * -8 + 4)" ( (binary_expression "(int)pPVar3 + (uint)bVar4 * -8 + 4" (binary_expression "(int)pPVar3 + (uint)bVar4 * -8" (cast_expression "(int)pPVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) })) (return_statement "return pPVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");" (call_expression "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" identifier (argument_list "("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" ( (string_literal ""channel_map != (PixelChannelMap *) NULL"" " string_content ") , (string_literal ""MagickCore/pixel.c"" " string_content ") , number_literal , (string_literal ""ClonePixelChannelMap"" " string_content ") ))) ;) })))
(translation_unit "void ClonePixelChannelMap(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    \n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}\n\n" (function_definition "void ClonePixelChannelMap(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    \n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" primitive_type (function_declarator "ClonePixelChannelMap(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    \n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }" { (expression_statement "puVar1 = (undefined4 *)AcquirePixelChannelMap();" (assignment_expression "puVar1 = (undefined4 *)AcquirePixelChannelMap()" identifier = (cast_expression "(undefined4 *)AcquirePixelChannelMap()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquirePixelChannelMap()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }" { (for_statement "for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }" for ( (assignment_expression "iVar2 = 0xc0" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }" { (expression_statement "*puVar1 = *param_1;" (assignment_expression "*puVar1 = *param_1" (pointer_expression "*puVar1" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar3 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar3 * -2 + 1" (binary_expression "param_1 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar1 = puVar1 + (uint)bVar3 * -2 + 1;" (assignment_expression "puVar1 = puVar1 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "puVar1 + (uint)bVar3 * -2 + 1" (binary_expression "puVar1 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) })) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");" (call_expression "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" identifier (argument_list "("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" ( (string_literal ""channel_map != (PixelChannelMap *) NULL"" " string_content ") , (string_literal ""MagickCore/pixel.c"" " string_content ") , number_literal , (string_literal ""ClonePixelChannelMap"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) })) (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 ClonePixelChannelMap(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    \n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" (primitive_type "void") (function_declarator "ClonePixelChannelMap(undefined4 *param_1)" (identifier "ClonePixelChannelMap") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }\n                    \n  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" (identifier "bVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)AcquirePixelChannelMap();\n    if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }\n    return;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)AcquirePixelChannelMap();" (assignment_expression "puVar1 = (undefined4 *)AcquirePixelChannelMap()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)AcquirePixelChannelMap()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquirePixelChannelMap()" (identifier "AcquirePixelChannelMap") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }\n    }" ({ "{") (for_statement "for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }" (for "for") (( "(") (assignment_expression "iVar2 = 0xc0" (identifier "iVar2") (= "=") (number_literal "0xc0")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        *puVar1 = *param_1;\n        param_1 = param_1 + (uint)bVar3 * -2 + 1;\n        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;\n      }" ({ "{") (expression_statement "*puVar1 = *param_1;" (assignment_expression "*puVar1 = *param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + (uint)bVar3 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar3 * -2 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + (uint)bVar3 * -2 + 1" (binary_expression "param_1 + (uint)bVar3 * -2" (identifier "param_1") (+ "+") (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = puVar1 + (uint)bVar3 * -2 + 1;" (assignment_expression "puVar1 = puVar1 + (uint)bVar3 * -2 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + (uint)bVar3 * -2 + 1" (binary_expression "puVar1 + (uint)bVar3 * -2" (identifier "puVar1") (+ "+") (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap");" (call_expression "__assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" (identifier "__assert_fail") (argument_list "("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,\n                "ClonePixelChannelMap")" (( "(") (string_literal ""channel_map != (PixelChannelMap *) NULL"" (" """) (string_content "channel_map != (PixelChannelMap *) NULL") (" """)) (, ",") (string_literal ""MagickCore/pixel.c"" (" """) (string_content "MagickCore/pixel.c") (" """)) (, ",") (number_literal "0x8a") (, ",") (string_literal ""ClonePixelChannelMap"" (" """) (string_content "ClonePixelChannelMap") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */

type_1 * function_1(type_1 *var_1)

{
  type_1 *var_3;
  int var_4;
  type_1 *pPVar3;
  type_2 bVar4;
  
  bVar4 = 0;
  if (var_1 != (type_1 *)0x0) {
    var_3 = var_2();
    if (var_3 != (type_1 *)0x0) {
      pPVar3 = var_3;
      for (var_4 = 0xc0; var_4 != 0; var_4 = var_4 + -1) {
        pPVar3->channel = var_1->channel;
        var_1 = (type_1 *)((int)var_1 + (type_3)bVar4 * -8 + 4);
        pPVar3 = (type_1 *)((int)pPVar3 + (type_3)bVar4 * -8 + 4);
      }
    }
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_5("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,
                "ClonePixelChannelMap");
}


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

{
  undefined4 *puVar1;
  int iVar2;
  byte bVar3;
  
  bVar3 = 0;
  if (param_1 != (undefined4 *)0x0) {
    puVar1 = (undefined4 *)AcquirePixelChannelMap();
    if (puVar1 != (undefined4 *)0x0) {
      for (iVar2 = 0xc0; iVar2 != 0; iVar2 = iVar2 + -1) {
        *puVar1 = *param_1;
        param_1 = param_1 + (uint)bVar3 * -2 + 1;
        puVar1 = puVar1 + (uint)bVar3 * -2 + 1;
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("channel_map != (PixelChannelMap *) NULL","MagickCore/pixel.c",0x8a,
                "MASKED");
}

