
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int MHD_add_connection(MHD_Daemon *daemon,MHD_socket client_socket,sockaddr *addr,socklen_t addrlen)

{
  int iVar1;
  MHD_FLAG MVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int iVar5;
  
  iVar1 = MHD_socket_nonblocking_(client_socket);
  if (iVar1 == 0) {
    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();
    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);
    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4);
    MVar2 = daemon->options;
  }
  else {
    MVar2 = daemon->options;
  }
  if (((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG) &&
     (iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0)) {
    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354);
  }
  iVar1 = internal_add_connection(daemon,client_socket,addr,addrlen,true,iVar1 != 0);
  return iVar1;
}



void MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int iVar5;
  
  iVar1 = FUN_00022234(param_2);
  if (iVar1 == 0) {
    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();
    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);
    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);
    uVar2 = *(uint *)(param_1 + 0xf8);
  }
  else {
    uVar2 = *(uint *)(param_1 + 0xf8);
  }
  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {
    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);
  }
  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);
  return;
}


lui gp,0x3
addiu gp,gp,-0x5f44
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x7f84(gp)
sw gp,0x18(sp)
sw s3,0x2c(sp)
or s3,a3,zero
sw s2,0x28(sp)
or s2,a2,zero
sw s1,0x24(sp)
or s1,a1,zero
sw s0,0x20(sp)
or s0,a0,zero
sw ra,0x34(sp)
or a0,a1,zero
bal 0x00022234
_sw s4,0x30(sp)
beq v0,zero,0x0001d01c
_lw gp,0x18(sp)
lw v0,0xf8(s0)
andi v0,v0,0x1000
bne v0,zero,0x0001d064
_li s4,0x1
lw t9,-0x7fac(gp)
li v0,0x1
sw s4,0x14(sp)
or a3,s3,zero
or a2,s2,zero
sw v0,0x10(sp)
addiu t9,t9,-0x61fc
or a1,s1,zero
bal 0x00019e04
_or a0,s0,zero
lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7e2c(gp)
jalr t9
_or s4,zero,zero
lw gp,0x18(sp)
lw t9,-0x7ddc(gp)
jalr t9
_lw a0,0x0(v0)
or a0,s0,zero
lw gp,0x18(sp)
or a2,v0,zero
lw a1,-0x7fd4(gp)
lw t9,-0x7fc4(gp)
bal 0x00020df0
_addiu a1,a1,-0x3390
lw v0,0xf8(s0)
andi v0,v0,0x1000
beq v0,zero,0x0001cfd4
_lw gp,0x18(sp)
lw t9,-0x7f80(gp)
bal 0x000222c0
_or a0,s1,zero
bne v0,zero,0x0001cfd4
_lw gp,0x18(sp)
lw a1,-0x7fd4(gp)
or a0,s0,zero
lw t9,-0x7fc4(gp)
bal 0x00020df0
_addiu a1,a1,-0x3354
b 0x0001cfd4
_lw gp,0x18(sp)
(translation_unit "void MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}\n\n" (function_definition "void MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}" primitive_type (function_declarator "MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type 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) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00022234(param_2);" (assignment_expression "iVar1 = FUN_00022234(param_2)" identifier = (call_expression "FUN_00022234(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" { (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003f204)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0003f204)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003f204)" ( (pointer_expression "*(code *)PTR___errno_location_0003f204" * (cast_expression "(code *)PTR___errno_location_0003f204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3)" identifier = (call_expression "(*(code *)PTR_strerror_0003f254)(*puVar3)" (parenthesized_expression "(*(code *)PTR_strerror_0003f254)" ( (pointer_expression "*(code *)PTR_strerror_0003f254" * (cast_expression "(code *)PTR_strerror_0003f254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar3)" ( (pointer_expression "*puVar3" * identifier) )))) ;) (expression_statement "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);" (call_expression "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4)" identifier (argument_list "(param_1,PTR_DAT_0003f05c + -0x3390,uVar4)" ( identifier , (binary_expression "PTR_DAT_0003f05c + -0x3390" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0xf8);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xf8)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf8)" * (cast_expression "(uint *)(param_1 + 0xf8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" else (compound_statement "{\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" { (expression_statement "uVar2 = *(uint *)(param_1 + 0xf8);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xf8)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf8)" * (cast_expression "(uint *)(param_1 + 0xf8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) ))))) ;) }))) (if_statement "if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }" if (parenthesized_expression "(((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0))" ( (binary_expression "((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)" (parenthesized_expression "((uVar2 & 0x1000) != 0)" ( (binary_expression "(uVar2 & 0x1000) != 0" (parenthesized_expression "(uVar2 & 0x1000)" ( (binary_expression "uVar2 & 0x1000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar5 = FUN_000222c0(param_2), iVar5 == 0)" ( (comma_expression "iVar5 = FUN_000222c0(param_2), iVar5 == 0" (assignment_expression "iVar5 = FUN_000222c0(param_2)" identifier = (call_expression "FUN_000222c0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }" { (expression_statement "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);" (call_expression "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354)" identifier (argument_list "(param_1,PTR_DAT_0003f05c + -0x3354)" ( identifier , (binary_expression "PTR_DAT_0003f05c + -0x3354" identifier + number_literal) ))) ;) })) (expression_statement "FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);" (call_expression "FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0)" identifier (argument_list "(param_1,param_2,param_3,param_4,1,iVar1 != 0)" ( identifier , identifier , identifier , identifier , number_literal , (binary_expression "iVar1 != 0" identifier != number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint MHD_add_connection(MHD_Daemon *daemon,MHD_socket client_socket,sockaddr *addr,socklen_t addrlen)\n\n{\n  int iVar1;\n  MHD_FLAG MVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = MHD_socket_nonblocking_(client_socket);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4);\n    MVar2 = daemon->options;\n  }\n  else {\n    MVar2 = daemon->options;\n  }\n  if (((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG) &&\n     (iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0)) {\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354);\n  }\n  iVar1 = internal_add_connection(daemon,client_socket,addr,addrlen,true,iVar1 != 0);\n  return iVar1;\n}\n\n" comment comment comment (function_definition "int MHD_add_connection(MHD_Daemon *daemon,MHD_socket client_socket,sockaddr *addr,socklen_t addrlen)\n\n{\n  int iVar1;\n  MHD_FLAG MVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = MHD_socket_nonblocking_(client_socket);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4);\n    MVar2 = daemon->options;\n  }\n  else {\n    MVar2 = daemon->options;\n  }\n  if (((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG) &&\n     (iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0)) {\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354);\n  }\n  iVar1 = internal_add_connection(daemon,client_socket,addr,addrlen,true,iVar1 != 0);\n  return iVar1;\n}" primitive_type (function_declarator "MHD_add_connection(MHD_Daemon *daemon,MHD_socket client_socket,sockaddr *addr,socklen_t addrlen)" identifier (parameter_list "(MHD_Daemon *daemon,MHD_socket client_socket,sockaddr *addr,socklen_t addrlen)" ( (parameter_declaration "MHD_Daemon *daemon" type_identifier (pointer_declarator "*daemon" * identifier)) , (parameter_declaration "MHD_socket client_socket" type_identifier identifier) , (parameter_declaration "sockaddr *addr" type_identifier (pointer_declarator "*addr" * identifier)) , (parameter_declaration "socklen_t addrlen" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  MHD_FLAG MVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = MHD_socket_nonblocking_(client_socket);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4);\n    MVar2 = daemon->options;\n  }\n  else {\n    MVar2 = daemon->options;\n  }\n  if (((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG) &&\n     (iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0)) {\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354);\n  }\n  iVar1 = internal_add_connection(daemon,client_socket,addr,addrlen,true,iVar1 != 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "MHD_FLAG MVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = MHD_socket_nonblocking_(client_socket);" (assignment_expression "iVar1 = MHD_socket_nonblocking_(client_socket)" identifier = (call_expression "MHD_socket_nonblocking_(client_socket)" identifier (argument_list "(client_socket)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4);\n    MVar2 = daemon->options;\n  }\n  else {\n    MVar2 = daemon->options;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4);\n    MVar2 = daemon->options;\n  }" { (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003f204)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0003f204)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003f204)" ( (pointer_expression "*(code *)PTR___errno_location_0003f204" * (cast_expression "(code *)PTR___errno_location_0003f204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3)" identifier = (call_expression "(*(code *)PTR_strerror_0003f254)(*puVar3)" (parenthesized_expression "(*(code *)PTR_strerror_0003f254)" ( (pointer_expression "*(code *)PTR_strerror_0003f254" * (cast_expression "(code *)PTR_strerror_0003f254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar3)" ( (pointer_expression "*puVar3" * identifier) )))) ;) (expression_statement "MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4);" (call_expression "MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3390,uVar4)" identifier (argument_list "(daemon,PTR_DAT_0003f05c + -0x3390,uVar4)" ( identifier , (binary_expression "PTR_DAT_0003f05c + -0x3390" identifier + number_literal) , identifier ))) ;) (expression_statement "MVar2 = daemon->options;" (assignment_expression "MVar2 = daemon->options" identifier = (field_expression "daemon->options" identifier -> field_identifier)) ;) }) (else_clause "else {\n    MVar2 = daemon->options;\n  }" else (compound_statement "{\n    MVar2 = daemon->options;\n  }" { (expression_statement "MVar2 = daemon->options;" (assignment_expression "MVar2 = daemon->options" identifier = (field_expression "daemon->options" identifier -> field_identifier)) ;) }))) (if_statement "if (((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG) &&\n     (iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0)) {\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354);\n  }" if (parenthesized_expression "(((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG) &&\n     (iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0))" ( (binary_expression "((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG) &&\n     (iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0)" (parenthesized_expression "((MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG)" ( (binary_expression "(MVar2 & MHD_USE_EPOLL_TURBO) != MHD_NO_FLAG" (parenthesized_expression "(MVar2 & MHD_USE_EPOLL_TURBO)" ( (binary_expression "MVar2 & MHD_USE_EPOLL_TURBO" identifier & identifier) )) != identifier) )) && (parenthesized_expression "(iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0)" ( (comma_expression "iVar5 = MHD_socket_noninheritable_(client_socket), iVar5 == 0" (assignment_expression "iVar5 = MHD_socket_noninheritable_(client_socket)" identifier = (call_expression "MHD_socket_noninheritable_(client_socket)" identifier (argument_list "(client_socket)" ( identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354);\n  }" { (expression_statement "MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354);" (call_expression "MHD_DLOG(daemon,PTR_DAT_0003f05c + -0x3354)" identifier (argument_list "(daemon,PTR_DAT_0003f05c + -0x3354)" ( identifier , (binary_expression "PTR_DAT_0003f05c + -0x3354" identifier + number_literal) ))) ;) })) (expression_statement "iVar1 = internal_add_connection(daemon,client_socket,addr,addrlen,true,iVar1 != 0);" (assignment_expression "iVar1 = internal_add_connection(daemon,client_socket,addr,addrlen,true,iVar1 != 0)" identifier = (call_expression "internal_add_connection(daemon,client_socket,addr,addrlen,true,iVar1 != 0)" identifier (argument_list "(daemon,client_socket,addr,addrlen,true,iVar1 != 0)" ( identifier , identifier , identifier , identifier , true , (binary_expression "iVar1 != 0" identifier != number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}\n\n" (function_definition "void MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}" primitive_type (function_declarator "MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type 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) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00022234(param_2);" (assignment_expression "iVar1 = FUN_00022234(param_2)" identifier = (call_expression "FUN_00022234(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" { (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003f204)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0003f204)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003f204)" ( (pointer_expression "*(code *)PTR___errno_location_0003f204" * (cast_expression "(code *)PTR___errno_location_0003f204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3)" identifier = (call_expression "(*(code *)PTR_strerror_0003f254)(*puVar3)" (parenthesized_expression "(*(code *)PTR_strerror_0003f254)" ( (pointer_expression "*(code *)PTR_strerror_0003f254" * (cast_expression "(code *)PTR_strerror_0003f254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar3)" ( (pointer_expression "*puVar3" * identifier) )))) ;) (expression_statement "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);" (call_expression "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4)" identifier (argument_list "(param_1,PTR_DAT_0003f05c + -0x3390,uVar4)" ( identifier , (binary_expression "PTR_DAT_0003f05c + -0x3390" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0xf8);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xf8)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf8)" * (cast_expression "(uint *)(param_1 + 0xf8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" else (compound_statement "{\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" { (expression_statement "uVar2 = *(uint *)(param_1 + 0xf8);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xf8)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf8)" * (cast_expression "(uint *)(param_1 + 0xf8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) ))))) ;) }))) (if_statement "if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }" if (parenthesized_expression "(((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0))" ( (binary_expression "((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)" (parenthesized_expression "((uVar2 & 0x1000) != 0)" ( (binary_expression "(uVar2 & 0x1000) != 0" (parenthesized_expression "(uVar2 & 0x1000)" ( (binary_expression "uVar2 & 0x1000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar5 = FUN_000222c0(param_2), iVar5 == 0)" ( (comma_expression "iVar5 = FUN_000222c0(param_2), iVar5 == 0" (assignment_expression "iVar5 = FUN_000222c0(param_2)" identifier = (call_expression "FUN_000222c0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }" { (expression_statement "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);" (call_expression "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354)" identifier (argument_list "(param_1,PTR_DAT_0003f05c + -0x3354)" ( identifier , (binary_expression "PTR_DAT_0003f05c + -0x3354" identifier + number_literal) ))) ;) })) (expression_statement "FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);" (call_expression "FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0)" identifier (argument_list "(param_1,param_2,param_3,param_4,1,iVar1 != 0)" ( identifier , identifier , identifier , identifier , number_literal , (binary_expression "iVar1 != 0" identifier != number_literal) ))) ;) (return_statement "return;" return ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT , (binary_expression IDENT != LIT) ))) ;) (return_statement return ;) })))
(function_definition "void MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}" (primitive_type "void") (function_declarator "MHD_add_connection(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "MHD_add_connection") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00022234(param_2);\n  if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }\n  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar1 = FUN_00022234(param_2);" (assignment_expression "iVar1 = FUN_00022234(param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00022234(param_2)" (identifier "FUN_00022234") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }\n  else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();\n    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0003f204)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0003f204)()" (parenthesized_expression "(*(code *)PTR___errno_location_0003f204)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0003f204" (* "*") (cast_expression "(code *)PTR___errno_location_0003f204" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0003f204"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strerror_0003f254)(*puVar3)" (parenthesized_expression "(*(code *)PTR_strerror_0003f254)" (( "(") (pointer_expression "*(code *)PTR_strerror_0003f254" (* "*") (cast_expression "(code *)PTR_strerror_0003f254" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_0003f254"))) () ")")) (argument_list "(*puVar3)" (( "(") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) () ")")))) (; ";")) (expression_statement "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);" (call_expression "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4)" (identifier "FUN_00020df0") (argument_list "(param_1,PTR_DAT_0003f05c + -0x3390,uVar4)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_0003f05c + -0x3390" (identifier "PTR_DAT_0003f05c") (+ "+") (number_literal "-0x3390")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0xf8);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xf8)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0xf8)" (* "*") (cast_expression "(uint *)(param_1 + 0xf8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf8)" (( "(") (binary_expression "param_1 + 0xf8" (identifier "param_1") (+ "+") (number_literal "0xf8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" (else "else") (compound_statement "{\n    uVar2 = *(uint *)(param_1 + 0xf8);\n  }" ({ "{") (expression_statement "uVar2 = *(uint *)(param_1 + 0xf8);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xf8)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0xf8)" (* "*") (cast_expression "(uint *)(param_1 + 0xf8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf8)" (( "(") (binary_expression "param_1 + 0xf8" (identifier "param_1") (+ "+") (number_literal "0xf8")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }" (if "if") (parenthesized_expression "(((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0))" (( "(") (binary_expression "((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)" (parenthesized_expression "((uVar2 & 0x1000) != 0)" (( "(") (binary_expression "(uVar2 & 0x1000) != 0" (parenthesized_expression "(uVar2 & 0x1000)" (( "(") (binary_expression "uVar2 & 0x1000" (identifier "uVar2") (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 = FUN_000222c0(param_2), iVar5 == 0)" (( "(") (comma_expression "iVar5 = FUN_000222c0(param_2), iVar5 == 0" (assignment_expression "iVar5 = FUN_000222c0(param_2)" (identifier "iVar5") (= "=") (call_expression "FUN_000222c0(param_2)" (identifier "FUN_000222c0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);\n  }" ({ "{") (expression_statement "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);" (call_expression "FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354)" (identifier "FUN_00020df0") (argument_list "(param_1,PTR_DAT_0003f05c + -0x3354)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_0003f05c + -0x3354" (identifier "PTR_DAT_0003f05c") (+ "+") (number_literal "-0x3354")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);" (call_expression "FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0)" (identifier "FUN_00019e04") (argument_list "(param_1,param_2,param_3,param_4,1,iVar1 != 0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (number_literal "1") (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int function_1(type_1 *daemon,type_2 client_socket,type_3 *addr,type_4 addrlen)

{
  int var_2;
  type_5 var_5;
  type_6 *puVar3;
  type_6 uVar4;
  int var_9;
  
  var_2 = var_1(client_socket);
  if (var_2 == 0) {
    puVar3 = (type_6 *)(*(type_7 *)PTR___errno_location_0003f204)();
    uVar4 = (*(type_7 *)PTR_strerror_0003f254)(*puVar3);
    var_3(daemon,var_4 + -0x3390,uVar4);
    var_5 = daemon->options;
  }
  else {
    var_5 = daemon->options;
  }
  if (((var_5 & var_6) != var_7) &&
     (var_9 = var_8(client_socket), var_9 == 0)) {
    var_3(daemon,var_4 + -0x3354);
  }
  var_2 = var_10(daemon,client_socket,addr,addrlen,true,var_2 != 0);
  return var_2;
}


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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int iVar5;
  
  iVar1 = FUN_00022234(param_2);
  if (iVar1 == 0) {
    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0003f204)();
    uVar4 = (*(code *)PTR_strerror_0003f254)(*puVar3);
    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3390,uVar4);
    uVar2 = *(uint *)(param_1 + 0xf8);
  }
  else {
    uVar2 = *(uint *)(param_1 + 0xf8);
  }
  if (((uVar2 & 0x1000) != 0) && (iVar5 = FUN_000222c0(param_2), iVar5 == 0)) {
    FUN_00020df0(param_1,PTR_DAT_0003f05c + -0x3354);
  }
  FUN_00019e04(param_1,param_2,param_3,param_4,1,iVar1 != 0);
  return;
}

