
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00011f80 */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */

MHD_Result
MHD_get_fdset2(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,fd_set *except_fd_set,
              MHD_socket *max_fd,uint fd_setsize)

{
  MHD_Result MVar1;
  int iVar2;
  MHD_FLAG MVar3;
  __fd_mask *p_Var4;
  int in_GS_OFFSET;
  __fd_mask *p_Stack_b8;
  __fd_mask a_Stack_a0 [32];
  int iStack_20;
  undefined4 uStack_14;
  undefined **ppuStack_10;
  
  ppuStack_10 = &_GLOBAL_OFFSET_TABLE_;
  uStack_14 = 0x1a769;
  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);
  p_Stack_b8 = except_fd_set->fds_bits;
  if ((read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0) ||
     (daemon == (MHD_Daemon *)0x0)) {
    MVar1 = MHD_NO;
  }
  else {
    MVar3 = daemon->options;
    MVar1 = MHD_NO;
    if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {
      if (except_fd_set == (fd_set *)0x0) {
        MHD_DLOG(daemon,
                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"
                );
        p_Stack_b8 = a_Stack_a0;
        p_Var4 = p_Stack_b8;
        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
          *p_Var4 = 0;
          p_Var4 = p_Var4 + 1;
        }
        MVar3 = daemon->options;
      }
      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {
        MVar1 = MHD_NO;
        if (daemon->shutdown == false) {
          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,
                                      fd_setsize);
        }
      }
      else {
        MVar1 = MHD_NO;
        if (daemon->shutdown == false) {
          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);
          MVar1 = (MHD_Result)(iVar2 != 0);
        }
      }
    }
  }
  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return MVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00011f80 */

uint MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,
                   undefined4 param_6)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  int in_GS_OFFSET;
  undefined4 *puStack_b8;
  undefined4 auStack_a0 [32];
  int iStack_20;
  undefined4 uStack_14;
  undefined **ppuStack_10;
  
  ppuStack_10 = &__DT_PLTGOT;
  uStack_14 = 0x1a769;
  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);
  puStack_b8 = param_4;
  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {
    uVar1 = 0;
  }
  else {
    uVar3 = *(uint *)(param_1 + 0xf4);
    uVar1 = 0;
    if ((uVar3 & 0x48) == 0) {
      if (param_4 == (undefined4 *)0x0) {
        FUN_0001f720(param_1,
                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"
                    );
        puStack_b8 = auStack_a0;
        puVar4 = puStack_b8;
        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
          *puVar4 = 0;
          puVar4 = puVar4 + 1;
        }
        uVar3 = *(uint *)(param_1 + 0xf4);
      }
      if ((uVar3 & 0x200) == 0) {
        uVar1 = 0;
        if (*(char *)(param_1 + 0xdc) == '\0') {
          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);
        }
      }
      else {
        uVar1 = 0;
        if (*(char *)(param_1 + 0xdc) == '\0') {
          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);
          uVar1 = (uint)(iVar2 != 0);
        }
      }
    }
  }
  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00028cb0();
  }
  return uVar1;
}


JMP dword ptr [EBX + 0x60]
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x00011f80 */\n\nuint MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00028cb0();\n  }\n  return uVar1;\n}\n\n" comment comment (function_definition "uint MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00028cb0();\n  }\n  return uVar1;\n}" type_identifier (function_declarator "MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00028cb0();\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *puStack_b8;" type_identifier (pointer_declarator "*puStack_b8" * identifier) ;) (declaration "undefined4 auStack_a0 [32];" type_identifier (array_declarator "auStack_a0 [32]" identifier [ number_literal ]) ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (declaration "undefined **ppuStack_10;" type_identifier (pointer_declarator "**ppuStack_10" * (pointer_declarator "*ppuStack_10" * identifier)) ;) (expression_statement "ppuStack_10 = &__DT_PLTGOT;" (assignment_expression "ppuStack_10 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "uStack_14 = 0x1a769;" (assignment_expression "uStack_14 = 0x1a769" identifier = number_literal) ;) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puStack_b8 = param_4;" (assignment_expression "puStack_b8 = param_4" identifier = identifier) ;) (if_statement "if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == 0 || param_3 == 0) || (param_1 == 0))" ( (binary_expression "(param_2 == 0 || param_3 == 0) || (param_1 == 0)" (parenthesized_expression "(param_2 == 0 || param_3 == 0)" ( (binary_expression "param_2 == 0 || param_3 == 0" (binary_expression "param_2 == 0" identifier == number_literal) || (binary_expression "param_3 == 0" identifier == number_literal)) )) || (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" else (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0xf4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xf4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf4)" * (cast_expression "(uint *)(param_1 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf4)" ( (binary_expression "param_1 + 0xf4" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }" if (parenthesized_expression "((uVar3 & 0x48) == 0)" ( (binary_expression "(uVar3 & 0x48) == 0" (parenthesized_expression "(uVar3 & 0x48)" ( (binary_expression "uVar3 & 0x48" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }" { (if_statement "if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }" if (parenthesized_expression "(param_4 == (undefined4 *)0x0)" ( (binary_expression "param_4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }" { (expression_statement "FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );" (call_expression "FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    )" identifier (argument_list "(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    )" ( identifier , (string_literal ""MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"" " string_content escape_sequence ") ))) ;) (expression_statement "puStack_b8 = auStack_a0;" (assignment_expression "puStack_b8 = auStack_a0" identifier = identifier) ;) (expression_statement "puVar4 = puStack_b8;" (assignment_expression "puVar4 = puStack_b8" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = *(uint *)(param_1 + 0xf4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xf4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf4)" * (cast_expression "(uint *)(param_1 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf4)" ( (binary_expression "param_1 + 0xf4" identifier + number_literal) ))))) ;) })) (if_statement "if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" if (parenthesized_expression "((uVar3 & 0x200) == 0)" ( (binary_expression "(uVar3 & 0x200) == 0" (parenthesized_expression "(uVar3 & 0x200)" ( (binary_expression "uVar3 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0xdc) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xdc) == '\0'" (pointer_expression "*(char *)(param_1 + 0xdc)" * (cast_expression "(char *)(param_1 + 0xdc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }" { (expression_statement "uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);" (assignment_expression "uVar1 = FUN_000186b0(puStack_b8,param_5,param_6)" identifier = (call_expression "FUN_000186b0(puStack_b8,param_5,param_6)" identifier (argument_list "(puStack_b8,param_5,param_6)" ( identifier , identifier , identifier )))) ;) })) }) (else_clause "else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" else (compound_statement "{\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0xdc) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xdc) == '\0'" (pointer_expression "*(char *)(param_1 + 0xdc)" * (cast_expression "(char *)(param_1 + 0xdc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }" { (expression_statement "iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);" (assignment_expression "iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" identifier = (call_expression "FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xd0)" * (cast_expression "(undefined4 *)(param_1 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (expression_statement "uVar1 = (uint)(iVar2 != 0);" (assignment_expression "uVar1 = (uint)(iVar2 != 0)" identifier = (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ;) })) }))) })) }))) (if_statement "if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00028cb0();\n  }" if (parenthesized_expression "(iStack_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iStack_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00028cb0();\n  }" { comment (expression_statement "FUN_00028cb0();" (call_expression "FUN_00028cb0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x00011f80 */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n\nMHD_Result\nMHD_get_fdset2(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,fd_set *except_fd_set,\n              MHD_socket *max_fd,uint fd_setsize)\n\n{\n  MHD_Result MVar1;\n  int iVar2;\n  MHD_FLAG MVar3;\n  __fd_mask *p_Var4;\n  int in_GS_OFFSET;\n  __fd_mask *p_Stack_b8;\n  __fd_mask a_Stack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &_GLOBAL_OFFSET_TABLE_;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  p_Stack_b8 = except_fd_set->fds_bits;\n  if ((read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0) ||\n     (daemon == (MHD_Daemon *)0x0)) {\n    MVar1 = MHD_NO;\n  }\n  else {\n    MVar3 = daemon->options;\n    MVar1 = MHD_NO;\n    if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar1;\n}\n\n" comment comment comment comment (function_definition "MHD_Result\nMHD_get_fdset2(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,fd_set *except_fd_set,\n              MHD_socket *max_fd,uint fd_setsize)\n\n{\n  MHD_Result MVar1;\n  int iVar2;\n  MHD_FLAG MVar3;\n  __fd_mask *p_Var4;\n  int in_GS_OFFSET;\n  __fd_mask *p_Stack_b8;\n  __fd_mask a_Stack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &_GLOBAL_OFFSET_TABLE_;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  p_Stack_b8 = except_fd_set->fds_bits;\n  if ((read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0) ||\n     (daemon == (MHD_Daemon *)0x0)) {\n    MVar1 = MHD_NO;\n  }\n  else {\n    MVar3 = daemon->options;\n    MVar1 = MHD_NO;\n    if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar1;\n}" type_identifier (function_declarator "MHD_get_fdset2(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,fd_set *except_fd_set,\n              MHD_socket *max_fd,uint fd_setsize)" identifier (parameter_list "(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,fd_set *except_fd_set,\n              MHD_socket *max_fd,uint fd_setsize)" ( (parameter_declaration "MHD_Daemon *daemon" type_identifier (pointer_declarator "*daemon" * identifier)) , (parameter_declaration "fd_set *read_fd_set" type_identifier (pointer_declarator "*read_fd_set" * identifier)) , (parameter_declaration "fd_set *write_fd_set" type_identifier (pointer_declarator "*write_fd_set" * identifier)) , (parameter_declaration "fd_set *except_fd_set" type_identifier (pointer_declarator "*except_fd_set" * identifier)) , (parameter_declaration "MHD_socket *max_fd" type_identifier (pointer_declarator "*max_fd" * identifier)) , (parameter_declaration "uint fd_setsize" type_identifier identifier) ))) (compound_statement "{\n  MHD_Result MVar1;\n  int iVar2;\n  MHD_FLAG MVar3;\n  __fd_mask *p_Var4;\n  int in_GS_OFFSET;\n  __fd_mask *p_Stack_b8;\n  __fd_mask a_Stack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &_GLOBAL_OFFSET_TABLE_;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  p_Stack_b8 = except_fd_set->fds_bits;\n  if ((read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0) ||\n     (daemon == (MHD_Daemon *)0x0)) {\n    MVar1 = MHD_NO;\n  }\n  else {\n    MVar3 = daemon->options;\n    MVar1 = MHD_NO;\n    if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar1;\n}" { (declaration "MHD_Result MVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "MHD_FLAG MVar3;" type_identifier identifier ;) (declaration "__fd_mask *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "__fd_mask *p_Stack_b8;" type_identifier (pointer_declarator "*p_Stack_b8" * identifier) ;) (declaration "__fd_mask a_Stack_a0 [32];" type_identifier (array_declarator "a_Stack_a0 [32]" identifier [ number_literal ]) ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (declaration "undefined **ppuStack_10;" type_identifier (pointer_declarator "**ppuStack_10" * (pointer_declarator "*ppuStack_10" * identifier)) ;) (expression_statement "ppuStack_10 = &_GLOBAL_OFFSET_TABLE_;" (assignment_expression "ppuStack_10 = &_GLOBAL_OFFSET_TABLE_" identifier = (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) ;) (expression_statement "uStack_14 = 0x1a769;" (assignment_expression "uStack_14 = 0x1a769" identifier = number_literal) ;) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "p_Stack_b8 = except_fd_set->fds_bits;" (assignment_expression "p_Stack_b8 = except_fd_set->fds_bits" identifier = (field_expression "except_fd_set->fds_bits" identifier -> field_identifier)) ;) (if_statement "if ((read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0) ||\n     (daemon == (MHD_Daemon *)0x0)) {\n    MVar1 = MHD_NO;\n  }\n  else {\n    MVar3 = daemon->options;\n    MVar1 = MHD_NO;\n    if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }\n  }" if (parenthesized_expression "((read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0) ||\n     (daemon == (MHD_Daemon *)0x0))" ( (binary_expression "(read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0) ||\n     (daemon == (MHD_Daemon *)0x0)" (parenthesized_expression "(read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0)" ( (binary_expression "read_fd_set == (fd_set *)0x0 || write_fd_set == (fd_set *)0x0" (binary_expression "read_fd_set == (fd_set *)0x0" identifier == (cast_expression "(fd_set *)0x0" ( (type_descriptor "fd_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (binary_expression "write_fd_set == (fd_set *)0x0" identifier == (cast_expression "(fd_set *)0x0" ( (type_descriptor "fd_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) || (parenthesized_expression "(daemon == (MHD_Daemon *)0x0)" ( (binary_expression "daemon == (MHD_Daemon *)0x0" identifier == (cast_expression "(MHD_Daemon *)0x0" ( (type_descriptor "MHD_Daemon *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    MVar1 = MHD_NO;\n  }" { (expression_statement "MVar1 = MHD_NO;" (assignment_expression "MVar1 = MHD_NO" identifier = identifier) ;) }) (else_clause "else {\n    MVar3 = daemon->options;\n    MVar1 = MHD_NO;\n    if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }\n  }" else (compound_statement "{\n    MVar3 = daemon->options;\n    MVar1 = MHD_NO;\n    if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }\n  }" { (expression_statement "MVar3 = daemon->options;" (assignment_expression "MVar3 = daemon->options" identifier = (field_expression "daemon->options" identifier -> field_identifier)) ;) (expression_statement "MVar1 = MHD_NO;" (assignment_expression "MVar1 = MHD_NO" identifier = identifier) ;) (if_statement "if ((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG) {\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }" if (parenthesized_expression "((MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG)" ( (binary_expression "(MVar3 & MHD_USE_POLL_INTERNALLY) == MHD_NO_FLAG" (parenthesized_expression "(MVar3 & MHD_USE_POLL_INTERNALLY)" ( (binary_expression "MVar3 & MHD_USE_POLL_INTERNALLY" identifier & identifier) )) == identifier) )) (compound_statement "{\n      if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }\n      if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }\n    }" { (if_statement "if (except_fd_set == (fd_set *)0x0) {\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }" if (parenthesized_expression "(except_fd_set == (fd_set *)0x0)" ( (binary_expression "except_fd_set == (fd_set *)0x0" identifier == (cast_expression "(fd_set *)0x0" ( (type_descriptor "fd_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );\n        p_Stack_b8 = a_Stack_a0;\n        p_Var4 = p_Stack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }\n        MVar3 = daemon->options;\n      }" { (expression_statement "MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                );" (call_expression "MHD_DLOG(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                )" identifier (argument_list "(daemon,\n                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                )" ( identifier , (string_literal ""MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"" " string_content escape_sequence ") ))) ;) (expression_statement "p_Stack_b8 = a_Stack_a0;" (assignment_expression "p_Stack_b8 = a_Stack_a0" identifier = identifier) ;) (expression_statement "p_Var4 = p_Stack_b8;" (assignment_expression "p_Var4 = p_Stack_b8" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n          *p_Var4 = 0;\n          p_Var4 = p_Var4 + 1;\n        }" { (expression_statement "*p_Var4 = 0;" (assignment_expression "*p_Var4 = 0" (pointer_expression "*p_Var4" * identifier) = number_literal) ;) (expression_statement "p_Var4 = p_Var4 + 1;" (assignment_expression "p_Var4 = p_Var4 + 1" identifier = (binary_expression "p_Var4 + 1" identifier + number_literal)) ;) })) (expression_statement "MVar3 = daemon->options;" (assignment_expression "MVar3 = daemon->options" identifier = (field_expression "daemon->options" identifier -> field_identifier)) ;) })) (if_statement "if ((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG) {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }\n      else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }" if (parenthesized_expression "((MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG)" ( (binary_expression "(MVar3 & MHD_USE_EPOLL) == MHD_NO_FLAG" (parenthesized_expression "(MVar3 & MHD_USE_EPOLL)" ( (binary_expression "MVar3 & MHD_USE_EPOLL" identifier & identifier) )) == identifier) )) (compound_statement "{\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }\n      }" { (expression_statement "MVar1 = MHD_NO;" (assignment_expression "MVar1 = MHD_NO" identifier = identifier) ;) (if_statement "if (daemon->shutdown == false) {\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }" if (parenthesized_expression "(daemon->shutdown == false)" ( (binary_expression "daemon->shutdown == false" (field_expression "daemon->shutdown" identifier -> field_identifier) == false) )) (compound_statement "{\n          MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);\n        }" { (expression_statement "MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize);" (assignment_expression "MVar1 = internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize)" identifier = (call_expression "internal_get_fdset2(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize)" identifier (argument_list "(daemon,read_fd_set,write_fd_set,(fd_set *)p_Stack_b8,max_fd,\n                                      fd_setsize)" ( identifier , identifier , identifier , (cast_expression "(fd_set *)p_Stack_b8" ( (type_descriptor "fd_set *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier )))) ;) })) }) (else_clause "else {\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }" else (compound_statement "{\n        MVar1 = MHD_NO;\n        if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }\n      }" { (expression_statement "MVar1 = MHD_NO;" (assignment_expression "MVar1 = MHD_NO" identifier = identifier) ;) (if_statement "if (daemon->shutdown == false) {\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }" if (parenthesized_expression "(daemon->shutdown == false)" ( (binary_expression "daemon->shutdown == false" (field_expression "daemon->shutdown" identifier -> field_identifier) == false) )) (compound_statement "{\n          iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);\n          MVar1 = (MHD_Result)(iVar2 != 0);\n        }" { (expression_statement "iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize);" (assignment_expression "iVar2 = MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize)" identifier = (call_expression "MHD_add_to_fd_set_(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize)" identifier (argument_list "(daemon->epoll_fd,read_fd_set,max_fd,fd_setsize)" ( (field_expression "daemon->epoll_fd" identifier -> field_identifier) , identifier , identifier , identifier )))) ;) (expression_statement "MVar1 = (MHD_Result)(iVar2 != 0);" (assignment_expression "MVar1 = (MHD_Result)(iVar2 != 0)" identifier = (call_expression "(MHD_Result)(iVar2 != 0)" (parenthesized_expression "(MHD_Result)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ;) })) }))) })) }))) (if_statement "if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iStack_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iStack_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return MVar1;" return identifier ;) })))
(translation_unit "uint MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00028cb0();\n  }\n  return uVar1;\n}\n\n" (function_definition "uint MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00028cb0();\n  }\n  return uVar1;\n}" type_identifier (function_declarator "MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00028cb0();\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *puStack_b8;" type_identifier (pointer_declarator "*puStack_b8" * identifier) ;) (declaration "undefined4 auStack_a0 [32];" type_identifier (array_declarator "auStack_a0 [32]" identifier [ number_literal ]) ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (declaration "undefined **ppuStack_10;" type_identifier (pointer_declarator "**ppuStack_10" * (pointer_declarator "*ppuStack_10" * identifier)) ;) (expression_statement "ppuStack_10 = &__DT_PLTGOT;" (assignment_expression "ppuStack_10 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "uStack_14 = 0x1a769;" (assignment_expression "uStack_14 = 0x1a769" identifier = number_literal) ;) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puStack_b8 = param_4;" (assignment_expression "puStack_b8 = param_4" identifier = identifier) ;) (if_statement "if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == 0 || param_3 == 0) || (param_1 == 0))" ( (binary_expression "(param_2 == 0 || param_3 == 0) || (param_1 == 0)" (parenthesized_expression "(param_2 == 0 || param_3 == 0)" ( (binary_expression "param_2 == 0 || param_3 == 0" (binary_expression "param_2 == 0" identifier == number_literal) || (binary_expression "param_3 == 0" identifier == number_literal)) )) || (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" else (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0xf4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xf4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf4)" * (cast_expression "(uint *)(param_1 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf4)" ( (binary_expression "param_1 + 0xf4" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }" if (parenthesized_expression "((uVar3 & 0x48) == 0)" ( (binary_expression "(uVar3 & 0x48) == 0" (parenthesized_expression "(uVar3 & 0x48)" ( (binary_expression "uVar3 & 0x48" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }" { (if_statement "if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }" if (parenthesized_expression "(param_4 == (undefined4 *)0x0)" ( (binary_expression "param_4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }" { (expression_statement "FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );" (call_expression "FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    )" identifier (argument_list "(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    )" ( identifier , (string_literal ""MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"" " string_content escape_sequence ") ))) ;) (expression_statement "puStack_b8 = auStack_a0;" (assignment_expression "puStack_b8 = auStack_a0" identifier = identifier) ;) (expression_statement "puVar4 = puStack_b8;" (assignment_expression "puVar4 = puStack_b8" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = *(uint *)(param_1 + 0xf4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xf4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xf4)" * (cast_expression "(uint *)(param_1 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf4)" ( (binary_expression "param_1 + 0xf4" identifier + number_literal) ))))) ;) })) (if_statement "if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" if (parenthesized_expression "((uVar3 & 0x200) == 0)" ( (binary_expression "(uVar3 & 0x200) == 0" (parenthesized_expression "(uVar3 & 0x200)" ( (binary_expression "uVar3 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0xdc) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xdc) == '\0'" (pointer_expression "*(char *)(param_1 + 0xdc)" * (cast_expression "(char *)(param_1 + 0xdc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }" { (expression_statement "uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);" (assignment_expression "uVar1 = FUN_000186b0(puStack_b8,param_5,param_6)" identifier = (call_expression "FUN_000186b0(puStack_b8,param_5,param_6)" identifier (argument_list "(puStack_b8,param_5,param_6)" ( identifier , identifier , identifier )))) ;) })) }) (else_clause "else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" else (compound_statement "{\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0xdc) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xdc) == '\0'" (pointer_expression "*(char *)(param_1 + 0xdc)" * (cast_expression "(char *)(param_1 + 0xdc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }" { (expression_statement "iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);" (assignment_expression "iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" identifier = (call_expression "FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xd0)" * (cast_expression "(undefined4 *)(param_1 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (expression_statement "uVar1 = (uint)(iVar2 != 0);" (assignment_expression "uVar1 = (uint)(iVar2 != 0)" identifier = (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ;) })) }))) })) }))) (if_statement "if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00028cb0();\n  }" if (parenthesized_expression "(iStack_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iStack_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00028cb0();\n  }" { (expression_statement "FUN_00028cb0();" (call_expression "FUN_00028cb0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_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) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence ") ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (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 IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) })) }))) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00028cb0();\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "MHD_get_fdset2(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)" (identifier "MHD_get_fdset2") (parameter_list "(int param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                   undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  undefined4 *puStack_b8;\n  undefined4 auStack_a0 [32];\n  int iStack_20;\n  undefined4 uStack_14;\n  undefined **ppuStack_10;\n  \n  ppuStack_10 = &__DT_PLTGOT;\n  uStack_14 = 0x1a769;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puStack_b8 = param_4;\n  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }\n  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00028cb0();\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 *puStack_b8;" (type_identifier "undefined4") (pointer_declarator "*puStack_b8" (* "*") (identifier "puStack_b8")) (; ";")) (declaration "undefined4 auStack_a0 [32];" (type_identifier "undefined4") (array_declarator "auStack_a0 [32]" (identifier "auStack_a0") ([ "[") (number_literal "32") (] "]")) (; ";")) (declaration "int iStack_20;" (primitive_type "int") (identifier "iStack_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (declaration "undefined **ppuStack_10;" (type_identifier "undefined") (pointer_declarator "**ppuStack_10" (* "*") (pointer_declarator "*ppuStack_10" (* "*") (identifier "ppuStack_10"))) (; ";")) (expression_statement "ppuStack_10 = &__DT_PLTGOT;" (assignment_expression "ppuStack_10 = &__DT_PLTGOT" (identifier "ppuStack_10") (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (expression_statement "uStack_14 = 0x1a769;" (assignment_expression "uStack_14 = 0x1a769" (identifier "uStack_14") (= "=") (number_literal "0x1a769")) (; ";")) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iStack_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puStack_b8 = param_4;" (assignment_expression "puStack_b8 = param_4" (identifier "puStack_b8") (= "=") (identifier "param_4")) (; ";")) (if_statement "if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {\n    uVar1 = 0;\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == 0 || param_3 == 0) || (param_1 == 0))" (( "(") (binary_expression "(param_2 == 0 || param_3 == 0) || (param_1 == 0)" (parenthesized_expression "(param_2 == 0 || param_3 == 0)" (( "(") (binary_expression "param_2 == 0 || param_3 == 0" (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) (|| "||") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0"))) () ")")) (|| "||") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" (else "else") (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0xf4);\n    uVar1 = 0;\n    if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_1 + 0xf4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xf4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0xf4)" (* "*") (cast_expression "(uint *)(param_1 + 0xf4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf4)" (( "(") (binary_expression "param_1 + 0xf4" (identifier "param_1") (+ "+") (number_literal "0xf4")) () ")"))))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((uVar3 & 0x48) == 0) {\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }" (if "if") (parenthesized_expression "((uVar3 & 0x48) == 0)" (( "(") (binary_expression "(uVar3 & 0x48) == 0" (parenthesized_expression "(uVar3 & 0x48)" (( "(") (binary_expression "uVar3 & 0x48" (identifier "uVar3") (& "&") (number_literal "0x48")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }\n      if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }\n    }" ({ "{") (if_statement "if (param_4 == (undefined4 *)0x0) {\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }" (if "if") (parenthesized_expression "(param_4 == (undefined4 *)0x0)" (( "(") (binary_expression "param_4 == (undefined4 *)0x0" (identifier "param_4") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );\n        puStack_b8 = auStack_a0;\n        puVar4 = puStack_b8;\n        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }\n        uVar3 = *(uint *)(param_1 + 0xf4);\n      }" ({ "{") (expression_statement "FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    );" (call_expression "FUN_0001f720(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    )" (identifier "FUN_0001f720") (argument_list "(param_1,\n                     "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"\n                    )" (( "(") (identifier "param_1") (, ",") (string_literal ""MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"" (" """) (string_content "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (expression_statement "puStack_b8 = auStack_a0;" (assignment_expression "puStack_b8 = auStack_a0" (identifier "puStack_b8") (= "=") (identifier "auStack_a0")) (; ";")) (expression_statement "puVar4 = puStack_b8;" (assignment_expression "puVar4 = puStack_b8" (identifier "puVar4") (= "=") (identifier "puStack_b8")) (; ";")) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }" (for "for") (( "(") (assignment_expression "iVar2 = 0x20" (identifier "iVar2") (= "=") (number_literal "0x20")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n          *puVar4 = 0;\n          puVar4 = puVar4 + 1;\n        }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = *(uint *)(param_1 + 0xf4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xf4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0xf4)" (* "*") (cast_expression "(uint *)(param_1 + 0xf4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf4)" (( "(") (binary_expression "param_1 + 0xf4" (identifier "param_1") (+ "+") (number_literal "0xf4")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((uVar3 & 0x200) == 0) {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }\n      else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" (if "if") (parenthesized_expression "((uVar3 & 0x200) == 0)" (( "(") (binary_expression "(uVar3 & 0x200) == 0" (parenthesized_expression "(uVar3 & 0x200)" (( "(") (binary_expression "uVar3 & 0x200" (identifier "uVar3") (& "&") (number_literal "0x200")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }\n      }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(param_1 + 0xdc) == '\0') {\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xdc) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xdc) == '\0'" (pointer_expression "*(char *)(param_1 + 0xdc)" (* "*") (cast_expression "(char *)(param_1 + 0xdc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xdc)" (( "(") (binary_expression "param_1 + 0xdc" (identifier "param_1") (+ "+") (number_literal "0xdc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);\n        }" ({ "{") (expression_statement "uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);" (assignment_expression "uVar1 = FUN_000186b0(puStack_b8,param_5,param_6)" (identifier "uVar1") (= "=") (call_expression "FUN_000186b0(puStack_b8,param_5,param_6)" (identifier "FUN_000186b0") (argument_list "(puStack_b8,param_5,param_6)" (( "(") (identifier "puStack_b8") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" (else "else") (compound_statement "{\n        uVar1 = 0;\n        if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }\n      }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(param_1 + 0xdc) == '\0') {\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xdc) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xdc) == '\0'" (pointer_expression "*(char *)(param_1 + 0xdc)" (* "*") (cast_expression "(char *)(param_1 + 0xdc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xdc)" (( "(") (binary_expression "param_1 + 0xdc" (identifier "param_1") (+ "+") (number_literal "0xdc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);\n          uVar1 = (uint)(iVar2 != 0);\n        }" ({ "{") (expression_statement "iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);" (assignment_expression "iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" (identifier "iVar2") (= "=") (call_expression "FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" (identifier "FUN_00020a90") (argument_list "(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xd0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xd0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (expression_statement "uVar1 = (uint)(iVar2 != 0);" (assignment_expression "uVar1 = (uint)(iVar2 != 0)" (identifier "uVar1") (= "=") (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}")))) (if_statement "if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00028cb0();\n  }" (if "if") (parenthesized_expression "(iStack_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iStack_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iStack_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00028cb0();\n  }" ({ "{") (expression_statement "FUN_00028cb0();" (call_expression "FUN_00028cb0()" (identifier "FUN_00028cb0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00011f80 */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */

type_1
function_1(type_2 *var_4,type_3 *var_2,type_3 *var_3,type_3 *var_8,
              type_4 *max_fd,type_5 fd_setsize)

{
  type_1 MVar1;
  int var_10;
  type_6 var_5;
  type_7 *var_11;
  int var_1;
  type_7 *p_Stack_b8;
  type_7 a_Stack_a0 [32];
  int var_15;
  type_8 uStack_14;
  type_9 **ppuStack_10;
  
  ppuStack_10 = &_GLOBAL_OFFSET_TABLE_;
  uStack_14 = 0x1a769;
  var_15 = *(int *)(var_1 + 0x14);
  p_Stack_b8 = var_8->fds_bits;
  if ((var_2 == (type_3 *)0x0 || var_3 == (type_3 *)0x0) ||
     (var_4 == (type_2 *)0x0)) {
    MVar1 = MHD_NO;
  }
  else {
    var_5 = var_4->options;
    MVar1 = MHD_NO;
    if ((var_5 & var_6) == var_7) {
      if (var_8 == (type_3 *)0x0) {
        var_9(var_4,
                 "MHD_get_fdset2() called with except_fd_set set to NULL. Such behavior is unsupported.\n"
                );
        p_Stack_b8 = a_Stack_a0;
        var_11 = p_Stack_b8;
        for (var_10 = 0x20; var_10 != 0; var_10 = var_10 + -1) {
          *var_11 = 0;
          var_11 = var_11 + 1;
        }
        var_5 = var_4->options;
      }
      if ((var_5 & var_12) == var_7) {
        MVar1 = MHD_NO;
        if (var_4->shutdown == false) {
          MVar1 = var_13(var_4,var_2,var_3,(type_3 *)p_Stack_b8,max_fd,
                                      fd_setsize);
        }
      }
      else {
        MVar1 = MHD_NO;
        if (var_4->shutdown == false) {
          var_10 = var_14(var_4->epoll_fd,var_2,max_fd,fd_setsize);
          MVar1 = (type_1)(var_10 != 0);
        }
      }
    }
  }
  if (var_15 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return MVar1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00011f80 */

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

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  int in_GS_OFFSET;
  undefined4 *puStack_b8;
  undefined4 auStack_a0 [32];
  int iStack_20;
  undefined4 uStack_14;
  undefined **ppuStack_10;
  
  ppuStack_10 = &__DT_PLTGOT;
  uStack_14 = 0x1a769;
  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);
  puStack_b8 = param_4;
  if ((param_2 == 0 || param_3 == 0) || (param_1 == 0)) {
    uVar1 = 0;
  }
  else {
    uVar3 = *(uint *)(param_1 + 0xf4);
    uVar1 = 0;
    if ((uVar3 & 0x48) == 0) {
      if (param_4 == (undefined4 *)0x0) {
        FUN_0001f720(param_1,
                     "MASKED() called with except_fd_set set to NULL. Such behavior is unsupported.\n"
                    );
        puStack_b8 = auStack_a0;
        puVar4 = puStack_b8;
        for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
          *puVar4 = 0;
          puVar4 = puVar4 + 1;
        }
        uVar3 = *(uint *)(param_1 + 0xf4);
      }
      if ((uVar3 & 0x200) == 0) {
        uVar1 = 0;
        if (*(char *)(param_1 + 0xdc) == '\0') {
          uVar1 = FUN_000186b0(puStack_b8,param_5,param_6);
        }
      }
      else {
        uVar1 = 0;
        if (*(char *)(param_1 + 0xdc) == '\0') {
          iVar2 = FUN_00020a90(*(undefined4 *)(param_1 + 0xd0),param_2,param_5,param_6);
          uVar1 = (uint)(iVar2 != 0);
        }
      }
    }
  }
  if (iStack_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00028cb0();
  }
  return uVar1;
}

