
int fts_set(FTS *sp,FTSENT *p,int instr)

{
  undefined4 *puVar1;
  
  if ((uint)instr < 5) {
    p->fts_instr = (ushort)instr;
    return 0;
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();
  *puVar1 = 0x16;
  return 1;
}



undefined4 fts_set(undefined4 param_1,int param_2,uint param_3)

{
  undefined4 *puVar1;
  
  if (param_3 < 5) {
    *(short *)(param_2 + 0x40) = (short)param_3;
    return 0;
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();
  *puVar1 = 0x16;
  return 1;
}


lui gp,0x2
addiu gp,gp,0x1aec
addu gp,gp,t9
sltiu v0,a2,0x5
beq v0,zero,0x0002c648
_or v1,zero,zero
sh a2,0x40(a1)
jr ra
_or v0,v1,zero
addiu sp,sp,-0x20
lw t9,-0x7ba4(gp)
sw ra,0x1c(sp)
sw gp,0x10(sp)
jalr t9
_nop
li v1,0x1
lw ra,0x1c(sp)
li a0,0x16
sw a0,0x0(v0)
or v0,v1,zero
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 fts_set(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}\n\n" (function_definition "undefined4 fts_set(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" type_identifier (function_declarator "fts_set(undefined4 param_1,int param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }" if (parenthesized_expression "(param_3 < 5)" ( (binary_expression "param_3 < 5" identifier < number_literal) )) (compound_statement "{\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }" { (expression_statement "*(short *)(param_2 + 0x40) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x40) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x40)" * (cast_expression "(short *)(param_2 + 0x40)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) )))) = (cast_expression "(short)param_3" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004656c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0004656c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004656c)" ( (pointer_expression "*(code *)PTR___errno_location_0004656c" * (cast_expression "(code *)PTR___errno_location_0004656c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0x16;" (assignment_expression "*puVar1 = 0x16" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int fts_set(FTS *sp,FTSENT *p,int instr)\n\n{\n  undefined4 *puVar1;\n  \n  if ((uint)instr < 5) {\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}\n\n" (function_definition "int fts_set(FTS *sp,FTSENT *p,int instr)\n\n{\n  undefined4 *puVar1;\n  \n  if ((uint)instr < 5) {\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" primitive_type (function_declarator "fts_set(FTS *sp,FTSENT *p,int instr)" identifier (parameter_list "(FTS *sp,FTSENT *p,int instr)" ( (parameter_declaration "FTS *sp" type_identifier (pointer_declarator "*sp" * identifier)) , (parameter_declaration "FTSENT *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int instr" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if ((uint)instr < 5) {\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if ((uint)instr < 5) {\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }" if (parenthesized_expression "((uint)instr < 5)" ( (binary_expression "(uint)instr < 5" (cast_expression "(uint)instr" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }" { (expression_statement "p->fts_instr = (ushort)instr;" (assignment_expression "p->fts_instr = (ushort)instr" (field_expression "p->fts_instr" identifier -> field_identifier) = (cast_expression "(ushort)instr" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004656c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0004656c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004656c)" ( (pointer_expression "*(code *)PTR___errno_location_0004656c" * (cast_expression "(code *)PTR___errno_location_0004656c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0x16;" (assignment_expression "*puVar1 = 0x16" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 fts_set(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}\n\n" (function_definition "undefined4 fts_set(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" type_identifier (function_declarator "fts_set(undefined4 param_1,int param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }" if (parenthesized_expression "(param_3 < 5)" ( (binary_expression "param_3 < 5" identifier < number_literal) )) (compound_statement "{\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }" { (expression_statement "*(short *)(param_2 + 0x40) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x40) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x40)" * (cast_expression "(short *)(param_2 + 0x40)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) )))) = (cast_expression "(short)param_3" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004656c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0004656c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004656c)" ( (pointer_expression "*(code *)PTR___errno_location_0004656c" * (cast_expression "(code *)PTR___errno_location_0004656c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0x16;" (assignment_expression "*puVar1 = 0x16" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (return_statement return LIT ;) })) (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 ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 fts_set(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "fts_set(undefined4 param_1,int param_2,uint param_3)" (identifier "fts_set") (parameter_list "(undefined4 param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();\n  *puVar1 = 0x16;\n  return 1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (param_3 < 5) {\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 < 5)" (( "(") (binary_expression "param_3 < 5" (identifier "param_3") (< "<") (number_literal "5")) () ")")) (compound_statement "{\n    *(short *)(param_2 + 0x40) = (short)param_3;\n    return 0;\n  }" ({ "{") (expression_statement "*(short *)(param_2 + 0x40) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x40) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x40)" (* "*") (cast_expression "(short *)(param_2 + 0x40)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x40)" (( "(") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (cast_expression "(short)param_3" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_3"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004656c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0004656c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004656c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0004656c" (* "*") (cast_expression "(code *)PTR___errno_location_0004656c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0004656c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0x16;" (assignment_expression "*puVar1 = 0x16" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0x16")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (return_statement (number_literal)))) (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))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1,int param_2,uint param_3)

{
  undefined4 *puVar1;
  
  if (param_3 < 5) {
    *(short *)(param_2 + 0x40) = (short)param_3;
    return 0;
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004656c)();
  *puVar1 = 0x16;
  return 1;
}

