
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

char * FileToString(char *filename,size_t extent,ExceptionInfo *exception)

{
  char *pcVar1;
  long in_FS_OFFSET;
  size_t length;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (filename == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");
  }
  LogMagickEvent(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",filename);
  if (exception != (ExceptionInfo *)0x0) {
    pcVar1 = (char *)FileToBlob(filename,extent,&length,exception);
    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
      return pcVar1;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");
}



void FileToString(long param_1,undefined8 param_2,long param_3)

{
  long in_FS_OFFSET;
  undefined1 auStack_28 [8];
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");
  }
  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);
  if (param_3 != 0) {
    FileToBlob(param_1,param_2,auStack_28,param_3);
    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");
}


PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x10
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x002d160f
MOV RBX,RDI
MOV R12,RSI
MOV RBP,RDX
MOV R9,RDI
LEA R8,[0x41fe36]
MOV ECX,0x3c0
LEA RDX,[0x434058]
LEA RSI,[0x433b42]
MOV EDI,0x8000
MOV EAX,0x0
CALL 0x0014be20
TEST RBP,RBP
JZ 0x002d162e
MOV RDX,RSP
MOV RCX,RBP
MOV RSI,R12
MOV RDI,RBX
CALL 0x0014d580
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x002d164d
ADD RSP,0x10
POP RBX
POP RBP
POP R12
RET
LEA RCX,[0x434068]
MOV EDX,0x3bf
LEA RSI,[0x433b42]
LEA RDI,[0x3fa6b0]
CALL 0x0014a360
LEA RCX,[0x434068]
MOV EDX,0x3c1
LEA RSI,[0x433b42]
LEA RDI,[0x3fa748]
CALL 0x0014a360
CALL 0x0014c5c0
(translation_unit "void FileToString(long param_1,undefined8 param_2,long param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}\n\n" (function_definition "void FileToString(long param_1,undefined8 param_2,long param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" primitive_type (function_declarator "FileToString(long param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_28 [8];" type_identifier (array_declarator "auStack_28 [8]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\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("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }" { comment (expression_statement "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");" (call_expression "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" identifier (argument_list "("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" ( (string_literal ""filename != (const char *) NULL"" " string_content ") , (string_literal ""MagickCore/string.c"" " string_content ") , number_literal , (string_literal ""FileToString"" " string_content ") ))) ;) })) (expression_statement "LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);" (call_expression "LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1)" identifier (argument_list "(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1)" ( number_literal , (string_literal ""MagickCore/string.c"" " string_content ") , (string_literal ""FileToString"" " string_content ") , number_literal , (pointer_expression "&DAT_0041fe36" & identifier) , identifier ))) ;) (if_statement "if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (expression_statement "FileToBlob(param_1,param_2,auStack_28,param_3);" (call_expression "FileToBlob(param_1,param_2,auStack_28,param_3)" identifier (argument_list "(param_1,param_2,auStack_28,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/string.c"" " string_content ") , number_literal , (string_literal ""FileToString"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nchar * FileToString(char *filename,size_t extent,ExceptionInfo *exception)\n\n{\n  char *pcVar1;\n  long in_FS_OFFSET;\n  size_t length;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",filename);\n  if (exception != (ExceptionInfo *)0x0) {\n    pcVar1 = (char *)FileToBlob(filename,extent,&length,exception);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return pcVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}\n\n" comment comment (function_definition "char * FileToString(char *filename,size_t extent,ExceptionInfo *exception)\n\n{\n  char *pcVar1;\n  long in_FS_OFFSET;\n  size_t length;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",filename);\n  if (exception != (ExceptionInfo *)0x0) {\n    pcVar1 = (char *)FileToBlob(filename,extent,&length,exception);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return pcVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" primitive_type (pointer_declarator "* FileToString(char *filename,size_t extent,ExceptionInfo *exception)" * (function_declarator "FileToString(char *filename,size_t extent,ExceptionInfo *exception)" identifier (parameter_list "(char *filename,size_t extent,ExceptionInfo *exception)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "size_t extent" primitive_type identifier) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  long in_FS_OFFSET;\n  size_t length;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",filename);\n  if (exception != (ExceptionInfo *)0x0) {\n    pcVar1 = (char *)FileToBlob(filename,extent,&length,exception);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return pcVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t length;" primitive_type identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (filename == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }" if (parenthesized_expression "(filename == (char *)0x0)" ( (binary_expression "filename == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }" { comment (expression_statement "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");" (call_expression "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" identifier (argument_list "("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" ( (string_literal ""filename != (const char *) NULL"" " string_content ") , (string_literal ""MagickCore/string.c"" " string_content ") , number_literal , (string_literal ""FileToString"" " string_content ") ))) ;) })) (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",filename)" identifier (argument_list "(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",filename)" ( identifier , (string_literal ""MagickCore/string.c"" " string_content ") , (string_literal ""FileToString"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , identifier ))) ;) (if_statement "if (exception != (ExceptionInfo *)0x0) {\n    pcVar1 = (char *)FileToBlob(filename,extent,&length,exception);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return pcVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(exception != (ExceptionInfo *)0x0)" ( (binary_expression "exception != (ExceptionInfo *)0x0" identifier != (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = (char *)FileToBlob(filename,extent,&length,exception);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return pcVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (expression_statement "pcVar1 = (char *)FileToBlob(filename,extent,&length,exception);" (assignment_expression "pcVar1 = (char *)FileToBlob(filename,extent,&length,exception)" identifier = (cast_expression "(char *)FileToBlob(filename,extent,&length,exception)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FileToBlob(filename,extent,&length,exception)" identifier (argument_list "(filename,extent,&length,exception)" ( identifier , identifier , (pointer_expression "&length" & identifier) , identifier ))))) ;) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return pcVar1;\n    }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return pcVar1;\n    }" { (return_statement "return pcVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/string.c"" " string_content ") , number_literal , (string_literal ""FileToString"" " string_content ") ))) ;) })))
(translation_unit "void FileToString(long param_1,undefined8 param_2,long param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}\n\n" (function_definition "void FileToString(long param_1,undefined8 param_2,long param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" primitive_type (function_declarator "FileToString(long param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_28 [8];" type_identifier (array_declarator "auStack_28 [8]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }" { (expression_statement "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");" (call_expression "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" identifier (argument_list "("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" ( (string_literal ""filename != (const char *) NULL"" " string_content ") , (string_literal ""MagickCore/string.c"" " string_content ") , number_literal , (string_literal ""FileToString"" " string_content ") ))) ;) })) (expression_statement "LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);" (call_expression "LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1)" identifier (argument_list "(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1)" ( number_literal , (string_literal ""MagickCore/string.c"" " string_content ") , (string_literal ""FileToString"" " string_content ") , number_literal , (pointer_expression "&DAT_0041fe36" & identifier) , identifier ))) ;) (if_statement "if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "FileToBlob(param_1,param_2,auStack_28,param_3);" (call_expression "FileToBlob(param_1,param_2,auStack_28,param_3)" identifier (argument_list "(param_1,param_2,auStack_28,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/string.c"" " string_content ") , number_literal , (string_literal ""FileToString"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FileToString(long param_1,undefined8 param_2,long param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" (primitive_type "void") (function_declarator "FileToString(long param_1,undefined8 param_2,long param_3)" (identifier "FileToString") (parameter_list "(long param_1,undefined8 param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [8];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }\n  LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);\n  if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");\n}" ({ "{") (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 auStack_28 [8];" (type_identifier "undefined1") (array_declarator "auStack_28 [8]" (identifier "auStack_28") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\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("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");\n  }" ({ "{") (expression_statement "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");" (call_expression "__assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" (identifier "__assert_fail") (argument_list "("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString")" (( "(") (string_literal ""filename != (const char *) NULL"" (" """) (string_content "filename != (const char *) NULL") (" """)) (, ",") (string_literal ""MagickCore/string.c"" (" """) (string_content "MagickCore/string.c") (" """)) (, ",") (number_literal "0x3bf") (, ",") (string_literal ""FileToString"" (" """) (string_content "FileToString") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1);" (call_expression "LogMagickEvent(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/string.c","FileToString",0x3c0,&DAT_0041fe36,param_1)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/string.c"" (" """) (string_content "MagickCore/string.c") (" """)) (, ",") (string_literal ""FileToString"" (" """) (string_content "FileToString") (" """)) (, ",") (number_literal "0x3c0") (, ",") (pointer_expression "&DAT_0041fe36" (& "&") (identifier "DAT_0041fe36")) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (param_3 != 0) {\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FileToBlob(param_1,param_2,auStack_28,param_3);\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "FileToBlob(param_1,param_2,auStack_28,param_3);" (call_expression "FileToBlob(param_1,param_2,auStack_28,param_3)" (identifier "FileToBlob") (argument_list "(param_1,param_2,auStack_28,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "auStack_28") (, ",") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/string.c"" (" """) (string_content "MagickCore/string.c") (" """)) (, ",") (number_literal "0x3c1") (, ",") (string_literal ""FileToString"" (" """) (string_content "FileToString") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

char * function_1(char *var_2,size_t extent,type_1 *var_5)

{
  char *pcVar1;
  long var_1;
  size_t length;
  long var_7;
  
  var_7 = *(long *)(var_1 + 0x28);
  if (var_2 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"FileToString");
  }
  var_4(TraceEvent,"MagickCore/string.c","FileToString",0x3c0,"%s",var_2);
  if (var_5 != (type_1 *)0x0) {
    pcVar1 = (char *)var_6(var_2,extent,&length,var_5);
    if (var_7 == *(long *)(var_1 + 0x28)) {
      return pcVar1;
    }
                    /* WARNING: Subroutine does not return */
    var_8();
  }
                    /* WARNING: Subroutine does not return */
  var_3("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"FileToString");
}


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

void MASKED(long param_1,undefined8 param_2,long param_3)

{
  long in_FS_OFFSET;
  undefined1 auStack_28 [8];
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("filename != (const char *) NULL","MagickCore/string.c",0x3bf,"MASKED");
  }
  LogMagickEvent(0x8000,"MagickCore/string.c","MASKED",0x3c0,&DAT_0041fe36,param_1);
  if (param_3 != 0) {
    FileToBlob(param_1,param_2,auStack_28,param_3);
    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/string.c",0x3c1,"MASKED");
}

