
void zlib_decompress_cleanup(void *handle)

{
                    /* WARNING: Load size is inaccurate */
  if ((*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle)) {
    zlib_freetable((zlib_table **)((long)handle + 0x10));
  }
  if ((*(long *)((long)handle + 0x18) != 0) &&
     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))) {
    zlib_freetable((zlib_table **)((long)handle + 0x18));
  }
  if (*(long *)((long)handle + 0x20) != 0) {
    zlib_freetable((zlib_table **)((long)handle + 0x20));
  }
  zlib_freetable((zlib_table **)handle);
  zlib_freetable((zlib_table **)((long)handle + 8));
  safefree(handle);
  return;
}



void FUN_001641bf(long *param_1)

{
  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {
    FUN_00164140(param_1 + 2);
  }
  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {
    FUN_00164140(param_1 + 3);
  }
  if (param_1[4] != 0) {
    FUN_00164140(param_1 + 4);
  }
  FUN_00164140(param_1);
  FUN_00164140(param_1 + 1);
  FUN_00127101(param_1);
  return;
}


PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
TEST RAX,RAX
JZ 0x001641da
CMP RAX,qword ptr [RDI]
JZ 0x001641da
LEA RDI,[RDI + 0x10]
CALL 0x00164140
MOV RAX,qword ptr [RBX + 0x18]
TEST RAX,RAX
JZ 0x001641f2
CMP RAX,qword ptr [RBX + 0x8]
JZ 0x001641f2
LEA RDI,[RBX + 0x18]
CALL 0x00164140
CMP qword ptr [RBX + 0x20],0x0
JZ 0x00164202
LEA RDI,[RBX + 0x20]
CALL 0x00164140
MOV RDI,RBX
CALL 0x00164140
LEA RDI,[RBX + 0x8]
CALL 0x00164140
MOV RDI,RBX
CALL 0x00127101
POP RBX
RET
(translation_unit "void FUN_001641bf(long *param_1)\n\n{\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}\n\n" (function_definition "void FUN_001641bf(long *param_1)\n\n{\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001641bf(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  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}" { (if_statement "if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }" if (parenthesized_expression "((param_1[2] != 0) && (param_1[2] != *param_1))" ( (binary_expression "(param_1[2] != 0) && (param_1[2] != *param_1)" (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[2] != *param_1)" ( (binary_expression "param_1[2] != *param_1" (subscript_expression "param_1[2]" identifier [ number_literal ]) != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n    FUN_00164140(param_1 + 2);\n  }" { (expression_statement "FUN_00164140(param_1 + 2);" (call_expression "FUN_00164140(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) })) (if_statement "if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }" if (parenthesized_expression "((param_1[3] != 0) && (param_1[3] != param_1[1]))" ( (binary_expression "(param_1[3] != 0) && (param_1[3] != param_1[1])" (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[3] != param_1[1])" ( (binary_expression "param_1[3] != param_1[1]" (subscript_expression "param_1[3]" identifier [ number_literal ]) != (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n    FUN_00164140(param_1 + 3);\n  }" { (expression_statement "FUN_00164140(param_1 + 3);" (call_expression "FUN_00164140(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) })) (if_statement "if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }" if (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_00164140(param_1 + 4);\n  }" { (expression_statement "FUN_00164140(param_1 + 4);" (call_expression "FUN_00164140(param_1 + 4)" identifier (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (expression_statement "FUN_00164140(param_1);" (call_expression "FUN_00164140(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00164140(param_1 + 1);" (call_expression "FUN_00164140(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00127101(param_1);" (call_expression "FUN_00127101(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void zlib_decompress_cleanup(void *handle)\n\n{\n                    /* WARNING: Load size is inaccurate */\n  if ((*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle)) {\n    zlib_freetable((zlib_table **)((long)handle + 0x10));\n  }\n  if ((*(long *)((long)handle + 0x18) != 0) &&\n     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))) {\n    zlib_freetable((zlib_table **)((long)handle + 0x18));\n  }\n  if (*(long *)((long)handle + 0x20) != 0) {\n    zlib_freetable((zlib_table **)((long)handle + 0x20));\n  }\n  zlib_freetable((zlib_table **)handle);\n  zlib_freetable((zlib_table **)((long)handle + 8));\n  safefree(handle);\n  return;\n}\n\n" (function_definition "void zlib_decompress_cleanup(void *handle)\n\n{\n                    /* WARNING: Load size is inaccurate */\n  if ((*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle)) {\n    zlib_freetable((zlib_table **)((long)handle + 0x10));\n  }\n  if ((*(long *)((long)handle + 0x18) != 0) &&\n     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))) {\n    zlib_freetable((zlib_table **)((long)handle + 0x18));\n  }\n  if (*(long *)((long)handle + 0x20) != 0) {\n    zlib_freetable((zlib_table **)((long)handle + 0x20));\n  }\n  zlib_freetable((zlib_table **)handle);\n  zlib_freetable((zlib_table **)((long)handle + 8));\n  safefree(handle);\n  return;\n}" primitive_type (function_declarator "zlib_decompress_cleanup(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n  if ((*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle)) {\n    zlib_freetable((zlib_table **)((long)handle + 0x10));\n  }\n  if ((*(long *)((long)handle + 0x18) != 0) &&\n     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))) {\n    zlib_freetable((zlib_table **)((long)handle + 0x18));\n  }\n  if (*(long *)((long)handle + 0x20) != 0) {\n    zlib_freetable((zlib_table **)((long)handle + 0x20));\n  }\n  zlib_freetable((zlib_table **)handle);\n  zlib_freetable((zlib_table **)((long)handle + 8));\n  safefree(handle);\n  return;\n}" { comment (if_statement "if ((*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle)) {\n    zlib_freetable((zlib_table **)((long)handle + 0x10));\n  }" if (parenthesized_expression "((*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle))" ( (binary_expression "(*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle)" (parenthesized_expression "(*(long *)((long)handle + 0x10) != 0)" ( (binary_expression "*(long *)((long)handle + 0x10) != 0" (pointer_expression "*(long *)((long)handle + 0x10)" * (cast_expression "(long *)((long)handle + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x10)" ( (binary_expression "(long)handle + 0x10" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(long *)((long)handle + 0x10) != *handle)" ( (binary_expression "*(long *)((long)handle + 0x10) != *handle" (pointer_expression "*(long *)((long)handle + 0x10)" * (cast_expression "(long *)((long)handle + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x10)" ( (binary_expression "(long)handle + 0x10" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (pointer_expression "*handle" * identifier)) ))) )) (compound_statement "{\n    zlib_freetable((zlib_table **)((long)handle + 0x10));\n  }" { (expression_statement "zlib_freetable((zlib_table **)((long)handle + 0x10));" (call_expression "zlib_freetable((zlib_table **)((long)handle + 0x10))" identifier (argument_list "((zlib_table **)((long)handle + 0x10))" ( (cast_expression "(zlib_table **)((long)handle + 0x10)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x10)" ( (binary_expression "(long)handle + 0x10" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) ))) ;) })) (if_statement "if ((*(long *)((long)handle + 0x18) != 0) &&\n     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))) {\n    zlib_freetable((zlib_table **)((long)handle + 0x18));\n  }" if (parenthesized_expression "((*(long *)((long)handle + 0x18) != 0) &&\n     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8)))" ( (binary_expression "(*(long *)((long)handle + 0x18) != 0) &&\n     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))" (parenthesized_expression "(*(long *)((long)handle + 0x18) != 0)" ( (binary_expression "*(long *)((long)handle + 0x18) != 0" (pointer_expression "*(long *)((long)handle + 0x18)" * (cast_expression "(long *)((long)handle + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x18)" ( (binary_expression "(long)handle + 0x18" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))" ( (binary_expression "*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8)" (pointer_expression "*(long *)((long)handle + 0x18)" * (cast_expression "(long *)((long)handle + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x18)" ( (binary_expression "(long)handle + 0x18" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (pointer_expression "*(long *)((long)handle + 8)" * (cast_expression "(long *)((long)handle + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) (compound_statement "{\n    zlib_freetable((zlib_table **)((long)handle + 0x18));\n  }" { (expression_statement "zlib_freetable((zlib_table **)((long)handle + 0x18));" (call_expression "zlib_freetable((zlib_table **)((long)handle + 0x18))" identifier (argument_list "((zlib_table **)((long)handle + 0x18))" ( (cast_expression "(zlib_table **)((long)handle + 0x18)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x18)" ( (binary_expression "(long)handle + 0x18" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) ))) ;) })) (if_statement "if (*(long *)((long)handle + 0x20) != 0) {\n    zlib_freetable((zlib_table **)((long)handle + 0x20));\n  }" if (parenthesized_expression "(*(long *)((long)handle + 0x20) != 0)" ( (binary_expression "*(long *)((long)handle + 0x20) != 0" (pointer_expression "*(long *)((long)handle + 0x20)" * (cast_expression "(long *)((long)handle + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x20)" ( (binary_expression "(long)handle + 0x20" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    zlib_freetable((zlib_table **)((long)handle + 0x20));\n  }" { (expression_statement "zlib_freetable((zlib_table **)((long)handle + 0x20));" (call_expression "zlib_freetable((zlib_table **)((long)handle + 0x20))" identifier (argument_list "((zlib_table **)((long)handle + 0x20))" ( (cast_expression "(zlib_table **)((long)handle + 0x20)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x20)" ( (binary_expression "(long)handle + 0x20" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) ))) ;) })) (expression_statement "zlib_freetable((zlib_table **)handle);" (call_expression "zlib_freetable((zlib_table **)handle)" identifier (argument_list "((zlib_table **)handle)" ( (cast_expression "(zlib_table **)handle" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) ))) ;) (expression_statement "zlib_freetable((zlib_table **)((long)handle + 8));" (call_expression "zlib_freetable((zlib_table **)((long)handle + 8))" identifier (argument_list "((zlib_table **)((long)handle + 8))" ( (cast_expression "(zlib_table **)((long)handle + 8)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) ))) ;) (expression_statement "safefree(handle);" (call_expression "safefree(handle)" identifier (argument_list "(handle)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001641bf(long *param_1)\n\n{\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}\n\n" (function_definition "void FUN_001641bf(long *param_1)\n\n{\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001641bf(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  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}" { (if_statement "if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }" if (parenthesized_expression "((param_1[2] != 0) && (param_1[2] != *param_1))" ( (binary_expression "(param_1[2] != 0) && (param_1[2] != *param_1)" (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[2] != *param_1)" ( (binary_expression "param_1[2] != *param_1" (subscript_expression "param_1[2]" identifier [ number_literal ]) != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n    FUN_00164140(param_1 + 2);\n  }" { (expression_statement "FUN_00164140(param_1 + 2);" (call_expression "FUN_00164140(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) })) (if_statement "if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }" if (parenthesized_expression "((param_1[3] != 0) && (param_1[3] != param_1[1]))" ( (binary_expression "(param_1[3] != 0) && (param_1[3] != param_1[1])" (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[3] != param_1[1])" ( (binary_expression "param_1[3] != param_1[1]" (subscript_expression "param_1[3]" identifier [ number_literal ]) != (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n    FUN_00164140(param_1 + 3);\n  }" { (expression_statement "FUN_00164140(param_1 + 3);" (call_expression "FUN_00164140(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) })) (if_statement "if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }" if (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_00164140(param_1 + 4);\n  }" { (expression_statement "FUN_00164140(param_1 + 4);" (call_expression "FUN_00164140(param_1 + 4)" identifier (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (expression_statement "FUN_00164140(param_1);" (call_expression "FUN_00164140(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00164140(param_1 + 1);" (call_expression "FUN_00164140(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00127101(param_1);" (call_expression "FUN_00127101(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (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 ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001641bf(long *param_1)\n\n{\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001641bf(long *param_1)" (identifier "FUN_001641bf") (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  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }\n  if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }\n  FUN_00164140(param_1);\n  FUN_00164140(param_1 + 1);\n  FUN_00127101(param_1);\n  return;\n}" ({ "{") (if_statement "if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_00164140(param_1 + 2);\n  }" (if "if") (parenthesized_expression "((param_1[2] != 0) && (param_1[2] != *param_1))" (( "(") (binary_expression "(param_1[2] != 0) && (param_1[2] != *param_1)" (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")) () ")")) (&& "&&") (parenthesized_expression "(param_1[2] != *param_1)" (( "(") (binary_expression "param_1[2] != *param_1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) () ")")) (compound_statement "{\n    FUN_00164140(param_1 + 2);\n  }" ({ "{") (expression_statement "FUN_00164140(param_1 + 2);" (call_expression "FUN_00164140(param_1 + 2)" (identifier "FUN_00164140") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (} "}"))) (if_statement "if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_00164140(param_1 + 3);\n  }" (if "if") (parenthesized_expression "((param_1[3] != 0) && (param_1[3] != param_1[1]))" (( "(") (binary_expression "(param_1[3] != 0) && (param_1[3] != param_1[1])" (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")) () ")")) (&& "&&") (parenthesized_expression "(param_1[3] != param_1[1])" (( "(") (binary_expression "param_1[3] != param_1[1]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (compound_statement "{\n    FUN_00164140(param_1 + 3);\n  }" ({ "{") (expression_statement "FUN_00164140(param_1 + 3);" (call_expression "FUN_00164140(param_1 + 3)" (identifier "FUN_00164140") (argument_list "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[4] != 0) {\n    FUN_00164140(param_1 + 4);\n  }" (if "if") (parenthesized_expression "(param_1[4] != 0)" (( "(") (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00164140(param_1 + 4);\n  }" ({ "{") (expression_statement "FUN_00164140(param_1 + 4);" (call_expression "FUN_00164140(param_1 + 4)" (identifier "FUN_00164140") (argument_list "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00164140(param_1);" (call_expression "FUN_00164140(param_1)" (identifier "FUN_00164140") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00164140(param_1 + 1);" (call_expression "FUN_00164140(param_1 + 1)" (identifier "FUN_00164140") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_00127101(param_1);" (call_expression "FUN_00127101(param_1)" (identifier "FUN_00127101") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void *handle)

{
                    /* WARNING: Load size is inaccurate */
  if ((*(long *)((long)handle + 0x10) != 0) && (*(long *)((long)handle + 0x10) != *handle)) {
    var_1((type_1 **)((long)handle + 0x10));
  }
  if ((*(long *)((long)handle + 0x18) != 0) &&
     (*(long *)((long)handle + 0x18) != *(long *)((long)handle + 8))) {
    var_1((type_1 **)((long)handle + 0x18));
  }
  if (*(long *)((long)handle + 0x20) != 0) {
    var_1((type_1 **)((long)handle + 0x20));
  }
  var_1((type_1 **)handle);
  var_1((type_1 **)((long)handle + 8));
  var_2(handle);
  return;
}


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

void MASKED(long *param_1)

{
  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {
    FUN_00164140(param_1 + 2);
  }
  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {
    FUN_00164140(param_1 + 3);
  }
  if (param_1[4] != 0) {
    FUN_00164140(param_1 + 4);
  }
  FUN_00164140(param_1);
  FUN_00164140(param_1 + 1);
  FUN_00127101(param_1);
  return;
}

