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

XMLTreeInfo * SetXMLTreeContent(XMLTreeInfo *xml_info,char *content)

{
  char *pcVar1;
  
  if (xml_info == (XMLTreeInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,
                  "SetXMLTreeContent");
  }
  if ((xml_info->signature != 0xabacadab) && (xml_info[1].ordered != (XMLTreeInfo *)0xabacadab)) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"
                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");
  }
  if (xml_info->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");
  }
  if (xml_info->content != (char *)0x0) {
    pcVar1 = DestroyString(xml_info->content);
    xml_info->content = pcVar1;
  }
  pcVar1 = ConstantString(content);
  xml_info->content = pcVar1;
  return xml_info;
}



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

int SetXMLTreeContent(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,
                  "SetXMLTreeContent");
  }
  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"
                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");
  }
  if (*(int *)(param_1 + 0x24) != 0) {
    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");
  }
  if (*(int *)(param_1 + 8) != 0) {
    uVar1 = DestroyString(*(int *)(param_1 + 8));
    *(undefined4 *)(param_1 + 8) = uVar1;
  }
  uVar1 = ConstantString(param_2);
  *(undefined4 *)(param_1 + 8) = uVar1;
  return param_1;
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x20f389
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x001c9d04
CMP dword ptr [ESI + 0x2c],0xabacadab
JZ 0x001c9c9e
CMP dword ptr [ESI + 0x4c],0xabacadab
JNZ 0x001c9d23
MOV EAX,dword ptr [ESI + 0x24]
TEST EAX,EAX
JNZ 0x001c9cd8
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x001c9cbb
SUB ESP,0xc
PUSH EAX
CALL 0x00032950
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x00033ab8
MOV dword ptr [ESI + 0x8],EAX
ADD ESP,0x14
MOV EAX,ESI
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xffec976c]
SUB ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffef28e0]
PUSH 0xa1f
PUSH EAX
LEA EAX,[EBX + 0xffef2620]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x001c9ca5
LEA EAX,[EBX + 0xffef28f4]
PUSH EAX
LEA EAX,[EBX + 0xffef2620]
PUSH 0xa1b
PUSH EAX
LEA EAX,[EBX + 0xffef2bf0]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffef28f4]
PUSH EAX
LEA EAX,[EBX + 0xffef2620]
PUSH 0xa1d
PUSH EAX
LEA EAX,[EBX + 0xffef2c14]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint SetXMLTreeContent(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}\n\n" comment (function_definition "int SetXMLTreeContent(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}" primitive_type (function_declarator "SetXMLTreeContent(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\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("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }" { comment (expression_statement "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");" (call_expression "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" identifier (argument_list "("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" ( (string_literal ""xml_info != (XMLTreeInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , number_literal , (string_literal ""SetXMLTreeContent"" " string_content ") ))) ;) })) (if_statement "if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255))" ( (binary_expression "(*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)" (parenthesized_expression "(*(int *)(param_1 + 0x2c) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x2c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x4c) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x4c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" { comment (expression_statement "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");" (call_expression "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" identifier (argument_list "("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" ( (string_literal ""(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"" " string_content ") , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , number_literal , (string_literal ""SetXMLTreeContent"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) != 0)" ( (binary_expression "*(int *)(param_1 + 0x24) != 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");" (call_expression "LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" identifier (argument_list "(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" ( number_literal , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , (string_literal ""SetXMLTreeContent"" " string_content ") , number_literal , (string_literal ""..."" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" { (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 8));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 8))" identifier = (call_expression "DestroyString(*(int *)(param_1 + 8))" identifier (argument_list "(*(int *)(param_1 + 8))" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar1 = ConstantString(param_2);" (assignment_expression "uVar1 = ConstantString(param_2)" identifier = (call_expression "ConstantString(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nXMLTreeInfo * SetXMLTreeContent(XMLTreeInfo *xml_info,char *content)\n\n{\n  char *pcVar1;\n  \n  if (xml_info == (XMLTreeInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((xml_info->signature != 0xabacadab) && (xml_info[1].ordered != (XMLTreeInfo *)0xabacadab)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (xml_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (xml_info->content != (char *)0x0) {\n    pcVar1 = DestroyString(xml_info->content);\n    xml_info->content = pcVar1;\n  }\n  pcVar1 = ConstantString(content);\n  xml_info->content = pcVar1;\n  return xml_info;\n}\n\n" comment comment comment (function_definition "XMLTreeInfo * SetXMLTreeContent(XMLTreeInfo *xml_info,char *content)\n\n{\n  char *pcVar1;\n  \n  if (xml_info == (XMLTreeInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((xml_info->signature != 0xabacadab) && (xml_info[1].ordered != (XMLTreeInfo *)0xabacadab)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (xml_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (xml_info->content != (char *)0x0) {\n    pcVar1 = DestroyString(xml_info->content);\n    xml_info->content = pcVar1;\n  }\n  pcVar1 = ConstantString(content);\n  xml_info->content = pcVar1;\n  return xml_info;\n}" type_identifier (pointer_declarator "* SetXMLTreeContent(XMLTreeInfo *xml_info,char *content)" * (function_declarator "SetXMLTreeContent(XMLTreeInfo *xml_info,char *content)" identifier (parameter_list "(XMLTreeInfo *xml_info,char *content)" ( (parameter_declaration "XMLTreeInfo *xml_info" type_identifier (pointer_declarator "*xml_info" * identifier)) , (parameter_declaration "char *content" primitive_type (pointer_declarator "*content" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (xml_info == (XMLTreeInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((xml_info->signature != 0xabacadab) && (xml_info[1].ordered != (XMLTreeInfo *)0xabacadab)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (xml_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (xml_info->content != (char *)0x0) {\n    pcVar1 = DestroyString(xml_info->content);\n    xml_info->content = pcVar1;\n  }\n  pcVar1 = ConstantString(content);\n  xml_info->content = pcVar1;\n  return xml_info;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (xml_info == (XMLTreeInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }" if (parenthesized_expression "(xml_info == (XMLTreeInfo *)0x0)" ( (binary_expression "xml_info == (XMLTreeInfo *)0x0" identifier == (cast_expression "(XMLTreeInfo *)0x0" ( (type_descriptor "XMLTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }" { comment (expression_statement "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");" (call_expression "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" identifier (argument_list "("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" ( (string_literal ""xml_info != (XMLTreeInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , number_literal , (string_literal ""SetXMLTreeContent"" " string_content ") ))) ;) })) (if_statement "if ((xml_info->signature != 0xabacadab) && (xml_info[1].ordered != (XMLTreeInfo *)0xabacadab)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" if (parenthesized_expression "((xml_info->signature != 0xabacadab) && (xml_info[1].ordered != (XMLTreeInfo *)0xabacadab))" ( (binary_expression "(xml_info->signature != 0xabacadab) && (xml_info[1].ordered != (XMLTreeInfo *)0xabacadab)" (parenthesized_expression "(xml_info->signature != 0xabacadab)" ( (binary_expression "xml_info->signature != 0xabacadab" (field_expression "xml_info->signature" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(xml_info[1].ordered != (XMLTreeInfo *)0xabacadab)" ( (binary_expression "xml_info[1].ordered != (XMLTreeInfo *)0xabacadab" (field_expression "xml_info[1].ordered" (subscript_expression "xml_info[1]" identifier [ number_literal ]) . field_identifier) != (cast_expression "(XMLTreeInfo *)0xabacadab" ( (type_descriptor "XMLTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" { comment (expression_statement "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");" (call_expression "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" identifier (argument_list "("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" ( (string_literal ""(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"" " string_content ") , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , number_literal , (string_literal ""SetXMLTreeContent"" " string_content ") ))) ;) })) (if_statement "if (xml_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" if (parenthesized_expression "(xml_info->debug != MagickFalse)" ( (binary_expression "xml_info->debug != MagickFalse" (field_expression "xml_info->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" identifier (argument_list "(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" ( identifier , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , (string_literal ""SetXMLTreeContent"" " string_content ") , number_literal , (string_literal ""..."" " string_content ") ))) ;) })) (if_statement "if (xml_info->content != (char *)0x0) {\n    pcVar1 = DestroyString(xml_info->content);\n    xml_info->content = pcVar1;\n  }" if (parenthesized_expression "(xml_info->content != (char *)0x0)" ( (binary_expression "xml_info->content != (char *)0x0" (field_expression "xml_info->content" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = DestroyString(xml_info->content);\n    xml_info->content = pcVar1;\n  }" { (expression_statement "pcVar1 = DestroyString(xml_info->content);" (assignment_expression "pcVar1 = DestroyString(xml_info->content)" identifier = (call_expression "DestroyString(xml_info->content)" identifier (argument_list "(xml_info->content)" ( (field_expression "xml_info->content" identifier -> field_identifier) )))) ;) (expression_statement "xml_info->content = pcVar1;" (assignment_expression "xml_info->content = pcVar1" (field_expression "xml_info->content" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pcVar1 = ConstantString(content);" (assignment_expression "pcVar1 = ConstantString(content)" identifier = (call_expression "ConstantString(content)" identifier (argument_list "(content)" ( identifier )))) ;) (expression_statement "xml_info->content = pcVar1;" (assignment_expression "xml_info->content = pcVar1" (field_expression "xml_info->content" identifier -> field_identifier) = identifier) ;) (return_statement "return xml_info;" return identifier ;) })))
(translation_unit "int SetXMLTreeContent(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}\n\n" (function_definition "int SetXMLTreeContent(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}" primitive_type (function_declarator "SetXMLTreeContent(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }" { (expression_statement "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");" (call_expression "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" identifier (argument_list "("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" ( (string_literal ""xml_info != (XMLTreeInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , number_literal , (string_literal ""SetXMLTreeContent"" " string_content ") ))) ;) })) (if_statement "if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255))" ( (binary_expression "(*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)" (parenthesized_expression "(*(int *)(param_1 + 0x2c) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x2c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x4c) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x4c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" { (expression_statement "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");" (call_expression "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" identifier (argument_list "("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" ( (string_literal ""(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"" " string_content ") , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , number_literal , (string_literal ""SetXMLTreeContent"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) != 0)" ( (binary_expression "*(int *)(param_1 + 0x24) != 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");" (call_expression "LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" identifier (argument_list "(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" ( number_literal , (string_literal ""MagickCore/xml-tree.c"" " string_content ") , (string_literal ""SetXMLTreeContent"" " string_content ") , number_literal , (string_literal ""..."" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" { (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 8));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 8))" identifier = (call_expression "DestroyString(*(int *)(param_1 + 8))" identifier (argument_list "(*(int *)(param_1 + 8))" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar1 = ConstantString(param_2);" (assignment_expression "uVar1 = ConstantString(param_2)" identifier = (call_expression "ConstantString(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 , (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 { (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) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int SetXMLTreeContent(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}" (primitive_type "int") (function_declarator "SetXMLTreeContent(int param_1,undefined4 param_2)" (identifier "SetXMLTreeContent") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }\n  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }\n  if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }\n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  uVar1 = ConstantString(param_2);\n  *(undefined4 *)(param_1 + 8) = uVar1;\n  return param_1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\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("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");\n  }" ({ "{") (expression_statement "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent");" (call_expression "__assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" (identifier "__assert_fail") (argument_list "("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,\n                  "SetXMLTreeContent")" (( "(") (string_literal ""xml_info != (XMLTreeInfo *) NULL"" (" """) (string_content "xml_info != (XMLTreeInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/xml-tree.c"" (" """) (string_content "MagickCore/xml-tree.c") (" """)) (, ",") (number_literal "0xa1b") (, ",") (string_literal ""SetXMLTreeContent"" (" """) (string_content "SetXMLTreeContent") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255))" (( "(") (binary_expression "(*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)" (parenthesized_expression "(*(int *)(param_1 + 0x2c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x4c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");\n  }" ({ "{") (expression_statement "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");" (call_expression "__assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" (identifier "__assert_fail") (argument_list "("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"\n                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent")" (( "(") (string_literal ""(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"" (" """) (string_content "(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)") (" """)) (, ",") (string_literal ""MagickCore/xml-tree.c"" (" """) (string_content "MagickCore/xml-tree.c") (" """)) (, ",") (number_literal "0xa1d") (, ",") (string_literal ""SetXMLTreeContent"" (" """) (string_content "SetXMLTreeContent") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x24) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x24) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) != 0" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");" (call_expression "LogMagickEvent(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...")" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/xml-tree.c"" (" """) (string_content "MagickCore/xml-tree.c") (" """)) (, ",") (string_literal ""SetXMLTreeContent"" (" """) (string_content "SetXMLTreeContent") (" """)) (, ",") (number_literal "0xa1f") (, ",") (string_literal ""..."" (" """) (string_content "...") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 8));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 8))" (identifier "uVar1") (= "=") (call_expression "DestroyString(*(int *)(param_1 + 8))" (identifier "DestroyString") (argument_list "(*(int *)(param_1 + 8))" (( "(") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "uVar1 = ConstantString(param_2);" (assignment_expression "uVar1 = ConstantString(param_2)" (identifier "uVar1") (= "=") (call_expression "ConstantString(param_2)" (identifier "ConstantString") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *var_1,char *content)

{
  char *pcVar1;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,
                  "SetXMLTreeContent");
  }
  if ((var_1->signature != 0xabacadab) && (var_1[1].ordered != (type_1 *)0xabacadab)) {
                    /* WARNING: Subroutine does not return */
    var_2("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"
                  ,"MagickCore/xml-tree.c",0xa1d,"SetXMLTreeContent");
  }
  if (var_1->debug != var_3) {
    var_4(TraceEvent,"MagickCore/xml-tree.c","SetXMLTreeContent",0xa1f,"...");
  }
  if (var_1->content != (char *)0x0) {
    pcVar1 = var_5(var_1->content);
    var_1->content = pcVar1;
  }
  pcVar1 = var_6(content);
  var_1->content = pcVar1;
  return var_1;
}


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

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

int MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("xml_info != (XMLTreeInfo *) NULL","MagickCore/xml-tree.c",0xa1b,
                  "MASKED");
  }
  if ((*(int *)(param_1 + 0x2c) != -0x54535255) && (*(int *)(param_1 + 0x4c) != -0x54535255)) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(xml_info->signature == MagickCoreSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickCoreSignature)"
                  ,"MagickCore/xml-tree.c",0xa1d,"MASKED");
  }
  if (*(int *)(param_1 + 0x24) != 0) {
    LogMagickEvent(0x8000,"MagickCore/xml-tree.c","MASKED",0xa1f,"...");
  }
  if (*(int *)(param_1 + 8) != 0) {
    uVar1 = DestroyString(*(int *)(param_1 + 8));
    *(undefined4 *)(param_1 + 8) = uVar1;
  }
  uVar1 = ConstantString(param_2);
  *(undefined4 *)(param_1 + 8) = uVar1;
  return param_1;
}

