
int sh_unset_nodelay_mode(int fd)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  
  uVar1 = (*(code *)PTR_fcntl64_001462dc)(fd,3,0);
  if ((int)uVar1 < 0) {
    uVar3 = 0xffffffff;
  }
  else {
    uVar3 = uVar1 & 0x80;
    if (uVar3 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);
      return iVar2;
    }
  }
  return uVar3;
}



uint sh_unset_nodelay_mode(undefined4 param_1)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);
  if ((int)uVar1 < 0) {
    uVar2 = 0xffffffff;
  }
  else {
    uVar2 = uVar1 & 0x80;
    if (uVar2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);
      return uVar1;
    }
  }
  return uVar2;
}


lui gp,0x11
addiu gp,gp,-0x4bec
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x6264(gp)
or a2,zero,zero
li a1,0x3
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
jalr t9
_or s0,a0,zero
bltz v0,0x000411a4
_lw gp,0x10(sp)
andi v1,v0,0x80
bne v1,zero,0x00041184
_lw ra,0x1c(sp)
lw ra,0x1c(sp)
or v0,v1,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
li a2,-0x81
or a0,s0,zero
lw t9,-0x6264(gp)
lw s0,0x18(sp)
li a1,0x4
addiu sp,sp,0x20
jr t9
_and a2,v0,a2
b 0x00041170
_li v1,-0x1
(translation_unit "uint sh_unset_nodelay_mode(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "uint sh_unset_nodelay_mode(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "sh_unset_nodelay_mode(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0)" identifier = (call_expression "(*(code *)PTR_fcntl64_001462dc)(param_1,3,0)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" ( (pointer_expression "*(code *)PTR_fcntl64_001462dc" * (cast_expression "(code *)PTR_fcntl64_001462dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,3,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" { (expression_statement "uVar2 = uVar1 & 0x80;" (assignment_expression "uVar2 = uVar1 & 0x80" identifier = (binary_expression "uVar1 & 0x80" identifier & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }" { comment comment (expression_statement "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f)" identifier = (call_expression "(*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" ( (pointer_expression "*(code *)PTR_fcntl64_001462dc" * (cast_expression "(code *)PTR_fcntl64_001462dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,4,uVar1 & 0xffffff7f)" ( identifier , number_literal , (binary_expression "uVar1 & 0xffffff7f" identifier & number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int sh_unset_nodelay_mode(int fd)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(fd,3,0);\n  if ((int)uVar1 < 0) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n    uVar3 = uVar1 & 0x80;\n    if (uVar3 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "int sh_unset_nodelay_mode(int fd)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(fd,3,0);\n  if ((int)uVar1 < 0) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n    uVar3 = uVar1 & 0x80;\n    if (uVar3 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }\n  }\n  return uVar3;\n}" primitive_type (function_declarator "sh_unset_nodelay_mode(int fd)" identifier (parameter_list "(int fd)" ( (parameter_declaration "int fd" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(fd,3,0);\n  if ((int)uVar1 < 0) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n    uVar3 = uVar1 & 0x80;\n    if (uVar3 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }\n  }\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_001462dc)(fd,3,0);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_001462dc)(fd,3,0)" identifier = (call_expression "(*(code *)PTR_fcntl64_001462dc)(fd,3,0)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" ( (pointer_expression "*(code *)PTR_fcntl64_001462dc" * (cast_expression "(code *)PTR_fcntl64_001462dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,3,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if ((int)uVar1 < 0) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n    uVar3 = uVar1 & 0x80;\n    if (uVar3 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar3 = 0xffffffff;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = uVar1 & 0x80;\n    if (uVar3 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }\n  }" else (compound_statement "{\n    uVar3 = uVar1 & 0x80;\n    if (uVar3 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }\n  }" { (expression_statement "uVar3 = uVar1 & 0x80;" (assignment_expression "uVar3 = uVar1 & 0x80" identifier = (binary_expression "uVar1 & 0x80" identifier & number_literal)) ;) (if_statement "if (uVar3 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);\n      return iVar2;\n    }" { comment comment (expression_statement "iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f)" identifier = (call_expression "(*(code *)PTR_fcntl64_001462dc)(fd,4,uVar1 & 0xffffff7f)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" ( (pointer_expression "*(code *)PTR_fcntl64_001462dc" * (cast_expression "(code *)PTR_fcntl64_001462dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,4,uVar1 & 0xffffff7f)" ( identifier , number_literal , (binary_expression "uVar1 & 0xffffff7f" identifier & number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "uint sh_unset_nodelay_mode(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "uint sh_unset_nodelay_mode(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "sh_unset_nodelay_mode(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0)" identifier = (call_expression "(*(code *)PTR_fcntl64_001462dc)(param_1,3,0)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" ( (pointer_expression "*(code *)PTR_fcntl64_001462dc" * (cast_expression "(code *)PTR_fcntl64_001462dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,3,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" { (expression_statement "uVar2 = uVar1 & 0x80;" (assignment_expression "uVar2 = uVar1 & 0x80" identifier = (binary_expression "uVar1 & 0x80" identifier & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f)" identifier = (call_expression "(*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" ( (pointer_expression "*(code *)PTR_fcntl64_001462dc" * (cast_expression "(code *)PTR_fcntl64_001462dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,4,uVar1 & 0xffffff7f)" ( identifier , number_literal , (binary_expression "uVar1 & 0xffffff7f" identifier & number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT & LIT) )))) ;) (return_statement return IDENT ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "uint sh_unset_nodelay_mode(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}" (type_identifier "uint") (function_declarator "sh_unset_nodelay_mode(undefined4 param_1)" (identifier "sh_unset_nodelay_mode") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);\n  if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fcntl64_001462dc)(param_1,3,0)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_001462dc" (* "*") (cast_expression "(code *)PTR_fcntl64_001462dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_001462dc"))) () ")")) (argument_list "(param_1,3,0)" (( "(") (identifier "param_1") (, ",") (number_literal "3") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((int)uVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" (if "if") (parenthesized_expression "((int)uVar1 < 0)" (( "(") (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" (else "else") (compound_statement "{\n    uVar2 = uVar1 & 0x80;\n    if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }\n  }" ({ "{") (expression_statement "uVar2 = uVar1 & 0x80;" (assignment_expression "uVar2 = uVar1 & 0x80" (identifier "uVar2") (= "=") (binary_expression "uVar1 & 0x80" (identifier "uVar1") (& "&") (number_literal "0x80"))) (; ";")) (if_statement "if (uVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f)" (parenthesized_expression "(*(code *)PTR_fcntl64_001462dc)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_001462dc" (* "*") (cast_expression "(code *)PTR_fcntl64_001462dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_001462dc"))) () ")")) (argument_list "(param_1,4,uVar1 & 0xffffff7f)" (( "(") (identifier "param_1") (, ",") (number_literal "4") (, ",") (binary_expression "uVar1 & 0xffffff7f" (identifier "uVar1") (& "&") (number_literal "0xffffff7f")) () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(int fd)

{
  type_1 var_1;
  int iVar2;
  type_1 var_2;
  
  var_1 = (*(type_2 *)PTR_fcntl64_001462dc)(fd,3,0);
  if ((int)var_1 < 0) {
    var_2 = 0xffffffff;
  }
  else {
    var_2 = var_1 & 0x80;
    if (var_2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar2 = (*(type_2 *)PTR_fcntl64_001462dc)(fd,4,var_1 & 0xffffff7f);
      return iVar2;
    }
  }
  return var_2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier))))))) (return_statement (identifier)))))

uint MASKED(undefined4 param_1)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,3,0);
  if ((int)uVar1 < 0) {
    uVar2 = 0xffffffff;
  }
  else {
    uVar2 = uVar1 & 0x80;
    if (uVar2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0004119c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (*(code *)PTR_fcntl64_001462dc)(param_1,4,uVar1 & 0xffffff7f);
      return uVar1;
    }
  }
  return uVar2;
}

