
int MHD_socket_nonblocking_(MHD_socket sock)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(sock,3);
  if (uVar1 == 0xffffffff) {
    return 0;
  }
  if ((uVar1 | 0x80) == uVar1) {
    return 1;
  }
  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(sock,4);
  return (uint)(iVar2 == 0);
}



bool FUN_00022234(undefined4 param_1)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);
  if (uVar1 == 0xffffffff) {
    return false;
  }
  if ((uVar1 | 0x80) == uVar1) {
    return true;
  }
  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);
  return iVar2 == 0;
}


lui gp,0x2
addiu gp,gp,0x4dfc
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7e60(gp)
li a1,0x3
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
jalr t9
_or s0,a0,zero
li v1,-0x1
beq v0,v1,0x000222ac
_lw gp,0x10(sp)
ori a2,v0,0x80
bne a2,v0,0x00022288
_lw ra,0x1c(sp)
li v0,0x1
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7e60(gp)
li a1,0x4
jalr t9
_or a0,s0,zero
lw ra,0x1c(sp)
sltiu v0,v0,0x1
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "bool FUN_00022234(undefined4 param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}\n\n" (function_definition "bool FUN_00022234(undefined4 param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}" primitive_type (function_declarator "FUN_00022234(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(param_1,3)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" ( (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" * (cast_expression "(code *)PTR_fcntl64_0003f1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,3)" ( identifier , number_literal )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n    return false;\n  }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (if_statement "if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }" if (parenthesized_expression "((uVar1 | 0x80) == uVar1)" ( (binary_expression "(uVar1 | 0x80) == uVar1" (parenthesized_expression "(uVar1 | 0x80)" ( (binary_expression "uVar1 | 0x80" identifier | number_literal) )) == identifier) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(param_1,4)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" ( (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" * (cast_expression "(code *)PTR_fcntl64_0003f1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,4)" ( identifier , number_literal )))) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(translation_unit "int MHD_socket_nonblocking_(MHD_socket sock)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(sock,3);\n  if (uVar1 == 0xffffffff) {\n    return 0;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(sock,4);\n  return (uint)(iVar2 == 0);\n}\n\n" (function_definition "int MHD_socket_nonblocking_(MHD_socket sock)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(sock,3);\n  if (uVar1 == 0xffffffff) {\n    return 0;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(sock,4);\n  return (uint)(iVar2 == 0);\n}" primitive_type (function_declarator "MHD_socket_nonblocking_(MHD_socket sock)" identifier (parameter_list "(MHD_socket sock)" ( (parameter_declaration "MHD_socket sock" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(sock,3);\n  if (uVar1 == 0xffffffff) {\n    return 0;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(sock,4);\n  return (uint)(iVar2 == 0);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(sock,3);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(sock,3)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(sock,3)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" ( (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" * (cast_expression "(code *)PTR_fcntl64_0003f1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sock,3)" ( identifier , number_literal )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n    return 0;\n  }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((uVar1 | 0x80) == uVar1) {\n    return 1;\n  }" if (parenthesized_expression "((uVar1 | 0x80) == uVar1)" ( (binary_expression "(uVar1 | 0x80) == uVar1" (parenthesized_expression "(uVar1 | 0x80)" ( (binary_expression "uVar1 | 0x80" identifier | number_literal) )) == identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(sock,4);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(sock,4)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(sock,4)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" ( (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" * (cast_expression "(code *)PTR_fcntl64_0003f1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sock,4)" ( identifier , number_literal )))) ;) (return_statement "return (uint)(iVar2 == 0);" return (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "bool FUN_00022234(undefined4 param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}\n\n" (function_definition "bool FUN_00022234(undefined4 param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}" primitive_type (function_declarator "FUN_00022234(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(param_1,3)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" ( (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" * (cast_expression "(code *)PTR_fcntl64_0003f1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,3)" ( identifier , number_literal )))) ;) (if_statement "if (uVar1 == 0xffffffff) {\n    return false;\n  }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (if_statement "if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }" if (parenthesized_expression "((uVar1 | 0x80) == uVar1)" ( (binary_expression "(uVar1 | 0x80) == uVar1" (parenthesized_expression "(uVar1 | 0x80)" ( (binary_expression "uVar1 | 0x80" identifier | number_literal) )) == identifier) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(param_1,4)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" ( (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" * (cast_expression "(code *)PTR_fcntl64_0003f1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,4)" ( identifier , number_literal )))) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return BOOL ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT | LIT) )) == IDENT) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (return_statement return (binary_expression IDENT == LIT) ;) })))
(function_definition "bool FUN_00022234(undefined4 param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}" (primitive_type "bool") (function_declarator "FUN_00022234(undefined4 param_1)" (identifier "FUN_00022234") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);\n  if (uVar1 == 0xffffffff) {\n    return false;\n  }\n  if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }\n  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);\n  return iVar2 == 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);" (assignment_expression "uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(param_1,3)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" (* "*") (cast_expression "(code *)PTR_fcntl64_0003f1d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_0003f1d0"))) () ")")) (argument_list "(param_1,3)" (( "(") (identifier "param_1") (, ",") (number_literal "3") () ")")))) (; ";")) (if_statement "if (uVar1 == 0xffffffff) {\n    return false;\n  }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    return false;\n  }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (if_statement "if ((uVar1 | 0x80) == uVar1) {\n    return true;\n  }" (if "if") (parenthesized_expression "((uVar1 | 0x80) == uVar1)" (( "(") (binary_expression "(uVar1 | 0x80) == uVar1" (parenthesized_expression "(uVar1 | 0x80)" (( "(") (binary_expression "uVar1 | 0x80" (identifier "uVar1") (| "|") (number_literal "0x80")) () ")")) (== "==") (identifier "uVar1")) () ")")) (compound_statement "{\n    return true;\n  }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_fcntl64_0003f1d0)(param_1,4)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003f1d0)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_0003f1d0" (* "*") (cast_expression "(code *)PTR_fcntl64_0003f1d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_0003f1d0"))) () ")")) (argument_list "(param_1,4)" (( "(") (identifier "param_1") (, ",") (number_literal "4") () ")")))) (; ";")) (return_statement "return iVar2 == 0;" (return "return") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (; ";")) (} "}")))
(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: (identifier)) (declaration type: (primitive_type) 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (false)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) consequence: (compound_statement (return_statement (true)))) (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))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

bool MASKED(undefined4 param_1)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,3);
  if (uVar1 == 0xffffffff) {
    return false;
  }
  if ((uVar1 | 0x80) == uVar1) {
    return true;
  }
  iVar2 = (*(code *)PTR_fcntl64_0003f1d0)(param_1,4);
  return iVar2 == 0;
}

