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

int internal_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_Connection *pMVar1;
  undefined3 extraout_var;
  MHD_ConnectionEventLoopInfo MVar2;
  int iVar3;
  _Bool _Var4;
  MHD_UpgradeResponseHandle *urh;
  uint uVar5;
  MHD_Connection *pMVar6;
  
  if (daemon->shutdown == false) {
    if (daemon->listen_fd == -1) {
      uVar5 = 1;
    }
    else if (daemon->was_quiesced == false) {
      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);
      uVar5 = (uint)(iVar3 != 0);
    }
    else {
      uVar5 = 1;
    }
    pMVar6 = daemon->connections_tail;
    while (pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0) {
      MVar2 = pMVar1->event_loop_info;
      pMVar6 = pMVar1->prev;
      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {
        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);
        if (iVar3 == 0) {
          uVar5 = 0;
        }
        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);
      }
      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {
        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);
        if (iVar3 == 0) {
          uVar5 = 0;
        }
        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);
      }
      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {
        if (except_fd_set == (fd_set *)0x0) {
          uVar5 = 0;
        }
        else {
          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);
          if (iVar3 == 0) {
            uVar5 = 0;
          }
        }
      }
    }
    urh = daemon->urh_tail;
    while (urh != (MHD_UpgradeResponseHandle *)0x0) {
      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);
      urh = urh->prev;
      if (CONCAT31(extraout_var,_Var4) == 0) {
        uVar5 = 0;
      }
    }
  }
  else {
    uVar5 = 0;
  }
  return uVar5;
}



bool FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,
                 undefined4 param_6)

{
  int iVar1;
  int iVar2;
  bool bVar3;
  int iVar4;
  
  if (*(char *)(param_1 + 0xe0) == '\0') {
    if (*(int *)(param_1 + 0xc4) == -1) {
      bVar3 = true;
    }
    else if (*(char *)(param_1 + 0xe1) == '\0') {
      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);
      bVar3 = iVar4 != 0;
    }
    else {
      bVar3 = true;
    }
    iVar4 = *(int *)(param_1 + 0xc);
    while (iVar2 = iVar4, iVar2 != 0) {
      iVar1 = *(int *)(iVar2 + 0xb8);
      iVar4 = *(int *)(iVar2 + 0xc);
      if (iVar1 == 1) {
        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);
        if (iVar1 == 0) {
          bVar3 = false;
        }
        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
      }
      else if (iVar1 == 0) {
        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);
        if (iVar1 == 0) {
          bVar3 = false;
        }
        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
      }
      else if (iVar1 == 2) {
        if (param_4 == 0) {
          bVar3 = false;
        }
        else {
          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
          if (iVar2 == 0) {
            bVar3 = false;
          }
        }
      }
    }
    iVar4 = *(int *)(param_1 + 0x108);
    while (iVar4 != 0) {
      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);
      iVar4 = *(int *)(iVar4 + 8);
      if (iVar2 == 0) {
        bVar3 = false;
      }
    }
  }
  else {
    bVar3 = false;
  }
  return bVar3;
}


lui gp,0x3
addiu gp,gp,0x6d0
addu gp,gp,t9
addiu sp,sp,-0x50
sw ra,0x4c(sp)
sw s8,0x48(sp)
sw s7,0x44(sp)
sw s6,0x40(sp)
sw s5,0x3c(sp)
sw s4,0x38(sp)
sw s3,0x34(sp)
sw s2,0x30(sp)
sw s1,0x2c(sp)
sw s0,0x28(sp)
sw gp,0x18(sp)
lw s2,0x60(sp)
lw s3,0x64(sp)
lbu v0,0xe0(a0)
andi v0,v0,0xff
bne v0,zero,0x00018b70
_or s8,a0,zero
sw a2,0x24(sp)
sw a1,0x20(sp)
lw a0,0xc4(a0)
li v0,-0x1
beq a0,v0,0x00018a10
_or s4,a3,zero
lbu v0,0xe1(s8)
andi v0,v0,0xff
beq v0,zero,0x000189f4
_or a2,s2,zero
li s1,0x1
lw s0,0xc(s8)
beq s0,zero,0x00018af8
_li s7,0x1
b 0x00018a60
_li s6,0x2
or a3,s3,zero
lw t9,-0x7f74(gp)
bal 0x000242e0
_nop
lw gp,0x18(sp)
b 0x000189e0
_sltu s1,zero,v0
b 0x000189e0
_li s1,0x1
or a2,s2,zero
lw a1,0x20(sp)
lw a0,0xa4(s0)
lw t9,-0x7f74(gp)
bal 0x000242e0
_nop
lw gp,0x18(sp)
movz s1,zero,v0
or a3,s3,zero
or a2,s2,zero
or a1,s4,zero
lw a0,0xa4(s0)
lw t9,-0x7f74(gp)
bal 0x000242e0
_nop
lw gp,0x18(sp)
beq s5,zero,0x00018af8
_or s0,s5,zero
lw v0,0xb8(s0)
beq v0,s7,0x00018aa4
_lw s5,0xc(s0)
beq v0,zero,0x00018a18
_or a3,s3,zero
bne v0,s6,0x00018a58
_nop
beq s4,zero,0x00018af0
_or a2,s2,zero
or a1,s4,zero
lw a0,0xa4(s0)
lw t9,-0x7f74(gp)
bal 0x000242e0
_nop
lw gp,0x18(sp)
b 0x00018a58
_movz s1,zero,v0
or a3,s3,zero
or a2,s2,zero
lw a1,0x24(sp)
lw a0,0xa4(s0)
lw t9,-0x7f74(gp)
bal 0x000242e0
_nop
lw gp,0x18(sp)
movz s1,zero,v0
or a3,s3,zero
or a2,s2,zero
or a1,s4,zero
lw a0,0xa4(s0)
lw t9,-0x7f74(gp)
bal 0x000242e0
_nop
lw gp,0x18(sp)
b 0x00018a58
_nop
b 0x00018a58
_or s1,zero,zero
lw s0,0x108(s8)
beq s0,zero,0x00018b3c
_lw s5,-0x7f70(gp)
addiu s5,s5,-0x78c4
sw s3,0x14(sp)
sw s2,0x10(sp)
or a3,s4,zero
lw a2,0x24(sp)
lw a1,0x20(sp)
or a0,s0,zero
or t9,s5,zero
bal 0x0001873c
_nop
lw gp,0x18(sp)
lw s0,0x8(s0)
bne s0,zero,0x00018b08
_movz s1,zero,v0
or v0,s1,zero
lw ra,0x4c(sp)
lw s8,0x48(sp)
lw s7,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x50
b 0x00018b3c
_or s1,zero,zero
(translation_unit "bool FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}\n\n" (function_definition "bool FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xe0) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xe0) == '\0'" (pointer_expression "*(char *)(param_1 + 0xe0)" * (cast_expression "(char *)(param_1 + 0xe0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc4) == -1)" ( (binary_expression "*(int *)(param_1 + 0xc4) == -1" (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      bVar3 = true;\n    }" { (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }) (else_clause "else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" else (if_statement "if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0xe1) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xe1) == '\0'" (pointer_expression "*(char *)(param_1 + 0xe1)" * (cast_expression "(char *)(param_1 + 0xe1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe1)" ( (binary_expression "param_1 + 0xe1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }" { (expression_statement "iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);" (assignment_expression "iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" identifier (argument_list "(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" ( (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (expression_statement "bVar3 = iVar4 != 0;" (assignment_expression "bVar3 = iVar4 != 0" identifier = (binary_expression "iVar4 != 0" identifier != number_literal)) ;) }) (else_clause "else {\n      bVar3 = true;\n    }" else (compound_statement "{\n      bVar3 = true;\n    }" { (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }))))) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }" while (parenthesized_expression "(iVar2 = iVar4, iVar2 != 0)" ( (comma_expression "iVar2 = iVar4, iVar2 != 0" (assignment_expression "iVar2 = iVar4" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }" { (expression_statement "iVar1 = *(int *)(iVar2 + 0xb8);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0xb8)" identifier = (pointer_expression "*(int *)(iVar2 + 0xb8)" * (cast_expression "(int *)(iVar2 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb8)" ( (binary_expression "iVar2 + 0xb8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0xc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }" { (expression_statement "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);" (assignment_expression "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n          bVar3 = false;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar3 = false;\n        }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) (expression_statement "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) }) (else_clause "else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" else (if_statement "if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }" { (expression_statement "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);" (assignment_expression "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n          bVar3 = false;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar3 = false;\n        }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) (expression_statement "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) }) (else_clause "else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" else (if_statement "if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" { (if_statement "if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar3 = false;\n        }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) }) (else_clause "else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" else (compound_statement "{\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" { (expression_statement "iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (assignment_expression "iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n            bVar3 = false;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            bVar3 = false;\n          }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) }))) })))))) })) (expression_statement "iVar4 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x108)" identifier = (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) (while_statement "while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }" while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }" { (expression_statement "iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);" (assignment_expression "iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6)" identifier = (call_expression "FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(iVar4,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 8);" (assignment_expression "iVar4 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n        bVar3 = false;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        bVar3 = false;\n      }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) })) }) (else_clause "else {\n    bVar3 = false;\n  }" else (compound_statement "{\n    bVar3 = false;\n  }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint internal_get_fdset2(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,\n                       fd_set *except_fd_set,MHD_socket *max_fd,uint fd_setsize)\n\n{\n  MHD_Connection *pMVar1;\n  undefined3 extraout_var;\n  MHD_ConnectionEventLoopInfo MVar2;\n  int iVar3;\n  _Bool _Var4;\n  MHD_UpgradeResponseHandle *urh;\n  uint uVar5;\n  MHD_Connection *pMVar6;\n  \n  if (daemon->shutdown == false) {\n    if (daemon->listen_fd == -1) {\n      uVar5 = 1;\n    }\n    else if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }\n    pMVar6 = daemon->connections_tail;\n    while (pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0) {\n      MVar2 = pMVar1->event_loop_info;\n      pMVar6 = pMVar1->prev;\n      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }\n    }\n    urh = daemon->urh_tail;\n    while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n      urh = urh->prev;\n      if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }\n    }\n  }\n  else {\n    uVar5 = 0;\n  }\n  return uVar5;\n}\n\n" comment comment comment (function_definition "int internal_get_fdset2(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,\n                       fd_set *except_fd_set,MHD_socket *max_fd,uint fd_setsize)\n\n{\n  MHD_Connection *pMVar1;\n  undefined3 extraout_var;\n  MHD_ConnectionEventLoopInfo MVar2;\n  int iVar3;\n  _Bool _Var4;\n  MHD_UpgradeResponseHandle *urh;\n  uint uVar5;\n  MHD_Connection *pMVar6;\n  \n  if (daemon->shutdown == false) {\n    if (daemon->listen_fd == -1) {\n      uVar5 = 1;\n    }\n    else if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }\n    pMVar6 = daemon->connections_tail;\n    while (pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0) {\n      MVar2 = pMVar1->event_loop_info;\n      pMVar6 = pMVar1->prev;\n      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }\n    }\n    urh = daemon->urh_tail;\n    while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n      urh = urh->prev;\n      if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }\n    }\n  }\n  else {\n    uVar5 = 0;\n  }\n  return uVar5;\n}" primitive_type (function_declarator "internal_get_fdset2(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,\n                       fd_set *except_fd_set,MHD_socket *max_fd,uint fd_setsize)" identifier (parameter_list "(MHD_Daemon *daemon,fd_set *read_fd_set,fd_set *write_fd_set,\n                       fd_set *except_fd_set,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_Connection *pMVar1;\n  undefined3 extraout_var;\n  MHD_ConnectionEventLoopInfo MVar2;\n  int iVar3;\n  _Bool _Var4;\n  MHD_UpgradeResponseHandle *urh;\n  uint uVar5;\n  MHD_Connection *pMVar6;\n  \n  if (daemon->shutdown == false) {\n    if (daemon->listen_fd == -1) {\n      uVar5 = 1;\n    }\n    else if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }\n    pMVar6 = daemon->connections_tail;\n    while (pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0) {\n      MVar2 = pMVar1->event_loop_info;\n      pMVar6 = pMVar1->prev;\n      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }\n    }\n    urh = daemon->urh_tail;\n    while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n      urh = urh->prev;\n      if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }\n    }\n  }\n  else {\n    uVar5 = 0;\n  }\n  return uVar5;\n}" { (declaration "MHD_Connection *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "MHD_ConnectionEventLoopInfo MVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "MHD_UpgradeResponseHandle *urh;" type_identifier (pointer_declarator "*urh" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "MHD_Connection *pMVar6;" type_identifier (pointer_declarator "*pMVar6" * identifier) ;) (if_statement "if (daemon->shutdown == false) {\n    if (daemon->listen_fd == -1) {\n      uVar5 = 1;\n    }\n    else if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }\n    pMVar6 = daemon->connections_tail;\n    while (pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0) {\n      MVar2 = pMVar1->event_loop_info;\n      pMVar6 = pMVar1->prev;\n      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }\n    }\n    urh = daemon->urh_tail;\n    while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n      urh = urh->prev;\n      if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }\n    }\n  }\n  else {\n    uVar5 = 0;\n  }" if (parenthesized_expression "(daemon->shutdown == false)" ( (binary_expression "daemon->shutdown == false" (field_expression "daemon->shutdown" identifier -> field_identifier) == false) )) (compound_statement "{\n    if (daemon->listen_fd == -1) {\n      uVar5 = 1;\n    }\n    else if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }\n    pMVar6 = daemon->connections_tail;\n    while (pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0) {\n      MVar2 = pMVar1->event_loop_info;\n      pMVar6 = pMVar1->prev;\n      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }\n    }\n    urh = daemon->urh_tail;\n    while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n      urh = urh->prev;\n      if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }\n    }\n  }" { (if_statement "if (daemon->listen_fd == -1) {\n      uVar5 = 1;\n    }\n    else if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }" if (parenthesized_expression "(daemon->listen_fd == -1)" ( (binary_expression "daemon->listen_fd == -1" (field_expression "daemon->listen_fd" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      uVar5 = 1;\n    }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) }) (else_clause "else if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }" else (if_statement "if (daemon->was_quiesced == false) {\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }\n    else {\n      uVar5 = 1;\n    }" if (parenthesized_expression "(daemon->was_quiesced == false)" ( (binary_expression "daemon->was_quiesced == false" (field_expression "daemon->was_quiesced" identifier -> field_identifier) == false) )) (compound_statement "{\n      iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n      uVar5 = (uint)(iVar3 != 0);\n    }" { (expression_statement "iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);" (assignment_expression "iVar3 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize)" identifier = (call_expression "MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize)" identifier (argument_list "(daemon->listen_fd,read_fd_set,max_fd,fd_setsize)" ( (field_expression "daemon->listen_fd" identifier -> field_identifier) , identifier , identifier , identifier )))) ;) (expression_statement "uVar5 = (uint)(iVar3 != 0);" (assignment_expression "uVar5 = (uint)(iVar3 != 0)" identifier = (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )))) ;) }) (else_clause "else {\n      uVar5 = 1;\n    }" else (compound_statement "{\n      uVar5 = 1;\n    }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) }))))) (expression_statement "pMVar6 = daemon->connections_tail;" (assignment_expression "pMVar6 = daemon->connections_tail" identifier = (field_expression "daemon->connections_tail" identifier -> field_identifier)) ;) (while_statement "while (pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0) {\n      MVar2 = pMVar1->event_loop_info;\n      pMVar6 = pMVar1->prev;\n      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }\n    }" while (parenthesized_expression "(pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0)" ( (comma_expression "pMVar1 = pMVar6, pMVar1 != (MHD_Connection *)0x0" (assignment_expression "pMVar1 = pMVar6" identifier = identifier) , (binary_expression "pMVar1 != (MHD_Connection *)0x0" identifier != (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      MVar2 = pMVar1->event_loop_info;\n      pMVar6 = pMVar1->prev;\n      if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }\n    }" { (expression_statement "MVar2 = pMVar1->event_loop_info;" (assignment_expression "MVar2 = pMVar1->event_loop_info" identifier = (field_expression "pMVar1->event_loop_info" identifier -> field_identifier)) ;) (expression_statement "pMVar6 = pMVar1->prev;" (assignment_expression "pMVar6 = pMVar1->prev" identifier = (field_expression "pMVar1->prev" identifier -> field_identifier)) ;) (if_statement "if (MVar2 == MHD_EVENT_LOOP_INFO_WRITE) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }" if (parenthesized_expression "(MVar2 == MHD_EVENT_LOOP_INFO_WRITE)" ( (binary_expression "MVar2 == MHD_EVENT_LOOP_INFO_WRITE" identifier == identifier) )) (compound_statement "{\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }" { (expression_statement "iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize);" (assignment_expression "iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize)" identifier = (call_expression "MHD_add_to_fd_set_(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize)" identifier (argument_list "(pMVar1->socket_fd,write_fd_set,max_fd,fd_setsize)" ( (field_expression "pMVar1->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          uVar5 = 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar5 = 0;\n        }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) })) (expression_statement "MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);" (call_expression "MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize)" identifier (argument_list "(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize)" ( (field_expression "pMVar1->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier ))) ;) }) (else_clause "else if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }" else (if_statement "if (MVar2 == MHD_EVENT_LOOP_INFO_READ) {\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }\n      else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }" if (parenthesized_expression "(MVar2 == MHD_EVENT_LOOP_INFO_READ)" ( (binary_expression "MVar2 == MHD_EVENT_LOOP_INFO_READ" identifier == identifier) )) (compound_statement "{\n        iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);\n        if (iVar3 == 0) {\n          uVar5 = 0;\n        }\n        MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n      }" { (expression_statement "iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize);" (assignment_expression "iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize)" identifier = (call_expression "MHD_add_to_fd_set_(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize)" identifier (argument_list "(pMVar1->socket_fd,read_fd_set,max_fd,fd_setsize)" ( (field_expression "pMVar1->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          uVar5 = 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar5 = 0;\n        }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) })) (expression_statement "MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);" (call_expression "MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize)" identifier (argument_list "(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize)" ( (field_expression "pMVar1->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier ))) ;) }) (else_clause "else if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }" else (if_statement "if (MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) {\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }" if (parenthesized_expression "(MVar2 == MHD_EVENT_LOOP_INFO_BLOCK)" ( (binary_expression "MVar2 == MHD_EVENT_LOOP_INFO_BLOCK" identifier == identifier) )) (compound_statement "{\n        if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }\n      }" { (if_statement "if (except_fd_set == (fd_set *)0x0) {\n          uVar5 = 0;\n        }\n        else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\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          uVar5 = 0;\n        }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }" else (compound_statement "{\n          iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);\n          if (iVar3 == 0) {\n            uVar5 = 0;\n          }\n        }" { (expression_statement "iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize);" (assignment_expression "iVar3 = MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize)" identifier = (call_expression "MHD_add_to_fd_set_(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize)" identifier (argument_list "(pMVar1->socket_fd,except_fd_set,max_fd,fd_setsize)" ( (field_expression "pMVar1->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            uVar5 = 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar5 = 0;\n          }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) })) }))) })))))) })) (expression_statement "urh = daemon->urh_tail;" (assignment_expression "urh = daemon->urh_tail" identifier = (field_expression "daemon->urh_tail" identifier -> field_identifier)) ;) (while_statement "while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n      urh = urh->prev;\n      if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }\n    }" while (parenthesized_expression "(urh != (MHD_UpgradeResponseHandle *)0x0)" ( (binary_expression "urh != (MHD_UpgradeResponseHandle *)0x0" identifier != (cast_expression "(MHD_UpgradeResponseHandle *)0x0" ( (type_descriptor "MHD_UpgradeResponseHandle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      _Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n      urh = urh->prev;\n      if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }\n    }" { (expression_statement "_Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);" (assignment_expression "_Var4 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize)" identifier = (call_expression "urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize)" identifier (argument_list "(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "urh = urh->prev;" (assignment_expression "urh = urh->prev" identifier = (field_expression "urh->prev" identifier -> field_identifier)) ;) (if_statement "if (CONCAT31(extraout_var,_Var4) == 0) {\n        uVar5 = 0;\n      }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var4) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var4) == 0" (call_expression "CONCAT31(extraout_var,_Var4)" identifier (argument_list "(extraout_var,_Var4)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n        uVar5 = 0;\n      }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) })) })) }) (else_clause "else {\n    uVar5 = 0;\n  }" else (compound_statement "{\n    uVar5 = 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "bool FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}\n\n" (function_definition "bool FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xe0) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xe0) == '\0'" (pointer_expression "*(char *)(param_1 + 0xe0)" * (cast_expression "(char *)(param_1 + 0xe0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc4) == -1)" ( (binary_expression "*(int *)(param_1 + 0xc4) == -1" (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      bVar3 = true;\n    }" { (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }) (else_clause "else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" else (if_statement "if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0xe1) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xe1) == '\0'" (pointer_expression "*(char *)(param_1 + 0xe1)" * (cast_expression "(char *)(param_1 + 0xe1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe1)" ( (binary_expression "param_1 + 0xe1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }" { (expression_statement "iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);" (assignment_expression "iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" identifier (argument_list "(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" ( (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (expression_statement "bVar3 = iVar4 != 0;" (assignment_expression "bVar3 = iVar4 != 0" identifier = (binary_expression "iVar4 != 0" identifier != number_literal)) ;) }) (else_clause "else {\n      bVar3 = true;\n    }" else (compound_statement "{\n      bVar3 = true;\n    }" { (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }))))) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }" while (parenthesized_expression "(iVar2 = iVar4, iVar2 != 0)" ( (comma_expression "iVar2 = iVar4, iVar2 != 0" (assignment_expression "iVar2 = iVar4" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }" { (expression_statement "iVar1 = *(int *)(iVar2 + 0xb8);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0xb8)" identifier = (pointer_expression "*(int *)(iVar2 + 0xb8)" * (cast_expression "(int *)(iVar2 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb8)" ( (binary_expression "iVar2 + 0xb8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0xc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }" { (expression_statement "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);" (assignment_expression "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n          bVar3 = false;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar3 = false;\n        }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) (expression_statement "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) }) (else_clause "else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" else (if_statement "if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }" { (expression_statement "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);" (assignment_expression "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n          bVar3 = false;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar3 = false;\n        }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) (expression_statement "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) }) (else_clause "else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" else (if_statement "if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" { (if_statement "if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar3 = false;\n        }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) }) (else_clause "else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" else (compound_statement "{\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" { (expression_statement "iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (assignment_expression "iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier = (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n            bVar3 = false;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            bVar3 = false;\n          }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) }))) })))))) })) (expression_statement "iVar4 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x108)" identifier = (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) (while_statement "while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }" while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }" { (expression_statement "iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);" (assignment_expression "iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6)" identifier = (call_expression "FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(iVar4,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 8);" (assignment_expression "iVar4 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n        bVar3 = false;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        bVar3 = false;\n      }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) })) }) (else_clause "else {\n    bVar3 = false;\n  }" else (compound_statement "{\n    bVar3 = false;\n  }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) }))) (return_statement "return bVar3;" 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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (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 = (binary_expression IDENT != LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }))))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)) )) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) }))) })))))) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (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 IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }))) (return_statement return IDENT ;) })))
(function_definition "bool FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}" (primitive_type "bool") (function_declarator "FUN_00018960(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)" (identifier "FUN_00018960") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                 undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (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  int iVar1;\n  int iVar2;\n  bool bVar3;\n  int iVar4;\n  \n  if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }\n  return bVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if (*(char *)(param_1 + 0xe0) == '\0') {\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }\n  else {\n    bVar3 = false;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xe0) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xe0) == '\0'" (pointer_expression "*(char *)(param_1 + 0xe0)" (* "*") (cast_expression "(char *)(param_1 + 0xe0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe0)" (( "(") (binary_expression "param_1 + 0xe0" (identifier "param_1") (+ "+") (number_literal "0xe0")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }\n    iVar4 = *(int *)(param_1 + 0xc);\n    while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }\n    iVar4 = *(int *)(param_1 + 0x108);\n    while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0xc4) == -1) {\n      bVar3 = true;\n    }\n    else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc4) == -1)" (( "(") (binary_expression "*(int *)(param_1 + 0xc4) == -1" (pointer_expression "*(int *)(param_1 + 0xc4)" (* "*") (cast_expression "(int *)(param_1 + 0xc4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc4)" (( "(") (binary_expression "param_1 + 0xc4" (identifier "param_1") (+ "+") (number_literal "0xc4")) () ")")))) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      bVar3 = true;\n    }" ({ "{") (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" (else "else") (if_statement "if (*(char *)(param_1 + 0xe1) == '\0') {\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }\n    else {\n      bVar3 = true;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xe1) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xe1) == '\0'" (pointer_expression "*(char *)(param_1 + 0xe1)" (* "*") (cast_expression "(char *)(param_1 + 0xe1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe1)" (( "(") (binary_expression "param_1 + 0xe1" (identifier "param_1") (+ "+") (number_literal "0xe1")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n      bVar3 = iVar4 != 0;\n    }" ({ "{") (expression_statement "iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);" (assignment_expression "iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" (identifier "iVar4") (= "=") (call_expression "FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" (identifier "FUN_000242e0") (argument_list "(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" (( "(") (pointer_expression "*(int *)(param_1 + 0xc4)" (* "*") (cast_expression "(int *)(param_1 + 0xc4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc4)" (( "(") (binary_expression "param_1 + 0xc4" (identifier "param_1") (+ "+") (number_literal "0xc4")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (expression_statement "bVar3 = iVar4 != 0;" (assignment_expression "bVar3 = iVar4 != 0" (identifier "bVar3") (= "=") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) (; ";")) (} "}")) (else_clause "else {\n      bVar3 = true;\n    }" (else "else") (compound_statement "{\n      bVar3 = true;\n    }" ({ "{") (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (} "}")))))) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (while_statement "while (iVar2 = iVar4, iVar2 != 0) {\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }" (while "while") (parenthesized_expression "(iVar2 = iVar4, iVar2 != 0)" (( "(") (comma_expression "iVar2 = iVar4, iVar2 != 0" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar2 + 0xb8);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0xb8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar2 + 0xb8)" (* "*") (cast_expression "(int *)(iVar2 + 0xb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xb8)" (( "(") (binary_expression "iVar2 + 0xb8" (identifier "iVar2") (+ "+") (number_literal "0xb8")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 1) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }" ({ "{") (expression_statement "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);" (assignment_expression "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" (identifier "iVar1") (= "=") (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" (identifier "FUN_000242e0") (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (identifier "param_3") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n          bVar3 = false;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          bVar3 = false;\n        }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (} "}"))) (expression_statement "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (identifier "FUN_000242e0") (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" (else "else") (if_statement "if (iVar1 == 0) {\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }\n      else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);\n        if (iVar1 == 0) {\n          bVar3 = false;\n        }\n        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      }" ({ "{") (expression_statement "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);" (assignment_expression "iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" (identifier "iVar1") (= "=") (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" (identifier "FUN_000242e0") (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n          bVar3 = false;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          bVar3 = false;\n        }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (} "}"))) (expression_statement "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (identifier "FUN_000242e0") (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" (else "else") (if_statement "if (iVar1 == 2) {\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }\n      }" ({ "{") (if_statement "if (param_4 == 0) {\n          bVar3 = false;\n        }\n        else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          bVar3 = false;\n        }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (} "}")) (else_clause "else {\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" (else "else") (compound_statement "{\n          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n          if (iVar2 == 0) {\n            bVar3 = false;\n          }\n        }" ({ "{") (expression_statement "iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (assignment_expression "iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (identifier "iVar2") (= "=") (call_expression "FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (identifier "FUN_000242e0") (argument_list "(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n            bVar3 = false;\n          }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            bVar3 = false;\n          }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (} "}"))) (} "}")))) (} "}"))))))) (} "}"))) (expression_statement "iVar4 = *(int *)(param_1 + 0x108);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x108)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")"))))) (; ";")) (while_statement "while (iVar4 != 0) {\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }" (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);\n      iVar4 = *(int *)(iVar4 + 8);\n      if (iVar2 == 0) {\n        bVar3 = false;\n      }\n    }" ({ "{") (expression_statement "iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);" (assignment_expression "iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6)" (identifier "iVar2") (= "=") (call_expression "FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6)" (identifier "FUN_0001873c") (argument_list "(iVar4,param_2,param_3,param_4,param_5,param_6)" (( "(") (identifier "iVar4") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar4 + 8);" (assignment_expression "iVar4 = *(int *)(iVar4 + 8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar2 == 0) {\n        bVar3 = false;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        bVar3 = false;\n      }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n    bVar3 = false;\n  }" (else "else") (compound_statement "{\n    bVar3 = false;\n  }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (} "}")))) (return_statement "return bVar3;" (return "return") (identifier "bVar3") (; ";")) (} "}")))

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

int function_1(type_1 *daemon,type_2 *read_fd_set,type_2 *write_fd_set,
                       type_2 *var_8,type_3 *max_fd,type_4 fd_setsize)

{
  type_5 *var_3;
  type_6 extraout_var;
  type_7 var_4;
  int var_2;
  type_8 _Var4;
  type_9 *var_9;
  type_4 uVar5;
  type_5 *pMVar6;
  
  if (daemon->shutdown == false) {
    if (daemon->listen_fd == -1) {
      uVar5 = 1;
    }
    else if (daemon->was_quiesced == false) {
      var_2 = var_1(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);
      uVar5 = (type_4)(var_2 != 0);
    }
    else {
      uVar5 = 1;
    }
    pMVar6 = daemon->connections_tail;
    while (var_3 = pMVar6, var_3 != (type_5 *)0x0) {
      var_4 = var_3->event_loop_info;
      pMVar6 = var_3->prev;
      if (var_4 == var_5) {
        var_2 = var_1(var_3->socket_fd,write_fd_set,max_fd,fd_setsize);
        if (var_2 == 0) {
          uVar5 = 0;
        }
        var_1(var_3->socket_fd,var_8,max_fd,fd_setsize);
      }
      else if (var_4 == var_6) {
        var_2 = var_1(var_3->socket_fd,read_fd_set,max_fd,fd_setsize);
        if (var_2 == 0) {
          uVar5 = 0;
        }
        var_1(var_3->socket_fd,var_8,max_fd,fd_setsize);
      }
      else if (var_4 == var_7) {
        if (var_8 == (type_2 *)0x0) {
          uVar5 = 0;
        }
        else {
          var_2 = var_1(var_3->socket_fd,var_8,max_fd,fd_setsize);
          if (var_2 == 0) {
            uVar5 = 0;
          }
        }
      }
    }
    var_9 = daemon->urh_tail;
    while (var_9 != (type_9 *)0x0) {
      _Var4 = var_10(var_9,read_fd_set,write_fd_set,var_8,max_fd,fd_setsize);
      var_9 = var_9->prev;
      if (var_11(extraout_var,_Var4) == 0) {
        uVar5 = 0;
      }
    }
  }
  else {
    uVar5 = 0;
  }
  return uVar5;
}


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

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

{
  int iVar1;
  int iVar2;
  bool bVar3;
  int iVar4;
  
  if (*(char *)(param_1 + 0xe0) == '\0') {
    if (*(int *)(param_1 + 0xc4) == -1) {
      bVar3 = true;
    }
    else if (*(char *)(param_1 + 0xe1) == '\0') {
      iVar4 = FUN_000242e0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);
      bVar3 = iVar4 != 0;
    }
    else {
      bVar3 = true;
    }
    iVar4 = *(int *)(param_1 + 0xc);
    while (iVar2 = iVar4, iVar2 != 0) {
      iVar1 = *(int *)(iVar2 + 0xb8);
      iVar4 = *(int *)(iVar2 + 0xc);
      if (iVar1 == 1) {
        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_3,param_5,param_6);
        if (iVar1 == 0) {
          bVar3 = false;
        }
        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
      }
      else if (iVar1 == 0) {
        iVar1 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_2,param_5,param_6);
        if (iVar1 == 0) {
          bVar3 = false;
        }
        FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
      }
      else if (iVar1 == 2) {
        if (param_4 == 0) {
          bVar3 = false;
        }
        else {
          iVar2 = FUN_000242e0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
          if (iVar2 == 0) {
            bVar3 = false;
          }
        }
      }
    }
    iVar4 = *(int *)(param_1 + 0x108);
    while (iVar4 != 0) {
      iVar2 = FUN_0001873c(iVar4,param_2,param_3,param_4,param_5,param_6);
      iVar4 = *(int *)(iVar4 + 8);
      if (iVar2 == 0) {
        bVar3 = false;
      }
    }
  }
  else {
    bVar3 = false;
  }
  return bVar3;
}

