
int wgnutls_poll(int fd,double timeout,int wait_for,void *arg)

{
  int iVar1;
  undefined4 in_a3;
  undefined4 *in_stack_00000014;
  
  if ((double)CONCAT44(arg,in_a3) == 0.0) {
    if (in_stack_00000014[0x83] == 0) {
      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);
      return (uint)(iVar1 != 0);
    }
  }
  else if ((in_stack_00000014[0x83] == 0) &&
          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),
          iVar1 == 0)) {
    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);
    return (uint)(iVar1 != 0);
  }
  return 1;
}



bool FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 *param_6)

{
  int iVar1;
  
  if ((double)CONCAT44(param_3,param_4) == 0.0) {
    if (param_6[0x83] == 0) {
      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);
      return iVar1 != 0;
    }
  }
  else if ((param_6[0x83] == 0) &&
          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {
    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);
    return iVar1 != 0;
  }
  return true;
}


lui gp,0x6
addiu gp,gp,-0x7b50
addu gp,gp,t9
mtc1 zero,f0
addiu sp,sp,-0x28
mtc1 a3,f2
lw v0,0x3c(sp)
sw gp,0x18(sp)
sw ra,0x24(sp)
sw s0,0x20(sp)
mthc1 zero,f0
mthc1 a2,f2
c.eq.D f2,f0
bc1t 0x0005efd8
_lw v1,0x20c(v0)
beq v1,zero,0x0005effc
_lw t9,-0x77ac(gp)
li v0,0x1
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
bne v1,zero,0x0005efc4
_lw t9,-0x77ac(gp)
jalr t9
_lw a0,0x0(v0)
lw ra,0x24(sp)
sltu v0,zero,v0
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
or s0,a0,zero
lw a0,0x0(v0)
sw a3,0x34(sp)
jalr t9
_sw a2,0x30(sp)
lw gp,0x18(sp)
lw a3,0x34(sp)
bne v0,zero,0x0005efc4
_lw a2,0x30(sp)
lw v0,0x38(sp)
or a0,s0,zero
lw t9,-0x7e70(gp)
jalr t9
_sw v0,0x10(sp)
b 0x0005efc8
_sltu v0,zero,v0
(translation_unit "bool FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)\n\n{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}\n\n" (function_definition "bool FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)\n\n{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}" primitive_type (function_declarator "FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" if (parenthesized_expression "((double)CONCAT44(param_3,param_4) == 0.0)" ( (binary_expression "(double)CONCAT44(param_3,param_4) == 0.0" (cast_expression "(double)CONCAT44(param_3,param_4)" ( (type_descriptor "double" primitive_type) ) (call_expression "CONCAT44(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) == number_literal) )) (compound_statement "{\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }" { (if_statement "if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }" if (parenthesized_expression "(param_6[0x83] == 0)" ( (binary_expression "param_6[0x83] == 0" (subscript_expression "param_6[0x83]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" identifier = (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" ( (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" * (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })) }) (else_clause "else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" else (if_statement "if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" if (parenthesized_expression "((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0))" ( (binary_expression "(param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)" (parenthesized_expression "(param_6[0x83] == 0)" ( (binary_expression "param_6[0x83] == 0" (subscript_expression "param_6[0x83]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" identifier = (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" ( (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" * (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "(*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_select_fd_000af5c0)" ( (pointer_expression "*(code *)PTR_select_fd_000af5c0" * (cast_expression "(code *)PTR_select_fd_000af5c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })))) (return_statement "return true;" return true ;) })))
(translation_unit "int wgnutls_poll(int fd,double timeout,int wait_for,void *arg)\n\n{\n  int iVar1;\n  undefined4 in_a3;\n  undefined4 *in_stack_00000014;\n  \n  if ((double)CONCAT44(arg,in_a3) == 0.0) {\n    if (in_stack_00000014[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);\n      return (uint)(iVar1 != 0);\n    }\n  }\n  else if ((in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);\n    return (uint)(iVar1 != 0);\n  }\n  return 1;\n}\n\n" (function_definition "int wgnutls_poll(int fd,double timeout,int wait_for,void *arg)\n\n{\n  int iVar1;\n  undefined4 in_a3;\n  undefined4 *in_stack_00000014;\n  \n  if ((double)CONCAT44(arg,in_a3) == 0.0) {\n    if (in_stack_00000014[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);\n      return (uint)(iVar1 != 0);\n    }\n  }\n  else if ((in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);\n    return (uint)(iVar1 != 0);\n  }\n  return 1;\n}" primitive_type (function_declarator "wgnutls_poll(int fd,double timeout,int wait_for,void *arg)" identifier (parameter_list "(int fd,double timeout,int wait_for,void *arg)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "double timeout" primitive_type identifier) , (parameter_declaration "int wait_for" primitive_type identifier) , (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 in_a3;\n  undefined4 *in_stack_00000014;\n  \n  if ((double)CONCAT44(arg,in_a3) == 0.0) {\n    if (in_stack_00000014[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);\n      return (uint)(iVar1 != 0);\n    }\n  }\n  else if ((in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);\n    return (uint)(iVar1 != 0);\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined4 *in_stack_00000014;" type_identifier (pointer_declarator "*in_stack_00000014" * identifier) ;) (if_statement "if ((double)CONCAT44(arg,in_a3) == 0.0) {\n    if (in_stack_00000014[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);\n      return (uint)(iVar1 != 0);\n    }\n  }\n  else if ((in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);\n    return (uint)(iVar1 != 0);\n  }" if (parenthesized_expression "((double)CONCAT44(arg,in_a3) == 0.0)" ( (binary_expression "(double)CONCAT44(arg,in_a3) == 0.0" (cast_expression "(double)CONCAT44(arg,in_a3)" ( (type_descriptor "double" primitive_type) ) (call_expression "CONCAT44(arg,in_a3)" identifier (argument_list "(arg,in_a3)" ( identifier , identifier )))) == number_literal) )) (compound_statement "{\n    if (in_stack_00000014[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);\n      return (uint)(iVar1 != 0);\n    }\n  }" { (if_statement "if (in_stack_00000014[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);\n      return (uint)(iVar1 != 0);\n    }" if (parenthesized_expression "(in_stack_00000014[0x83] == 0)" ( (binary_expression "in_stack_00000014[0x83] == 0" (subscript_expression "in_stack_00000014[0x83]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);\n      return (uint)(iVar1 != 0);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014)" identifier = (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" ( (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" * (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*in_stack_00000014)" ( (pointer_expression "*in_stack_00000014" * identifier) )))) ;) (return_statement "return (uint)(iVar1 != 0);" return (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) ;) })) }) (else_clause "else if ((in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);\n    return (uint)(iVar1 != 0);\n  }" else (if_statement "if ((in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);\n    return (uint)(iVar1 != 0);\n  }" if (parenthesized_expression "((in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0))" ( (binary_expression "(in_stack_00000014[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)" (parenthesized_expression "(in_stack_00000014[0x83] == 0)" ( (binary_expression "in_stack_00000014[0x83] == 0" (subscript_expression "in_stack_00000014[0x83]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),\n          iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014)" identifier = (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" ( (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" * (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*in_stack_00000014)" ( (pointer_expression "*in_stack_00000014" * identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);\n    return (uint)(iVar1 != 0);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd);" (assignment_expression "iVar1 = (*(code *)PTR_select_fd_000af5c0)(fd)" identifier = (call_expression "(*(code *)PTR_select_fd_000af5c0)(fd)" (parenthesized_expression "(*(code *)PTR_select_fd_000af5c0)" ( (pointer_expression "*(code *)PTR_select_fd_000af5c0" * (cast_expression "(code *)PTR_select_fd_000af5c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd)" ( identifier )))) ;) (return_statement "return (uint)(iVar1 != 0);" return (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) ;) })))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bool FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)\n\n{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}\n\n" (function_definition "bool FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)\n\n{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}" primitive_type (function_declarator "FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" if (parenthesized_expression "((double)CONCAT44(param_3,param_4) == 0.0)" ( (binary_expression "(double)CONCAT44(param_3,param_4) == 0.0" (cast_expression "(double)CONCAT44(param_3,param_4)" ( (type_descriptor "double" primitive_type) ) (call_expression "CONCAT44(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) == number_literal) )) (compound_statement "{\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }" { (if_statement "if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }" if (parenthesized_expression "(param_6[0x83] == 0)" ( (binary_expression "param_6[0x83] == 0" (subscript_expression "param_6[0x83]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" identifier = (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" ( (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" * (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })) }) (else_clause "else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" else (if_statement "if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" if (parenthesized_expression "((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0))" ( (binary_expression "(param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)" (parenthesized_expression "(param_6[0x83] == 0)" ( (binary_expression "param_6[0x83] == 0" (subscript_expression "param_6[0x83]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" identifier = (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" ( (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" * (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "(*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_select_fd_000af5c0)" ( (pointer_expression "*(code *)PTR_select_fd_000af5c0" * (cast_expression "(code *)PTR_select_fd_000af5c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })))) (return_statement "return true;" return true ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == 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 ( (pointer_expression * IDENT) )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) , (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 , IDENT , IDENT , IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })))) (return_statement return BOOL ;) })))
(function_definition "bool FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)\n\n{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}" (primitive_type "bool") (function_declarator "FUN_0005ef80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)" (identifier "FUN_0005ef80") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 *param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 *param_6" (type_identifier "undefined4") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }\n  return true;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((double)CONCAT44(param_3,param_4) == 0.0) {\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }\n  else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" (if "if") (parenthesized_expression "((double)CONCAT44(param_3,param_4) == 0.0)" (( "(") (binary_expression "(double)CONCAT44(param_3,param_4) == 0.0" (cast_expression "(double)CONCAT44(param_3,param_4)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (call_expression "CONCAT44(param_3,param_4)" (identifier "CONCAT44") (argument_list "(param_3,param_4)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (== "==") (number_literal "0.0")) () ")")) (compound_statement "{\n    if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }\n  }" ({ "{") (if_statement "if (param_6[0x83] == 0) {\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }" (if "if") (parenthesized_expression "(param_6[0x83] == 0)" (( "(") (binary_expression "param_6[0x83] == 0" (subscript_expression "param_6[0x83]" (identifier "param_6") ([ "[") (number_literal "0x83") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);\n      return iVar1 != 0;\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" (( "(") (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" (* "*") (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gnutls_record_check_pending_000afc84"))) () ")")) (argument_list "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")")))) (; ";")) (return_statement "return iVar1 != 0;" (return "return") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" (else "else") (if_statement "if ((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" (if "if") (parenthesized_expression "((param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0))" (( "(") (binary_expression "(param_6[0x83] == 0) &&\n          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)" (parenthesized_expression "(param_6[0x83] == 0)" (( "(") (binary_expression "param_6[0x83] == 0" (subscript_expression "param_6[0x83]" (identifier "param_6") ([ "[") (number_literal "0x83") (] "]")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6)" (parenthesized_expression "(*(code *)PTR_gnutls_record_check_pending_000afc84)" (( "(") (pointer_expression "*(code *)PTR_gnutls_record_check_pending_000afc84" (* "*") (cast_expression "(code *)PTR_gnutls_record_check_pending_000afc84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gnutls_record_check_pending_000afc84"))) () ")")) (argument_list "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);\n    return iVar1 != 0;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_select_fd_000af5c0)" (( "(") (pointer_expression "*(code *)PTR_select_fd_000af5c0" (* "*") (cast_expression "(code *)PTR_select_fd_000af5c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_select_fd_000af5c0"))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (return_statement "return iVar1 != 0;" (return "return") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";")) (} "}"))))) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}")))

int function_1(int fd,double timeout,int wait_for,void *arg)

{
  int var_2;
  type_1 in_a3;
  type_1 *in_stack_00000014;
  
  if ((double)var_1(arg,in_a3) == 0.0) {
    if (in_stack_00000014[0x83] == 0) {
      var_2 = (*(type_2 *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014);
      return (uint)(var_2 != 0);
    }
  }
  else if ((in_stack_00000014[0x83] == 0) &&
          (var_2 = (*(type_2 *)PTR_gnutls_record_check_pending_000afc84)(*in_stack_00000014),
          var_2 == 0)) {
    var_2 = (*(type_2 *)PTR_select_fd_000af5c0)(fd);
    return (uint)(var_2 != 0);
  }
  return 1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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 (pointer_expression argument: (identifier)))))) (return_statement (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (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 (pointer_expression argument: (identifier))))) right: (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) (identifier) (identifier) (identifier) (identifier))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (true)))))

bool MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 *param_6)

{
  int iVar1;
  
  if ((double)CONCAT44(param_3,param_4) == 0.0) {
    if (param_6[0x83] == 0) {
      iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6);
      return iVar1 != 0;
    }
  }
  else if ((param_6[0x83] == 0) &&
          (iVar1 = (*(code *)PTR_gnutls_record_check_pending_000afc84)(*param_6), iVar1 == 0)) {
    iVar1 = (*(code *)PTR_select_fd_000af5c0)(param_1,param_2,param_3,param_4,param_5);
    return iVar1 != 0;
  }
  return true;
}

