
void free_filestruct(filestruct *src)

{
  filestruct *pfVar1;
  filestruct *fileptr;
  
  pfVar1 = src->next;
  if (src->next != (filestruct *)0x0) {
    do {
      fileptr = pfVar1;
      delete_node(fileptr->prev);
      pfVar1 = fileptr->next;
    } while (fileptr->next != (filestruct *)0x0);
    delete_node(fileptr);
    return;
  }
  delete_node(src);
  return;
}



void FUN_0002dfd4(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 8);
  if (*(int *)(param_1 + 8) != 0) {
    do {
      iVar2 = iVar1;
      delete_node(*(undefined4 *)(iVar2 + 0xc));
      iVar1 = *(int *)(iVar2 + 8);
    } while (*(int *)(iVar2 + 8) != 0);
    delete_node(iVar2);
    return;
  }
  delete_node(param_1);
  return;
}


lui gp,0x5
addiu gp,gp,0x154c
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x1c(sp)
sw gp,0x10(sp)
sw s1,0x20(sp)
sw ra,0x24(sp)
lw s0,0x8(a0)
bne s0,zero,0x0002e00c
_lw s1,-0x7fb0(gp)
b 0x0002e040
_or s0,a0,zero
or s0,v0,zero
or t9,s1,zero
bal 0x0002df20
_lw a0,0xc(s0)
lw v0,0x8(s0)
bne v0,zero,0x0002e008
_lw gp,0x10(sp)
lw ra,0x24(sp)
or a0,s0,zero
or t9,s1,zero
lw s0,0x1c(sp)
lw s1,0x20(sp)
b 0x0002df20
_addiu sp,sp,0x28
lw ra,0x24(sp)
or a0,s0,zero
lw s0,0x1c(sp)
or t9,s1,zero
lw s1,0x20(sp)
b 0x0002df20
_addiu sp,sp,0x28
(translation_unit "void FUN_0002dfd4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0002dfd4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0002dfd4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }" { (do_statement "do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);" do (compound_statement "{\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (expression_statement "delete_node(*(undefined4 *)(iVar2 + 0xc));" (call_expression "delete_node(*(undefined4 *)(iVar2 + 0xc))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xc))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(iVar2 + 8);" (assignment_expression "iVar1 = *(int *)(iVar2 + 8)" identifier = (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" ( (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) != number_literal) )) ;) (expression_statement "delete_node(iVar2);" (call_expression "delete_node(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "delete_node(param_1);" (call_expression "delete_node(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void free_filestruct(filestruct *src)\n\n{\n  filestruct *pfVar1;\n  filestruct *fileptr;\n  \n  pfVar1 = src->next;\n  if (src->next != (filestruct *)0x0) {\n    do {\n      fileptr = pfVar1;\n      delete_node(fileptr->prev);\n      pfVar1 = fileptr->next;\n    } while (fileptr->next != (filestruct *)0x0);\n    delete_node(fileptr);\n    return;\n  }\n  delete_node(src);\n  return;\n}\n\n" (function_definition "void free_filestruct(filestruct *src)\n\n{\n  filestruct *pfVar1;\n  filestruct *fileptr;\n  \n  pfVar1 = src->next;\n  if (src->next != (filestruct *)0x0) {\n    do {\n      fileptr = pfVar1;\n      delete_node(fileptr->prev);\n      pfVar1 = fileptr->next;\n    } while (fileptr->next != (filestruct *)0x0);\n    delete_node(fileptr);\n    return;\n  }\n  delete_node(src);\n  return;\n}" primitive_type (function_declarator "free_filestruct(filestruct *src)" identifier (parameter_list "(filestruct *src)" ( (parameter_declaration "filestruct *src" type_identifier (pointer_declarator "*src" * identifier)) ))) (compound_statement "{\n  filestruct *pfVar1;\n  filestruct *fileptr;\n  \n  pfVar1 = src->next;\n  if (src->next != (filestruct *)0x0) {\n    do {\n      fileptr = pfVar1;\n      delete_node(fileptr->prev);\n      pfVar1 = fileptr->next;\n    } while (fileptr->next != (filestruct *)0x0);\n    delete_node(fileptr);\n    return;\n  }\n  delete_node(src);\n  return;\n}" { (declaration "filestruct *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "filestruct *fileptr;" type_identifier (pointer_declarator "*fileptr" * identifier) ;) (expression_statement "pfVar1 = src->next;" (assignment_expression "pfVar1 = src->next" identifier = (field_expression "src->next" identifier -> field_identifier)) ;) (if_statement "if (src->next != (filestruct *)0x0) {\n    do {\n      fileptr = pfVar1;\n      delete_node(fileptr->prev);\n      pfVar1 = fileptr->next;\n    } while (fileptr->next != (filestruct *)0x0);\n    delete_node(fileptr);\n    return;\n  }" if (parenthesized_expression "(src->next != (filestruct *)0x0)" ( (binary_expression "src->next != (filestruct *)0x0" (field_expression "src->next" identifier -> field_identifier) != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      fileptr = pfVar1;\n      delete_node(fileptr->prev);\n      pfVar1 = fileptr->next;\n    } while (fileptr->next != (filestruct *)0x0);\n    delete_node(fileptr);\n    return;\n  }" { (do_statement "do {\n      fileptr = pfVar1;\n      delete_node(fileptr->prev);\n      pfVar1 = fileptr->next;\n    } while (fileptr->next != (filestruct *)0x0);" do (compound_statement "{\n      fileptr = pfVar1;\n      delete_node(fileptr->prev);\n      pfVar1 = fileptr->next;\n    }" { (expression_statement "fileptr = pfVar1;" (assignment_expression "fileptr = pfVar1" identifier = identifier) ;) (expression_statement "delete_node(fileptr->prev);" (call_expression "delete_node(fileptr->prev)" identifier (argument_list "(fileptr->prev)" ( (field_expression "fileptr->prev" identifier -> field_identifier) ))) ;) (expression_statement "pfVar1 = fileptr->next;" (assignment_expression "pfVar1 = fileptr->next" identifier = (field_expression "fileptr->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(fileptr->next != (filestruct *)0x0)" ( (binary_expression "fileptr->next != (filestruct *)0x0" (field_expression "fileptr->next" identifier -> field_identifier) != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "delete_node(fileptr);" (call_expression "delete_node(fileptr)" identifier (argument_list "(fileptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "delete_node(src);" (call_expression "delete_node(src)" identifier (argument_list "(src)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002dfd4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0002dfd4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0002dfd4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }" { (do_statement "do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);" do (compound_statement "{\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (expression_statement "delete_node(*(undefined4 *)(iVar2 + 0xc));" (call_expression "delete_node(*(undefined4 *)(iVar2 + 0xc))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xc))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(iVar2 + 8);" (assignment_expression "iVar1 = *(int *)(iVar2 + 8)" identifier = (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" ( (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) != number_literal) )) ;) (expression_statement "delete_node(iVar2);" (call_expression "delete_node(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "delete_node(param_1);" (call_expression "delete_node(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0002dfd4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002dfd4(int param_1)" (identifier "FUN_0002dfd4") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }\n  delete_node(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);\n    delete_node(iVar2);\n    return;\n  }" ({ "{") (do_statement "do {\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    } while (*(int *)(iVar2 + 8) != 0);" (do "do") (compound_statement "{\n      iVar2 = iVar1;\n      delete_node(*(undefined4 *)(iVar2 + 0xc));\n      iVar1 = *(int *)(iVar2 + 8);\n    }" ({ "{") (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "delete_node(*(undefined4 *)(iVar2 + 0xc));" (call_expression "delete_node(*(undefined4 *)(iVar2 + 0xc))" (identifier "delete_node") (argument_list "(*(undefined4 *)(iVar2 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(iVar2 + 8);" (assignment_expression "iVar1 = *(int *)(iVar2 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "delete_node(iVar2);" (call_expression "delete_node(iVar2)" (identifier "delete_node") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "delete_node(param_1);" (call_expression "delete_node(param_1)" (identifier "delete_node") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 8);
  if (*(int *)(param_1 + 8) != 0) {
    do {
      iVar2 = iVar1;
      delete_node(*(undefined4 *)(iVar2 + 0xc));
      iVar1 = *(int *)(iVar2 + 8);
    } while (*(int *)(iVar2 + 8) != 0);
    delete_node(iVar2);
    return;
  }
  delete_node(param_1);
  return;
}

