
void * DestroyDelegate(void *delegate_info)

{
  char *pcVar1;
  
                    /* WARNING: Load size is inaccurate */
  if (*delegate_info != (char *)0x0) {
    pcVar1 = DestroyString(*delegate_info);
    *(char **)delegate_info = pcVar1;
  }
  if (*(char **)((long)delegate_info + 8) != (char *)0x0) {
    pcVar1 = DestroyString(*(char **)((long)delegate_info + 8));
    *(char **)((long)delegate_info + 8) = pcVar1;
  }
  if (*(char **)((long)delegate_info + 0x10) != (char *)0x0) {
    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10));
    *(char **)((long)delegate_info + 0x10) = pcVar1;
  }
  if (*(char **)((long)delegate_info + 0x18) != (char *)0x0) {
    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18));
    *(char **)((long)delegate_info + 0x18) = pcVar1;
  }
  if (*(long *)((long)delegate_info + 0x38) != 0) {
    RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38));
  }
  RelinquishMagickMemory(delegate_info);
  return (void *)0x0;
}



undefined8 FUN_0019abb7(long *param_1)

{
  long lVar1;
  
  if (*param_1 != 0) {
    lVar1 = DestroyString();
    *param_1 = lVar1;
  }
  if (param_1[1] != 0) {
    lVar1 = DestroyString();
    param_1[1] = lVar1;
  }
  if (param_1[2] != 0) {
    lVar1 = DestroyString();
    param_1[2] = lVar1;
  }
  if (param_1[3] != 0) {
    lVar1 = DestroyString();
    param_1[3] = lVar1;
  }
  if (param_1[7] != 0) {
    RelinquishSemaphoreInfo(param_1 + 7);
  }
  RelinquishMagickMemory(param_1);
  return 0;
}


PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
TEST RDI,RDI
JZ 0x0019abcb
CALL 0x0014c570
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x0019abdd
CALL 0x0014c570
MOV qword ptr [RBX + 0x8],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x0019abef
CALL 0x0014c570
MOV qword ptr [RBX + 0x10],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x0019ac01
CALL 0x0014c570
MOV qword ptr [RBX + 0x18],RAX
CMP qword ptr [RBX + 0x38],0x0
JZ 0x0019ac11
LEA RDI,[RBX + 0x38]
CALL 0x00149bb0
MOV RDI,RBX
CALL 0x0014dad8
MOV EAX,0x0
POP RBX
RET
(translation_unit "undefined8 FUN_0019abb7(long *param_1)\n\n{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0019abb7(long *param_1)\n\n{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" type_identifier (function_declarator "FUN_0019abb7(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_1 = lVar1;" (assignment_expression "*param_1 = lVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (if_statement "if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\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    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[1] = lVar1;" (assignment_expression "param_1[1] = lVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\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    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = lVar1;" (assignment_expression "param_1[2] = lVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }" if (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[3] = lVar1;" (assignment_expression "param_1[3] = lVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }" if (parenthesized_expression "(param_1[7] != 0)" ( (binary_expression "param_1[7] != 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }" { (expression_statement "RelinquishSemaphoreInfo(param_1 + 7);" (call_expression "RelinquishSemaphoreInfo(param_1 + 7)" identifier (argument_list "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) ))) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * DestroyDelegate(void *delegate_info)\n\n{\n  char *pcVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*delegate_info != (char *)0x0) {\n    pcVar1 = DestroyString(*delegate_info);\n    *(char **)delegate_info = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 8));\n    *(char **)((long)delegate_info + 8) = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 0x10) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10));\n    *(char **)((long)delegate_info + 0x10) = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 0x18) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18));\n    *(char **)((long)delegate_info + 0x18) = pcVar1;\n  }\n  if (*(long *)((long)delegate_info + 0x38) != 0) {\n    RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38));\n  }\n  RelinquishMagickMemory(delegate_info);\n  return (void *)0x0;\n}\n\n" (function_definition "void * DestroyDelegate(void *delegate_info)\n\n{\n  char *pcVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*delegate_info != (char *)0x0) {\n    pcVar1 = DestroyString(*delegate_info);\n    *(char **)delegate_info = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 8));\n    *(char **)((long)delegate_info + 8) = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 0x10) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10));\n    *(char **)((long)delegate_info + 0x10) = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 0x18) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18));\n    *(char **)((long)delegate_info + 0x18) = pcVar1;\n  }\n  if (*(long *)((long)delegate_info + 0x38) != 0) {\n    RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38));\n  }\n  RelinquishMagickMemory(delegate_info);\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* DestroyDelegate(void *delegate_info)" * (function_declarator "DestroyDelegate(void *delegate_info)" identifier (parameter_list "(void *delegate_info)" ( (parameter_declaration "void *delegate_info" primitive_type (pointer_declarator "*delegate_info" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*delegate_info != (char *)0x0) {\n    pcVar1 = DestroyString(*delegate_info);\n    *(char **)delegate_info = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 8));\n    *(char **)((long)delegate_info + 8) = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 0x10) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10));\n    *(char **)((long)delegate_info + 0x10) = pcVar1;\n  }\n  if (*(char **)((long)delegate_info + 0x18) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18));\n    *(char **)((long)delegate_info + 0x18) = pcVar1;\n  }\n  if (*(long *)((long)delegate_info + 0x38) != 0) {\n    RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38));\n  }\n  RelinquishMagickMemory(delegate_info);\n  return (void *)0x0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) comment (if_statement "if (*delegate_info != (char *)0x0) {\n    pcVar1 = DestroyString(*delegate_info);\n    *(char **)delegate_info = pcVar1;\n  }" if (parenthesized_expression "(*delegate_info != (char *)0x0)" ( (binary_expression "*delegate_info != (char *)0x0" (pointer_expression "*delegate_info" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = DestroyString(*delegate_info);\n    *(char **)delegate_info = pcVar1;\n  }" { (expression_statement "pcVar1 = DestroyString(*delegate_info);" (assignment_expression "pcVar1 = DestroyString(*delegate_info)" identifier = (call_expression "DestroyString(*delegate_info)" identifier (argument_list "(*delegate_info)" ( (pointer_expression "*delegate_info" * identifier) )))) ;) (expression_statement "*(char **)delegate_info = pcVar1;" (assignment_expression "*(char **)delegate_info = pcVar1" (pointer_expression "*(char **)delegate_info" * (cast_expression "(char **)delegate_info" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) })) (if_statement "if (*(char **)((long)delegate_info + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 8));\n    *(char **)((long)delegate_info + 8) = pcVar1;\n  }" if (parenthesized_expression "(*(char **)((long)delegate_info + 8) != (char *)0x0)" ( (binary_expression "*(char **)((long)delegate_info + 8) != (char *)0x0" (pointer_expression "*(char **)((long)delegate_info + 8)" * (cast_expression "(char **)((long)delegate_info + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 8)" ( (binary_expression "(long)delegate_info + 8" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 8));\n    *(char **)((long)delegate_info + 8) = pcVar1;\n  }" { (expression_statement "pcVar1 = DestroyString(*(char **)((long)delegate_info + 8));" (assignment_expression "pcVar1 = DestroyString(*(char **)((long)delegate_info + 8))" identifier = (call_expression "DestroyString(*(char **)((long)delegate_info + 8))" identifier (argument_list "(*(char **)((long)delegate_info + 8))" ( (pointer_expression "*(char **)((long)delegate_info + 8)" * (cast_expression "(char **)((long)delegate_info + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 8)" ( (binary_expression "(long)delegate_info + 8" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) )))) ;) (expression_statement "*(char **)((long)delegate_info + 8) = pcVar1;" (assignment_expression "*(char **)((long)delegate_info + 8) = pcVar1" (pointer_expression "*(char **)((long)delegate_info + 8)" * (cast_expression "(char **)((long)delegate_info + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 8)" ( (binary_expression "(long)delegate_info + 8" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) })) (if_statement "if (*(char **)((long)delegate_info + 0x10) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10));\n    *(char **)((long)delegate_info + 0x10) = pcVar1;\n  }" if (parenthesized_expression "(*(char **)((long)delegate_info + 0x10) != (char *)0x0)" ( (binary_expression "*(char **)((long)delegate_info + 0x10) != (char *)0x0" (pointer_expression "*(char **)((long)delegate_info + 0x10)" * (cast_expression "(char **)((long)delegate_info + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 0x10)" ( (binary_expression "(long)delegate_info + 0x10" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10));\n    *(char **)((long)delegate_info + 0x10) = pcVar1;\n  }" { (expression_statement "pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10));" (assignment_expression "pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x10))" identifier = (call_expression "DestroyString(*(char **)((long)delegate_info + 0x10))" identifier (argument_list "(*(char **)((long)delegate_info + 0x10))" ( (pointer_expression "*(char **)((long)delegate_info + 0x10)" * (cast_expression "(char **)((long)delegate_info + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 0x10)" ( (binary_expression "(long)delegate_info + 0x10" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) )))) ;) (expression_statement "*(char **)((long)delegate_info + 0x10) = pcVar1;" (assignment_expression "*(char **)((long)delegate_info + 0x10) = pcVar1" (pointer_expression "*(char **)((long)delegate_info + 0x10)" * (cast_expression "(char **)((long)delegate_info + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 0x10)" ( (binary_expression "(long)delegate_info + 0x10" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) })) (if_statement "if (*(char **)((long)delegate_info + 0x18) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18));\n    *(char **)((long)delegate_info + 0x18) = pcVar1;\n  }" if (parenthesized_expression "(*(char **)((long)delegate_info + 0x18) != (char *)0x0)" ( (binary_expression "*(char **)((long)delegate_info + 0x18) != (char *)0x0" (pointer_expression "*(char **)((long)delegate_info + 0x18)" * (cast_expression "(char **)((long)delegate_info + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 0x18)" ( (binary_expression "(long)delegate_info + 0x18" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18));\n    *(char **)((long)delegate_info + 0x18) = pcVar1;\n  }" { (expression_statement "pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18));" (assignment_expression "pcVar1 = DestroyString(*(char **)((long)delegate_info + 0x18))" identifier = (call_expression "DestroyString(*(char **)((long)delegate_info + 0x18))" identifier (argument_list "(*(char **)((long)delegate_info + 0x18))" ( (pointer_expression "*(char **)((long)delegate_info + 0x18)" * (cast_expression "(char **)((long)delegate_info + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 0x18)" ( (binary_expression "(long)delegate_info + 0x18" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) )))) ;) (expression_statement "*(char **)((long)delegate_info + 0x18) = pcVar1;" (assignment_expression "*(char **)((long)delegate_info + 0x18) = pcVar1" (pointer_expression "*(char **)((long)delegate_info + 0x18)" * (cast_expression "(char **)((long)delegate_info + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 0x18)" ( (binary_expression "(long)delegate_info + 0x18" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) })) (if_statement "if (*(long *)((long)delegate_info + 0x38) != 0) {\n    RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38));\n  }" if (parenthesized_expression "(*(long *)((long)delegate_info + 0x38) != 0)" ( (binary_expression "*(long *)((long)delegate_info + 0x38) != 0" (pointer_expression "*(long *)((long)delegate_info + 0x38)" * (cast_expression "(long *)((long)delegate_info + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)delegate_info + 0x38)" ( (binary_expression "(long)delegate_info + 0x38" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38));\n  }" { (expression_statement "RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38));" (call_expression "RelinquishSemaphoreInfo((SemaphoreInfo **)((long)delegate_info + 0x38))" identifier (argument_list "((SemaphoreInfo **)((long)delegate_info + 0x38))" ( (cast_expression "(SemaphoreInfo **)((long)delegate_info + 0x38)" ( (type_descriptor "SemaphoreInfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)delegate_info + 0x38)" ( (binary_expression "(long)delegate_info + 0x38" (cast_expression "(long)delegate_info" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) ))) ;) })) (expression_statement "RelinquishMagickMemory(delegate_info);" (call_expression "RelinquishMagickMemory(delegate_info)" identifier (argument_list "(delegate_info)" ( identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined8 FUN_0019abb7(long *param_1)\n\n{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0019abb7(long *param_1)\n\n{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" type_identifier (function_declarator "FUN_0019abb7(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_1 = lVar1;" (assignment_expression "*param_1 = lVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (if_statement "if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\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    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[1] = lVar1;" (assignment_expression "param_1[1] = lVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\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    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = lVar1;" (assignment_expression "param_1[2] = lVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }" if (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }" { (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" identifier = (call_expression "DestroyString()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[3] = lVar1;" (assignment_expression "param_1[3] = lVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }" if (parenthesized_expression "(param_1[7] != 0)" ( (binary_expression "param_1[7] != 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }" { (expression_statement "RelinquishSemaphoreInfo(param_1 + 7);" (call_expression "RelinquishSemaphoreInfo(param_1 + 7)" identifier (argument_list "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) ))) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_0019abb7(long *param_1)\n\n{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_0019abb7(long *param_1)" (identifier "FUN_0019abb7") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }\n  if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }\n  if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }\n  if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }\n  if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (*param_1 != 0) {\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar1 = DestroyString();\n    *param_1 = lVar1;\n  }" ({ "{") (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" (identifier "lVar1") (= "=") (call_expression "DestroyString()" (identifier "DestroyString") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_1 = lVar1;" (assignment_expression "*param_1 = lVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar1")) (; ";")) (} "}"))) (if_statement "if (param_1[1] != 0) {\n    lVar1 = DestroyString();\n    param_1[1] = lVar1;\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    lVar1 = DestroyString();\n    param_1[1] = lVar1;\n  }" ({ "{") (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" (identifier "lVar1") (= "=") (call_expression "DestroyString()" (identifier "DestroyString") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[1] = lVar1;" (assignment_expression "param_1[1] = lVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar1")) (; ";")) (} "}"))) (if_statement "if (param_1[2] != 0) {\n    lVar1 = DestroyString();\n    param_1[2] = lVar1;\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    lVar1 = DestroyString();\n    param_1[2] = lVar1;\n  }" ({ "{") (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" (identifier "lVar1") (= "=") (call_expression "DestroyString()" (identifier "DestroyString") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[2] = lVar1;" (assignment_expression "param_1[2] = lVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar1")) (; ";")) (} "}"))) (if_statement "if (param_1[3] != 0) {\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }" (if "if") (parenthesized_expression "(param_1[3] != 0)" (( "(") (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar1 = DestroyString();\n    param_1[3] = lVar1;\n  }" ({ "{") (expression_statement "lVar1 = DestroyString();" (assignment_expression "lVar1 = DestroyString()" (identifier "lVar1") (= "=") (call_expression "DestroyString()" (identifier "DestroyString") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[3] = lVar1;" (assignment_expression "param_1[3] = lVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "lVar1")) (; ";")) (} "}"))) (if_statement "if (param_1[7] != 0) {\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }" (if "if") (parenthesized_expression "(param_1[7] != 0)" (( "(") (binary_expression "param_1[7] != 0" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    RelinquishSemaphoreInfo(param_1 + 7);\n  }" ({ "{") (expression_statement "RelinquishSemaphoreInfo(param_1 + 7);" (call_expression "RelinquishSemaphoreInfo(param_1 + 7)" (identifier "RelinquishSemaphoreInfo") (argument_list "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")"))) (; ";")) (} "}"))) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" (identifier "RelinquishMagickMemory") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(void *delegate_info)

{
  char *pcVar1;
  
                    /* WARNING: Load size is inaccurate */
  if (*delegate_info != (char *)0x0) {
    pcVar1 = var_1(*delegate_info);
    *(char **)delegate_info = pcVar1;
  }
  if (*(char **)((long)delegate_info + 8) != (char *)0x0) {
    pcVar1 = var_1(*(char **)((long)delegate_info + 8));
    *(char **)((long)delegate_info + 8) = pcVar1;
  }
  if (*(char **)((long)delegate_info + 0x10) != (char *)0x0) {
    pcVar1 = var_1(*(char **)((long)delegate_info + 0x10));
    *(char **)((long)delegate_info + 0x10) = pcVar1;
  }
  if (*(char **)((long)delegate_info + 0x18) != (char *)0x0) {
    pcVar1 = var_1(*(char **)((long)delegate_info + 0x18));
    *(char **)((long)delegate_info + 0x18) = pcVar1;
  }
  if (*(long *)((long)delegate_info + 0x38) != 0) {
    var_2((type_1 **)((long)delegate_info + 0x38));
  }
  var_3(delegate_info);
  return (void *)0x0;
}


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

undefined8 MASKED(long *param_1)

{
  long lVar1;
  
  if (*param_1 != 0) {
    lVar1 = DestroyString();
    *param_1 = lVar1;
  }
  if (param_1[1] != 0) {
    lVar1 = DestroyString();
    param_1[1] = lVar1;
  }
  if (param_1[2] != 0) {
    lVar1 = DestroyString();
    param_1[2] = lVar1;
  }
  if (param_1[3] != 0) {
    lVar1 = DestroyString();
    param_1[3] = lVar1;
  }
  if (param_1[7] != 0) {
    RelinquishSemaphoreInfo(param_1 + 7);
  }
  RelinquishMagickMemory(param_1);
  return 0;
}

