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

{
  int *piVar1;
  
  if ((uint)instr < 5) {
    p->fts_instr = (ushort)instr;
    return 0;
  }
  piVar1 = __errno_location();
  *piVar1 = 0x16;
  return 1;
}



undefined8 fts_set(undefined8 param_1,long param_2,uint param_3)

{
  int *piVar1;
  
  if (param_3 < 5) {
    *(short *)(param_2 + 0x74) = (short)param_3;
    return 0;
  }
  piVar1 = __errno_location();
  *piVar1 = 0x16;
  return 1;
}


CMP EDX,0x4
JA 0x0012557d
MOV word ptr [RSI + 0x74],DX
MOV EAX,0x0
RET
SUB RSP,0x8
CALL 0x001070e0
MOV dword ptr [RAX],0x16
MOV EAX,0x1
ADD RSP,0x8
RET
(translation_unit "undefined8 fts_set(undefined8 param_1,long param_2,uint param_3)\n\n{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}\n\n" (function_definition "undefined8 fts_set(undefined8 param_1,long param_2,uint param_3)\n\n{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}" type_identifier (function_declarator "fts_set(undefined8 param_1,long param_2,uint param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,uint param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (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 + 0x74) = (short)param_3;\n    return 0;\n  }" { (expression_statement "*(short *)(param_2 + 0x74) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x74) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x74)" * (cast_expression "(short *)(param_2 + 0x74)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" 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 "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar1 = 0x16;" (assignment_expression "*piVar1 = 0x16" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int fts_set(FTS *sp,FTSENT *p,int instr)\n\n{\n  int *piVar1;\n  \n  if ((uint)instr < 5) {\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}\n\n" (function_definition "int fts_set(FTS *sp,FTSENT *p,int instr)\n\n{\n  int *piVar1;\n  \n  if ((uint)instr < 5) {\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 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  int *piVar1;\n  \n  if ((uint)instr < 5) {\n    p->fts_instr = (ushort)instr;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * 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 "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar1 = 0x16;" (assignment_expression "*piVar1 = 0x16" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined8 fts_set(undefined8 param_1,long param_2,uint param_3)\n\n{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}\n\n" (function_definition "undefined8 fts_set(undefined8 param_1,long param_2,uint param_3)\n\n{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}" type_identifier (function_declarator "fts_set(undefined8 param_1,long param_2,uint param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,uint param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (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 + 0x74) = (short)param_3;\n    return 0;\n  }" { (expression_statement "*(short *)(param_2 + 0x74) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x74) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x74)" * (cast_expression "(short *)(param_2 + 0x74)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" 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 "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar1 = 0x16;" (assignment_expression "*piVar1 = 0x16" (pointer_expression "*piVar1" * 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 (sized_type_specifier long) 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 = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 fts_set(undefined8 param_1,long param_2,uint param_3)\n\n{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "fts_set(undefined8 param_1,long param_2,uint param_3)" (identifier "fts_set") (parameter_list "(undefined8 param_1,long param_2,uint param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (short)param_3;\n    return 0;\n  }\n  piVar1 = __errno_location();\n  *piVar1 = 0x16;\n  return 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (if_statement "if (param_3 < 5) {\n    *(short *)(param_2 + 0x74) = (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 + 0x74) = (short)param_3;\n    return 0;\n  }" ({ "{") (expression_statement "*(short *)(param_2 + 0x74) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x74) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x74)" (* "*") (cast_expression "(short *)(param_2 + 0x74)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x74)" (( "(") (binary_expression "param_2 + 0x74" (identifier "param_2") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (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 "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" (identifier "piVar1") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar1 = 0x16;" (assignment_expression "*piVar1 = 0x16" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0x16")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(type_1 *sp,type_2 *p,int instr)

{
  int *piVar1;
  
  if ((type_3)instr < 5) {
    p->fts_instr = (type_4)instr;
    return 0;
  }
  piVar1 = var_1();
  *piVar1 = 0x16;
  return 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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))))

undefined8 MASKED(undefined8 param_1,long param_2,uint param_3)

{
  int *piVar1;
  
  if (param_3 < 5) {
    *(short *)(param_2 + 0x74) = (short)param_3;
    return 0;
  }
  piVar1 = __errno_location();
  *piVar1 = 0x16;
  return 1;
}

