
line_input_t * new_line_input_t(int flags)

{
  line_input_t *plVar1;
  
  plVar1 = (line_input_t *)(*(code *)PTR_xzalloc_001311c8)(0x58);
  plVar1->flags = flags;
  plVar1->timeout = -1;
  plVar1->max_history = 0xf;
  return plVar1;
}



void FUN_000f7f70(undefined4 param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);
  *puVar1 = param_1;
  puVar1[1] = 0xffffffff;
  puVar1[5] = 0xf;
  return;
}


lui gp,0x4
addiu gp,gp,0x11e0
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
li a0,0x58
lw t9,-0x7f88(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw s0,0x0(v0)
li a0,-0x1
sw a0,0x4(v0)
li a0,0xf
sw a0,0x14(v0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_000f7f70(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}\n\n" (function_definition "void FUN_000f7f70(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}" primitive_type (function_declarator "FUN_000f7f70(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_001311c8)(0x58)" (parenthesized_expression "(*(code *)PTR_FUN_001311c8)" ( (pointer_expression "*(code *)PTR_FUN_001311c8" * (cast_expression "(code *)PTR_FUN_001311c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x58)" ( number_literal ))))) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0xffffffff;" (assignment_expression "puVar1[1] = 0xffffffff" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0xf;" (assignment_expression "puVar1[5] = 0xf" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "line_input_t * new_line_input_t(int flags)\n\n{\n  line_input_t *plVar1;\n  \n  plVar1 = (line_input_t *)(*(code *)PTR_xzalloc_001311c8)(0x58);\n  plVar1->flags = flags;\n  plVar1->timeout = -1;\n  plVar1->max_history = 0xf;\n  return plVar1;\n}\n\n" (function_definition "line_input_t * new_line_input_t(int flags)\n\n{\n  line_input_t *plVar1;\n  \n  plVar1 = (line_input_t *)(*(code *)PTR_xzalloc_001311c8)(0x58);\n  plVar1->flags = flags;\n  plVar1->timeout = -1;\n  plVar1->max_history = 0xf;\n  return plVar1;\n}" type_identifier (pointer_declarator "* new_line_input_t(int flags)" * (function_declarator "new_line_input_t(int flags)" identifier (parameter_list "(int flags)" ( (parameter_declaration "int flags" primitive_type identifier) )))) (compound_statement "{\n  line_input_t *plVar1;\n  \n  plVar1 = (line_input_t *)(*(code *)PTR_xzalloc_001311c8)(0x58);\n  plVar1->flags = flags;\n  plVar1->timeout = -1;\n  plVar1->max_history = 0xf;\n  return plVar1;\n}" { (declaration "line_input_t *plVar1;" type_identifier (pointer_declarator "*plVar1" * identifier) ;) (expression_statement "plVar1 = (line_input_t *)(*(code *)PTR_xzalloc_001311c8)(0x58);" (assignment_expression "plVar1 = (line_input_t *)(*(code *)PTR_xzalloc_001311c8)(0x58)" identifier = (cast_expression "(line_input_t *)(*(code *)PTR_xzalloc_001311c8)(0x58)" ( (type_descriptor "line_input_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xzalloc_001311c8)(0x58)" (parenthesized_expression "(*(code *)PTR_xzalloc_001311c8)" ( (pointer_expression "*(code *)PTR_xzalloc_001311c8" * (cast_expression "(code *)PTR_xzalloc_001311c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x58)" ( number_literal ))))) ;) (expression_statement "plVar1->flags = flags;" (assignment_expression "plVar1->flags = flags" (field_expression "plVar1->flags" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar1->timeout = -1;" (assignment_expression "plVar1->timeout = -1" (field_expression "plVar1->timeout" identifier -> field_identifier) = number_literal) ;) (expression_statement "plVar1->max_history = 0xf;" (assignment_expression "plVar1->max_history = 0xf" (field_expression "plVar1->max_history" identifier -> field_identifier) = number_literal) ;) (return_statement "return plVar1;" return identifier ;) })))
(translation_unit "void FUN_000f7f70(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}\n\n" (function_definition "void FUN_000f7f70(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}" primitive_type (function_declarator "FUN_000f7f70(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_001311c8)(0x58)" (parenthesized_expression "(*(code *)PTR_FUN_001311c8)" ( (pointer_expression "*(code *)PTR_FUN_001311c8" * (cast_expression "(code *)PTR_FUN_001311c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x58)" ( number_literal ))))) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0xffffffff;" (assignment_expression "puVar1[1] = 0xffffffff" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0xf;" (assignment_expression "puVar1[5] = 0xf" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_000f7f70(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000f7f70(undefined4 param_1)" (identifier "FUN_000f7f70") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);\n  *puVar1 = param_1;\n  puVar1[1] = 0xffffffff;\n  puVar1[5] = 0xf;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_FUN_001311c8)(0x58)" (parenthesized_expression "(*(code *)PTR_FUN_001311c8)" (( "(") (pointer_expression "*(code *)PTR_FUN_001311c8" (* "*") (cast_expression "(code *)PTR_FUN_001311c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_001311c8"))) () ")")) (argument_list "(0x58)" (( "(") (number_literal "0x58") () ")"))))) (; ";")) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1[1] = 0xffffffff;" (assignment_expression "puVar1[1] = 0xffffffff" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar1[5] = 0xf;" (assignment_expression "puVar1[5] = 0xf" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0xf")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 * function_1(int flags)

{
  type_1 *plVar1;
  
  plVar1 = (type_1 *)(*(type_2 *)PTR_xzalloc_001311c8)(0x58);
  plVar1->flags = flags;
  plVar1->timeout = -1;
  plVar1->max_history = 0xf;
  return plVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

void MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)(*(code *)PTR_FUN_001311c8)(0x58);
  *puVar1 = param_1;
  puVar1[1] = 0xffffffff;
  puVar1[5] = 0xf;
  return;
}

