
filestruct * copy_filestruct(filestruct *src)

{
  filestruct *src_00;
  filestruct *pfVar1;
  filestruct *pfVar2;
  filestruct *pfVar3;
  
  pfVar2 = copy_node(src);
  src_00 = src->next;
  pfVar2->prev = (filestruct *)0x0;
  pfVar1 = pfVar2;
  while (src_00 != (filestruct *)0x0) {
    pfVar3 = copy_node(src_00);
    pfVar1->next = pfVar3;
    src_00 = src_00->next;
    pfVar3->prev = pfVar1;
    pfVar1 = pfVar3;
  }
  pfVar1->next = (filestruct *)0x0;
  return pfVar2;
}



int FUN_000256d0(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar3 = FUN_00025550(param_1);
  iVar1 = *(int *)(param_1 + 8);
  *(undefined4 *)(iVar3 + 0xc) = 0;
  iVar2 = iVar3;
  while (iVar1 != 0) {
    iVar4 = FUN_00025550(iVar1);
    *(int *)(iVar2 + 8) = iVar4;
    iVar1 = *(int *)(iVar1 + 8);
    *(int *)(iVar4 + 0xc) = iVar2;
    iVar2 = iVar4;
  }
  *(undefined4 *)(iVar2 + 8) = 0;
  return iVar3;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
SUB ESP,0xc
PUSH EBX
CALL 0x00025550
MOV EBX,dword ptr [EBX + 0x8]
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [EAX + 0xc],0x0
TEST EBX,EBX
JZ 0x00025713
MOV ESI,EAX
LEA ESI,[ESI]
SUB ESP,0xc
PUSH EBX
CALL 0x00025550
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
MOV EBX,dword ptr [EBX + 0x8]
MOV dword ptr [EAX + 0xc],ESI
MOV ESI,EAX
TEST EBX,EBX
JNZ 0x000256f8
MOV dword ptr [EAX + 0x8],0x0
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "int FUN_000256d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}\n\n" (function_definition "int FUN_000256d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000256d0(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  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar3 = FUN_00025550(param_1);" (assignment_expression "iVar3 = FUN_00025550(param_1)" identifier = (call_expression "FUN_00025550(param_1)" identifier (argument_list "(param_1)" ( 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) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }" { (expression_statement "iVar4 = FUN_00025550(iVar1);" (assignment_expression "iVar4 = FUN_00025550(iVar1)" identifier = (call_expression "FUN_00025550(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "*(int *)(iVar2 + 8) = iVar4;" (assignment_expression "*(int *)(iVar2 + 8) = iVar4" (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) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar4 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar4 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "filestruct * copy_filestruct(filestruct *src)\n\n{\n  filestruct *src_00;\n  filestruct *pfVar1;\n  filestruct *pfVar2;\n  filestruct *pfVar3;\n  \n  pfVar2 = copy_node(src);\n  src_00 = src->next;\n  pfVar2->prev = (filestruct *)0x0;\n  pfVar1 = pfVar2;\n  while (src_00 != (filestruct *)0x0) {\n    pfVar3 = copy_node(src_00);\n    pfVar1->next = pfVar3;\n    src_00 = src_00->next;\n    pfVar3->prev = pfVar1;\n    pfVar1 = pfVar3;\n  }\n  pfVar1->next = (filestruct *)0x0;\n  return pfVar2;\n}\n\n" (function_definition "filestruct * copy_filestruct(filestruct *src)\n\n{\n  filestruct *src_00;\n  filestruct *pfVar1;\n  filestruct *pfVar2;\n  filestruct *pfVar3;\n  \n  pfVar2 = copy_node(src);\n  src_00 = src->next;\n  pfVar2->prev = (filestruct *)0x0;\n  pfVar1 = pfVar2;\n  while (src_00 != (filestruct *)0x0) {\n    pfVar3 = copy_node(src_00);\n    pfVar1->next = pfVar3;\n    src_00 = src_00->next;\n    pfVar3->prev = pfVar1;\n    pfVar1 = pfVar3;\n  }\n  pfVar1->next = (filestruct *)0x0;\n  return pfVar2;\n}" type_identifier (pointer_declarator "* copy_filestruct(filestruct *src)" * (function_declarator "copy_filestruct(filestruct *src)" identifier (parameter_list "(filestruct *src)" ( (parameter_declaration "filestruct *src" type_identifier (pointer_declarator "*src" * identifier)) )))) (compound_statement "{\n  filestruct *src_00;\n  filestruct *pfVar1;\n  filestruct *pfVar2;\n  filestruct *pfVar3;\n  \n  pfVar2 = copy_node(src);\n  src_00 = src->next;\n  pfVar2->prev = (filestruct *)0x0;\n  pfVar1 = pfVar2;\n  while (src_00 != (filestruct *)0x0) {\n    pfVar3 = copy_node(src_00);\n    pfVar1->next = pfVar3;\n    src_00 = src_00->next;\n    pfVar3->prev = pfVar1;\n    pfVar1 = pfVar3;\n  }\n  pfVar1->next = (filestruct *)0x0;\n  return pfVar2;\n}" { (declaration "filestruct *src_00;" type_identifier (pointer_declarator "*src_00" * identifier) ;) (declaration "filestruct *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "filestruct *pfVar2;" type_identifier (pointer_declarator "*pfVar2" * identifier) ;) (declaration "filestruct *pfVar3;" type_identifier (pointer_declarator "*pfVar3" * identifier) ;) (expression_statement "pfVar2 = copy_node(src);" (assignment_expression "pfVar2 = copy_node(src)" identifier = (call_expression "copy_node(src)" identifier (argument_list "(src)" ( identifier )))) ;) (expression_statement "src_00 = src->next;" (assignment_expression "src_00 = src->next" identifier = (field_expression "src->next" identifier -> field_identifier)) ;) (expression_statement "pfVar2->prev = (filestruct *)0x0;" (assignment_expression "pfVar2->prev = (filestruct *)0x0" (field_expression "pfVar2->prev" identifier -> field_identifier) = (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pfVar1 = pfVar2;" (assignment_expression "pfVar1 = pfVar2" identifier = identifier) ;) (while_statement "while (src_00 != (filestruct *)0x0) {\n    pfVar3 = copy_node(src_00);\n    pfVar1->next = pfVar3;\n    src_00 = src_00->next;\n    pfVar3->prev = pfVar1;\n    pfVar1 = pfVar3;\n  }" while (parenthesized_expression "(src_00 != (filestruct *)0x0)" ( (binary_expression "src_00 != (filestruct *)0x0" identifier != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pfVar3 = copy_node(src_00);\n    pfVar1->next = pfVar3;\n    src_00 = src_00->next;\n    pfVar3->prev = pfVar1;\n    pfVar1 = pfVar3;\n  }" { (expression_statement "pfVar3 = copy_node(src_00);" (assignment_expression "pfVar3 = copy_node(src_00)" identifier = (call_expression "copy_node(src_00)" identifier (argument_list "(src_00)" ( identifier )))) ;) (expression_statement "pfVar1->next = pfVar3;" (assignment_expression "pfVar1->next = pfVar3" (field_expression "pfVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "src_00 = src_00->next;" (assignment_expression "src_00 = src_00->next" identifier = (field_expression "src_00->next" identifier -> field_identifier)) ;) (expression_statement "pfVar3->prev = pfVar1;" (assignment_expression "pfVar3->prev = pfVar1" (field_expression "pfVar3->prev" identifier -> field_identifier) = identifier) ;) (expression_statement "pfVar1 = pfVar3;" (assignment_expression "pfVar1 = pfVar3" identifier = identifier) ;) })) (expression_statement "pfVar1->next = (filestruct *)0x0;" (assignment_expression "pfVar1->next = (filestruct *)0x0" (field_expression "pfVar1->next" identifier -> field_identifier) = (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pfVar2;" return identifier ;) })))
(translation_unit "int FUN_000256d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}\n\n" (function_definition "int FUN_000256d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000256d0(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  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar3 = FUN_00025550(param_1);" (assignment_expression "iVar3 = FUN_00025550(param_1)" identifier = (call_expression "FUN_00025550(param_1)" identifier (argument_list "(param_1)" ( 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) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }" { (expression_statement "iVar4 = FUN_00025550(iVar1);" (assignment_expression "iVar4 = FUN_00025550(iVar1)" identifier = (call_expression "FUN_00025550(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "*(int *)(iVar2 + 8) = iVar4;" (assignment_expression "*(int *)(iVar2 + 8) = iVar4" (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) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar4 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar4 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_000256d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000256d0(int param_1)" (identifier "FUN_000256d0") (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  int iVar3;\n  int iVar4;\n  \n  iVar3 = FUN_00025550(param_1);\n  iVar1 = *(int *)(param_1 + 8);\n  *(undefined4 *)(iVar3 + 0xc) = 0;\n  iVar2 = iVar3;\n  while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }\n  *(undefined4 *)(iVar2 + 8) = 0;\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar3 = FUN_00025550(param_1);" (assignment_expression "iVar3 = FUN_00025550(param_1)" (identifier "iVar3") (= "=") (call_expression "FUN_00025550(param_1)" (identifier "FUN_00025550") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (while_statement "while (iVar1 != 0) {\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = FUN_00025550(iVar1);\n    *(int *)(iVar2 + 8) = iVar4;\n    iVar1 = *(int *)(iVar1 + 8);\n    *(int *)(iVar4 + 0xc) = iVar2;\n    iVar2 = iVar4;\n  }" ({ "{") (expression_statement "iVar4 = FUN_00025550(iVar1);" (assignment_expression "iVar4 = FUN_00025550(iVar1)" (identifier "iVar4") (= "=") (call_expression "FUN_00025550(iVar1)" (identifier "FUN_00025550") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "*(int *)(iVar2 + 8) = iVar4;" (assignment_expression "*(int *)(iVar2 + 8) = iVar4" (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")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar4 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar4 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar4 + 0xc)" (* "*") (cast_expression "(int *)(iVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

type_1 * function_1(type_1 *src)

{
  type_1 *var_2;
  type_1 *pfVar1;
  type_1 *pfVar2;
  type_1 *pfVar3;
  
  pfVar2 = var_1(src);
  var_2 = src->next;
  pfVar2->prev = (type_1 *)0x0;
  pfVar1 = pfVar2;
  while (var_2 != (type_1 *)0x0) {
    pfVar3 = var_1(var_2);
    pfVar1->next = pfVar3;
    var_2 = var_2->next;
    pfVar3->prev = pfVar1;
    pfVar1 = pfVar3;
  }
  pfVar1->next = (type_1 *)0x0;
  return pfVar2;
}


(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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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))))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar3 = FUN_00025550(param_1);
  iVar1 = *(int *)(param_1 + 8);
  *(undefined4 *)(iVar3 + 0xc) = 0;
  iVar2 = iVar3;
  while (iVar1 != 0) {
    iVar4 = FUN_00025550(iVar1);
    *(int *)(iVar2 + 8) = iVar4;
    iVar1 = *(int *)(iVar1 + 8);
    *(int *)(iVar4 + 0xc) = iVar2;
    iVar2 = iVar4;
  }
  *(undefined4 *)(iVar2 + 8) = 0;
  return iVar3;
}

