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

ScriptTokenInfo * DestroyScriptTokenInfo(ScriptTokenInfo *token_info)

{
  char *pcVar1;
  ScriptTokenInfo *pSVar2;
  
  if (token_info == (ScriptTokenInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,
                  "DestroyScriptTokenInfo");
  }
  if (token_info->signature == 0xabacadab) {
    if (token_info->opened != MagickFalse) {
      fclose((FILE *)token_info->stream);
    }
    if (token_info->token != (char *)0x0) {
      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);
      token_info->token = pcVar1;
    }
    pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info);
    return pSVar2;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,
                "DestroyScriptTokenInfo");
}



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

void DestroyScriptTokenInfo(undefined4 *param_1)

{
  undefined4 uVar1;
  
  if (param_1 == (undefined4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,
                  "DestroyScriptTokenInfo");
  }
  if (param_1[9] == -0x54535255) {
    if (param_1[1] != 0) {
      fclose((FILE *)*param_1);
    }
    if (param_1[2] != 0) {
      uVar1 = RelinquishMagickMemory(param_1[2]);
      param_1[2] = uVar1;
    }
    RelinquishMagickMemory(param_1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,
                "DestroyScriptTokenInfo");
}


PUSH ESI
PUSH EBX
CALL 0x0001e8f0
ADD EBX,0x8a159
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x000dbf1e
CMP dword ptr [ESI + 0x24],0xabacadab
JNZ 0x000dbeff
MOV EAX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JNZ 0x000dbef0
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x000dbede
SUB ESP,0xc
PUSH EAX
CALL 0x0001dc90
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x0001dc90
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x0001d200
ADD ESP,0x10
JMP 0x000dbec8
LEA EAX,[EBX + 0xfff9ac24]
PUSH EAX
LEA EAX,[EBX + 0xfff9abab]
PUSH 0x10d
PUSH EAX
LEA EAX,[EBX + 0xfff9abf4]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff9ac24]
PUSH EAX
LEA EAX,[EBX + 0xfff9abab]
PUSH 0x10c
PUSH EAX
LEA EAX,[EBX + 0xfff9abcc]
PUSH EAX
CALL 0x0001ccf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid DestroyScriptTokenInfo(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}\n\n" comment (function_definition "void DestroyScriptTokenInfo(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" primitive_type (function_declarator "DestroyScriptTokenInfo(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" { comment (expression_statement "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" identifier (argument_list "("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" ( (string_literal ""token_info != (ScriptTokenInfo *) NULL"" " string_content ") , (string_literal ""MagickWand/script-token.c"" " string_content ") , number_literal , (string_literal ""DestroyScriptTokenInfo"" " string_content ") ))) ;) })) (if_statement "if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }" if (parenthesized_expression "(param_1[9] == -0x54535255)" ( (binary_expression "param_1[9] == -0x54535255" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }" { (if_statement "if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      fclose((FILE *)*param_1);\n    }" { (expression_statement "fclose((FILE *)*param_1);" (call_expression "fclose((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (if_statement "if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }" { (expression_statement "uVar1 = RelinquishMagickMemory(param_1[2]);" (assignment_expression "uVar1 = RelinquishMagickMemory(param_1[2])" identifier = (call_expression "RelinquishMagickMemory(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" identifier (argument_list "("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" ( (string_literal ""token_info->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/script-token.c"" " string_content ") , number_literal , (string_literal ""DestroyScriptTokenInfo"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nScriptTokenInfo * DestroyScriptTokenInfo(ScriptTokenInfo *token_info)\n\n{\n  char *pcVar1;\n  ScriptTokenInfo *pSVar2;\n  \n  if (token_info == (ScriptTokenInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (token_info->signature == 0xabacadab) {\n    if (token_info->opened != MagickFalse) {\n      fclose((FILE *)token_info->stream);\n    }\n    if (token_info->token != (char *)0x0) {\n      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);\n      token_info->token = pcVar1;\n    }\n    pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info);\n    return pSVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}\n\n" comment (function_definition "ScriptTokenInfo * DestroyScriptTokenInfo(ScriptTokenInfo *token_info)\n\n{\n  char *pcVar1;\n  ScriptTokenInfo *pSVar2;\n  \n  if (token_info == (ScriptTokenInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (token_info->signature == 0xabacadab) {\n    if (token_info->opened != MagickFalse) {\n      fclose((FILE *)token_info->stream);\n    }\n    if (token_info->token != (char *)0x0) {\n      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);\n      token_info->token = pcVar1;\n    }\n    pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info);\n    return pSVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" type_identifier (pointer_declarator "* DestroyScriptTokenInfo(ScriptTokenInfo *token_info)" * (function_declarator "DestroyScriptTokenInfo(ScriptTokenInfo *token_info)" identifier (parameter_list "(ScriptTokenInfo *token_info)" ( (parameter_declaration "ScriptTokenInfo *token_info" type_identifier (pointer_declarator "*token_info" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  ScriptTokenInfo *pSVar2;\n  \n  if (token_info == (ScriptTokenInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (token_info->signature == 0xabacadab) {\n    if (token_info->opened != MagickFalse) {\n      fclose((FILE *)token_info->stream);\n    }\n    if (token_info->token != (char *)0x0) {\n      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);\n      token_info->token = pcVar1;\n    }\n    pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info);\n    return pSVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "ScriptTokenInfo *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (if_statement "if (token_info == (ScriptTokenInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" if (parenthesized_expression "(token_info == (ScriptTokenInfo *)0x0)" ( (binary_expression "token_info == (ScriptTokenInfo *)0x0" identifier == (cast_expression "(ScriptTokenInfo *)0x0" ( (type_descriptor "ScriptTokenInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" { comment (expression_statement "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" identifier (argument_list "("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" ( (string_literal ""token_info != (ScriptTokenInfo *) NULL"" " string_content ") , (string_literal ""MagickWand/script-token.c"" " string_content ") , number_literal , (string_literal ""DestroyScriptTokenInfo"" " string_content ") ))) ;) })) (if_statement "if (token_info->signature == 0xabacadab) {\n    if (token_info->opened != MagickFalse) {\n      fclose((FILE *)token_info->stream);\n    }\n    if (token_info->token != (char *)0x0) {\n      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);\n      token_info->token = pcVar1;\n    }\n    pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info);\n    return pSVar2;\n  }" if (parenthesized_expression "(token_info->signature == 0xabacadab)" ( (binary_expression "token_info->signature == 0xabacadab" (field_expression "token_info->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (token_info->opened != MagickFalse) {\n      fclose((FILE *)token_info->stream);\n    }\n    if (token_info->token != (char *)0x0) {\n      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);\n      token_info->token = pcVar1;\n    }\n    pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info);\n    return pSVar2;\n  }" { (if_statement "if (token_info->opened != MagickFalse) {\n      fclose((FILE *)token_info->stream);\n    }" if (parenthesized_expression "(token_info->opened != MagickFalse)" ( (binary_expression "token_info->opened != MagickFalse" (field_expression "token_info->opened" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      fclose((FILE *)token_info->stream);\n    }" { (expression_statement "fclose((FILE *)token_info->stream);" (call_expression "fclose((FILE *)token_info->stream)" identifier (argument_list "((FILE *)token_info->stream)" ( (cast_expression "(FILE *)token_info->stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "token_info->stream" identifier -> field_identifier)) ))) ;) })) (if_statement "if (token_info->token != (char *)0x0) {\n      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);\n      token_info->token = pcVar1;\n    }" if (parenthesized_expression "(token_info->token != (char *)0x0)" ( (binary_expression "token_info->token != (char *)0x0" (field_expression "token_info->token" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar1 = (char *)RelinquishMagickMemory(token_info->token);\n      token_info->token = pcVar1;\n    }" { (expression_statement "pcVar1 = (char *)RelinquishMagickMemory(token_info->token);" (assignment_expression "pcVar1 = (char *)RelinquishMagickMemory(token_info->token)" identifier = (cast_expression "(char *)RelinquishMagickMemory(token_info->token)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(token_info->token)" identifier (argument_list "(token_info->token)" ( (field_expression "token_info->token" identifier -> field_identifier) ))))) ;) (expression_statement "token_info->token = pcVar1;" (assignment_expression "token_info->token = pcVar1" (field_expression "token_info->token" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info);" (assignment_expression "pSVar2 = (ScriptTokenInfo *)RelinquishMagickMemory(token_info)" identifier = (cast_expression "(ScriptTokenInfo *)RelinquishMagickMemory(token_info)" ( (type_descriptor "ScriptTokenInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(token_info)" identifier (argument_list "(token_info)" ( identifier ))))) ;) (return_statement "return pSVar2;" return identifier ;) })) comment (expression_statement "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" identifier (argument_list "("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" ( (string_literal ""token_info->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/script-token.c"" " string_content ") , number_literal , (string_literal ""DestroyScriptTokenInfo"" " string_content ") ))) ;) })))
(translation_unit "void DestroyScriptTokenInfo(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}\n\n" (function_definition "void DestroyScriptTokenInfo(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" primitive_type (function_declarator "DestroyScriptTokenInfo(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" { (expression_statement "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" identifier (argument_list "("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" ( (string_literal ""token_info != (ScriptTokenInfo *) NULL"" " string_content ") , (string_literal ""MagickWand/script-token.c"" " string_content ") , number_literal , (string_literal ""DestroyScriptTokenInfo"" " string_content ") ))) ;) })) (if_statement "if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }" if (parenthesized_expression "(param_1[9] == -0x54535255)" ( (binary_expression "param_1[9] == -0x54535255" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }" { (if_statement "if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      fclose((FILE *)*param_1);\n    }" { (expression_statement "fclose((FILE *)*param_1);" (call_expression "fclose((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (if_statement "if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }" { (expression_statement "uVar1 = RelinquishMagickMemory(param_1[2]);" (assignment_expression "uVar1 = RelinquishMagickMemory(param_1[2])" identifier = (call_expression "RelinquishMagickMemory(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" identifier (argument_list "("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" ( (string_literal ""token_info->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/script-token.c"" " string_content ") , number_literal , (string_literal ""DestroyScriptTokenInfo"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void DestroyScriptTokenInfo(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" (primitive_type "void") (function_declarator "DestroyScriptTokenInfo(undefined4 *param_1)" (identifier "DestroyScriptTokenInfo") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }\n  if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");\n  }" ({ "{") (expression_statement "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" (identifier "__assert_fail") (argument_list "("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,\n                  "DestroyScriptTokenInfo")" (( "(") (string_literal ""token_info != (ScriptTokenInfo *) NULL"" (" """) (string_content "token_info != (ScriptTokenInfo *) NULL") (" """)) (, ",") (string_literal ""MagickWand/script-token.c"" (" """) (string_content "MagickWand/script-token.c") (" """)) (, ",") (number_literal "0x10c") (, ",") (string_literal ""DestroyScriptTokenInfo"" (" """) (string_content "DestroyScriptTokenInfo") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[9] == -0x54535255) {\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1[9] == -0x54535255)" (( "(") (binary_expression "param_1[9] == -0x54535255" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }\n    if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }\n    RelinquishMagickMemory(param_1);\n    return;\n  }" ({ "{") (if_statement "if (param_1[1] != 0) {\n      fclose((FILE *)*param_1);\n    }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      fclose((FILE *)*param_1);\n    }" ({ "{") (expression_statement "fclose((FILE *)*param_1);" (call_expression "fclose((FILE *)*param_1)" (identifier "fclose") (argument_list "((FILE *)*param_1)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[2] != 0) {\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }" (if "if") (parenthesized_expression "(param_1[2] != 0)" (( "(") (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = RelinquishMagickMemory(param_1[2]);\n      param_1[2] = uVar1;\n    }" ({ "{") (expression_statement "uVar1 = RelinquishMagickMemory(param_1[2]);" (assignment_expression "uVar1 = RelinquishMagickMemory(param_1[2])" (identifier "uVar1") (= "=") (call_expression "RelinquishMagickMemory(param_1[2])" (identifier "RelinquishMagickMemory") (argument_list "(param_1[2])" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" (identifier "RelinquishMagickMemory") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo");" (call_expression "__assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" (identifier "__assert_fail") (argument_list "("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,\n                "DestroyScriptTokenInfo")" (( "(") (string_literal ""token_info->signature == MagickWandSignature"" (" """) (string_content "token_info->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/script-token.c"" (" """) (string_content "MagickWand/script-token.c") (" """)) (, ",") (number_literal "0x10d") (, ",") (string_literal ""DestroyScriptTokenInfo"" (" """) (string_content "DestroyScriptTokenInfo") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1 * function_1(type_1 *var_1)

{
  char *pcVar1;
  type_1 *pSVar2;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,
                  "DestroyScriptTokenInfo");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->opened != var_3) {
      var_4((type_2 *)var_1->stream);
    }
    if (var_1->token != (char *)0x0) {
      pcVar1 = (char *)var_5(var_1->token);
      var_1->token = pcVar1;
    }
    pSVar2 = (type_1 *)var_5(var_1);
    return pSVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_2("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,
                "DestroyScriptTokenInfo");
}


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

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

void MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  
  if (param_1 == (undefined4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("token_info != (ScriptTokenInfo *) NULL","MagickWand/script-token.c",0x10c,
                  "MASKED");
  }
  if (param_1[9] == -0x54535255) {
    if (param_1[1] != 0) {
      fclose((FILE *)*param_1);
    }
    if (param_1[2] != 0) {
      uVar1 = RelinquishMagickMemory(param_1[2]);
      param_1[2] = uVar1;
    }
    RelinquishMagickMemory(param_1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("token_info->signature == MagickWandSignature","MagickWand/script-token.c",0x10d,
                "MASKED");
}

