
/* 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 "LogEventType": Some values do not have unique names */

char * GetNextImageProfile(Image *image)

{
  char *pcVar1;
  
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");
  }
  if (image->signature == 0xabacadab) {
    if (image->debug != MagickFalse) {
      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",
                     image->filename);
    }
    if ((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0) {
      pcVar1 = (char *)0x0;
    }
    else {
      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);
    }
    return pcVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,
                "GetNextImageProfile");
}



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

undefined4 GetNextImageProfile(int param_1)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");
  }
  if (*(int *)(param_1 + 0x3344) == -0x54535255) {
    if (*(int *)(param_1 + 0x3328) != 0) {
      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,
                     param_1 + 0x318);
    }
    if (*(int *)(param_1 + 0x1d8) == 0) {
      uVar1 = 0;
    }
    else {
      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,
                "GetNextImageProfile");
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2aedd9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x0012a2ac
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x0012a2cb
MOV EAX,dword ptr [ESI + 0x3328]
TEST EAX,EAX
JNZ 0x0012a270
MOV EAX,dword ptr [ESI + 0x1d8]
TEST EAX,EAX
JZ 0x0012a2a8
SUB ESP,0xc
PUSH EAX
CALL 0x00031d60
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffeeae4c]
PUSH 0x12f
PUSH EAX
LEA EAX,[EBX + 0xffeeab94]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x0012a252
XOR EAX,EAX
JMP 0x0012a268
LEA EAX,[EBX + 0xffeeae60]
PUSH EAX
LEA EAX,[EBX + 0xffeeab94]
PUSH 0x12c
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffeeae60]
PUSH EAX
LEA EAX,[EBX + 0xffeeab94]
PUSH 0x12d
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 GetNextImageProfile(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}\n\n" comment (function_definition "undefined4 GetNextImageProfile(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" type_identifier (function_declarator "GetNextImageProfile(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                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\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("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" identifier (argument_list "("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/profile.c"" " string_content ") , number_literal , (string_literal ""GetNextImageProfile"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/profile.c"" " string_content ") , (string_literal ""GetNextImageProfile"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1d8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1d8) == 0" (pointer_expression "*(int *)(param_1 + 0x1d8)" * (cast_expression "(int *)(param_1 + 0x1d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d8)" ( (binary_expression "param_1 + 0x1d8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar1 = 0;\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" else (compound_statement "{\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" { (expression_statement "uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));" (assignment_expression "uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8))" identifier = (call_expression "GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8))" identifier (argument_list "(*(int *)(param_1 + 0x1d8))" ( (pointer_expression "*(int *)(param_1 + 0x1d8)" * (cast_expression "(int *)(param_1 + 0x1d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d8)" ( (binary_expression "param_1 + 0x1d8" identifier + number_literal) )))) )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/profile.c"" " string_content ") , number_literal , (string_literal ""GetNextImageProfile"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nchar * GetNextImageProfile(Image *image)\n\n{\n  char *pcVar1;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);\n    }\n    if ((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}\n\n" comment comment comment comment comment comment comment (function_definition "char * GetNextImageProfile(Image *image)\n\n{\n  char *pcVar1;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);\n    }\n    if ((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" primitive_type (pointer_declarator "* GetNextImageProfile(Image *image)" * (function_declarator "GetNextImageProfile(Image *image)" identifier (parameter_list "(Image *image)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);\n    }\n    if ((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" identifier (argument_list "("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/profile.c"" " string_content ") , number_literal , (string_literal ""GetNextImageProfile"" " string_content ") ))) ;) })) (if_statement "if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);\n    }\n    if ((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(image->signature == 0xabacadab)" ( (binary_expression "image->signature == 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);\n    }\n    if ((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }\n    return pcVar1;\n  }" { (if_statement "if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);\n    }" if (parenthesized_expression "(image->debug != MagickFalse)" ( (binary_expression "image->debug != MagickFalse" (field_expression "image->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);\n    }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",\n                     image->filename)" ( identifier , (string_literal ""MagickCore/profile.c"" " string_content ") , (string_literal ""GetNextImageProfile"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if ((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }" if (parenthesized_expression "((SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0)" ( (binary_expression "(SplayTreeInfo *)image->profiles == (SplayTreeInfo *)0x0" (cast_expression "(SplayTreeInfo *)image->profiles" ( (type_descriptor "SplayTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "image->profiles" identifier -> field_identifier)) == (cast_expression "(SplayTreeInfo *)0x0" ( (type_descriptor "SplayTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar1 = (char *)0x0;\n    }" { (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }" else (compound_statement "{\n      pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);\n    }" { (expression_statement "pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles);" (assignment_expression "pcVar1 = (char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles)" identifier = (cast_expression "(char *)GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextKeyInSplayTree((SplayTreeInfo *)image->profiles)" identifier (argument_list "((SplayTreeInfo *)image->profiles)" ( (cast_expression "(SplayTreeInfo *)image->profiles" ( (type_descriptor "SplayTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "image->profiles" identifier -> field_identifier)) ))))) ;) }))) (return_statement "return pcVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/profile.c"" " string_content ") , number_literal , (string_literal ""GetNextImageProfile"" " string_content ") ))) ;) })))
(translation_unit "undefined4 GetNextImageProfile(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}\n\n" (function_definition "undefined4 GetNextImageProfile(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" type_identifier (function_declarator "GetNextImageProfile(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                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" identifier (argument_list "("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/profile.c"" " string_content ") , number_literal , (string_literal ""GetNextImageProfile"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/profile.c"" " string_content ") , (string_literal ""GetNextImageProfile"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1d8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1d8) == 0" (pointer_expression "*(int *)(param_1 + 0x1d8)" * (cast_expression "(int *)(param_1 + 0x1d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d8)" ( (binary_expression "param_1 + 0x1d8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar1 = 0;\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" else (compound_statement "{\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" { (expression_statement "uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));" (assignment_expression "uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8))" identifier = (call_expression "GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8))" identifier (argument_list "(*(int *)(param_1 + 0x1d8))" ( (pointer_expression "*(int *)(param_1 + 0x1d8)" * (cast_expression "(int *)(param_1 + 0x1d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d8)" ( (binary_expression "param_1 + 0x1d8" identifier + number_literal) )))) )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/profile.c"" " string_content ") , number_literal , (string_literal ""GetNextImageProfile"" " string_content ") ))) ;) })))
(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 (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 , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 GetNextImageProfile(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" (type_identifier "undefined4") (function_declarator "GetNextImageProfile(int param_1)" (identifier "GetNextImageProfile") (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                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\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("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/profile.c"" (" """) (string_content "MagickCore/profile.c") (" """)) (, ",") (number_literal "300") (, ",") (string_literal ""GetNextImageProfile"" (" """) (string_content "GetNextImageProfile") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" (* "*") (cast_expression "(int *)(param_1 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3344)" (( "(") (binary_expression "param_1 + 0x3344" (identifier "param_1") (+ "+") (number_literal "0x3344")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }\n    if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }\n    return uVar1;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" (* "*") (cast_expression "(int *)(param_1 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3328)" (( "(") (binary_expression "param_1 + 0x3328" (identifier "param_1") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/profile.c","GetNextImageProfile",0x12f,&DAT_002b6e4e,\n                     param_1 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/profile.c"" (" """) (string_content "MagickCore/profile.c") (" """)) (, ",") (string_literal ""GetNextImageProfile"" (" """) (string_content "GetNextImageProfile") (" """)) (, ",") (number_literal "0x12f") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x1d8) == 0) {\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1d8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1d8) == 0" (pointer_expression "*(int *)(param_1 + 0x1d8)" (* "*") (cast_expression "(int *)(param_1 + 0x1d8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1d8)" (( "(") (binary_expression "param_1 + 0x1d8" (identifier "param_1") (+ "+") (number_literal "0x1d8")) () ")")))) (== "==") (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      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" (else "else") (compound_statement "{\n      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));\n    }" ({ "{") (expression_statement "uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));" (assignment_expression "uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8))" (identifier "uVar1") (= "=") (call_expression "GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8))" (identifier "GetNextKeyInSplayTree") (argument_list "(*(int *)(param_1 + 0x1d8))" (( "(") (pointer_expression "*(int *)(param_1 + 0x1d8)" (* "*") (cast_expression "(int *)(param_1 + 0x1d8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1d8)" (( "(") (binary_expression "param_1 + 0x1d8" (identifier "param_1") (+ "+") (number_literal "0x1d8")) () ")")))) () ")")))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,\n                "GetNextImageProfile")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/profile.c"" (" """) (string_content "MagickCore/profile.c") (" """)) (, ",") (number_literal "0x12d") (, ",") (string_literal ""GetNextImageProfile"" (" """) (string_content "GetNextImageProfile") (" """)) () ")"))) (; ";")) (} "}")))

/* 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 "LogEventType": Some values do not have unique names */

char * function_1(type_1 *var_1)

{
  char *pcVar1;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image != (Image *) NULL","MagickCore/profile.c",300,"GetNextImageProfile");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(TraceEvent,"MagickCore/profile.c","GetNextImageProfile",0x12f,"%s",
                     var_1->filename);
    }
    if ((type_2 *)var_1->profiles == (type_2 *)0x0) {
      pcVar1 = (char *)0x0;
    }
    else {
      pcVar1 = (char *)var_5((type_2 *)var_1->profiles);
    }
    return pcVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_2("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,
                "GetNextImageProfile");
}


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

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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/profile.c",300,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) == -0x54535255) {
    if (*(int *)(param_1 + 0x3328) != 0) {
      LogMagickEvent(0x8000,"MagickCore/profile.c","MASKED",0x12f,&DAT_002b6e4e,
                     param_1 + 0x318);
    }
    if (*(int *)(param_1 + 0x1d8) == 0) {
      uVar1 = 0;
    }
    else {
      uVar1 = GetNextKeyInSplayTree(*(int *)(param_1 + 0x1d8));
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/profile.c",0x12d,
                "MASKED");
}

