
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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 __regparm3
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;
  MHD_ConnectionEventLoopInfo MVar2;
  MHD_UpgradeResponseHandle *urh;
  _Bool _Var3;
  int iVar4;
  MHD_Connection *pMVar5;
  uint uVar6;
  fd_set *set;
  
  uVar6 = 1;
  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {
    iVar4 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);
    uVar6 = (uint)(iVar4 != 0);
  }
  pMVar1 = daemon->connections_tail;
  while (pMVar5 = pMVar1, pMVar1 != (MHD_Connection *)0x0) {
    while( true ) {
      MVar2 = pMVar5->event_loop_info;
      pMVar1 = pMVar5->prev;
      set = write_fd_set;
      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&
         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;
      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);
      if (iVar4 == 0) {
        uVar6 = 0;
      }
      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);
      pMVar5 = pMVar1;
      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;
    }
    if ((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&
       ((except_fd_set == (fd_set *)0x0 ||
        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))
       )) {
      uVar6 = 0;
    }
  }
LAB_0001a347:
  urh = daemon->urh_tail;
  while (urh != (MHD_UpgradeResponseHandle *)0x0) {
    _Var3 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);
    urh = urh->prev;
    if (!_Var3) {
      uVar6 = 0;
    }
  }
  return uVar6;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  bool bVar5;
  undefined4 uVar6;
  
  bVar5 = true;
  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {
    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);
    bVar5 = iVar4 != 0;
  }
  iVar4 = *(int *)(param_1 + 0xc);
  while (iVar2 = iVar4, iVar4 != 0) {
    while( true ) {
      iVar3 = *(int *)(iVar2 + 0xb8);
      iVar4 = *(int *)(iVar2 + 0xc);
      uVar6 = param_3;
      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;
      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);
      if (iVar3 == 0) {
        bVar5 = false;
      }
      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
      iVar2 = iVar4;
      if (iVar4 == 0) goto LAB_0001a347;
    }
    if ((iVar3 == 2) &&
       ((param_4 == 0 ||
        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))
    {
      bVar5 = false;
    }
  }
LAB_0001a347:
  iVar4 = *(int *)(param_1 + 0x108);
  while (iVar4 != 0) {
    cVar1 = FUN_00018b40(param_4,param_5,param_6);
    iVar4 = *(int *)(iVar4 + 8);
    if (cVar1 == '\0') {
      bVar5 = false;
    }
  }
  return bVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,0x1
PUSH EBX
CALL 0x00013810
ADD EBX,0x19b32
SUB ESP,0x2c
MOV EBP,dword ptr [ESP + 0x44]
MOV EDI,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [ESP + 0x10],ECX
MOV ECX,EAX
MOV EAX,dword ptr [EAX + 0xc4]
MOV dword ptr [ESP + 0xc],EDX
CMP EAX,-0x1
JZ 0x0001a2e7
MOVZX EDX,byte ptr [ECX + 0xe1]
TEST DL,DL
JZ 0x0001a3f8
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [EAX + 0xc]
TEST EDX,EDX
JZ 0x0001a347
LEA ESI,[ESI]
MOV EAX,dword ptr [EDX + 0xb8]
MOV ECX,dword ptr [EDX + 0xc]
CMP EAX,0x1
JZ 0x0001a3e8
TEST EAX,EAX
JZ 0x0001a390
CMP EAX,0x2
JNZ 0x0001a341
MOV EAX,dword ptr [ESP + 0x40]
TEST EAX,EAX
JZ 0x0001a33f
MOV dword ptr [ESP + 0x14],ECX
PUSH EDI
PUSH EBP
PUSH dword ptr [ESP + 0x48]
PUSH dword ptr [EDX + 0xa4]
CALL 0x000219a0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JNZ 0x0001a341
XOR ESI,ESI
MOV EDX,ECX
TEST ECX,ECX
JNZ 0x0001a2f8
MOV EAX,dword ptr [ESP + 0x1c]
MOV EBX,dword ptr [EAX + 0x108]
TEST EBX,EBX
JZ 0x0001a384
LEA ESI,[ESI]
SUB ESP,0x4
MOV EAX,EBX
PUSH EDI
PUSH EBP
PUSH dword ptr [ESP + 0x4c]
MOV ECX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x00018b40
MOV EBX,dword ptr [EBX + 0x8]
ADD ESP,0x10
TEST AL,AL
MOV EAX,0x0
CMOVZ ESI,EAX
TEST EBX,EBX
JNZ 0x0001a358
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x18],ECX
PUSH EDI
PUSH EBP
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [EDX + 0xa4]
MOV dword ptr [ESP + 0x24],EDX
CALL 0x000219a0
ADD ESP,0x10
PUSH EDI
TEST EAX,EAX
MOV EAX,0x0
PUSH EBP
CMOVZ ESI,EAX
PUSH dword ptr [ESP + 0x48]
MOV EDX,dword ptr [ESP + 0x20]
PUSH dword ptr [EDX + 0xa4]
CALL 0x000219a0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,ECX
TEST ECX,ECX
JNZ 0x0001a2f8
JMP 0x0001a347
MOV dword ptr [ESP + 0x18],ECX
PUSH EDI
PUSH EBP
PUSH dword ptr [ESP + 0x18]
JMP 0x0001a39a
PUSH EDI
PUSH EBP
PUSH dword ptr [ESP + 0x14]
PUSH EAX
CALL 0x000219a0
ADD ESP,0x10
TEST EAX,EAX
SETNZ AL
MOVZX EAX,AL
MOV ESI,EAX
JMP 0x0001a2e7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3\nFUN_0001a2a0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}\n\n" comment (function_definition "bool __regparm3\nFUN_0001a2a0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a2a0(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  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;) (if_statement "if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')" (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) )) && (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_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }" { (expression_statement "iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);" (assignment_expression "iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" identifier = (call_expression "FUN_000219a0(*(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 "bVar5 = iVar4 != 0;" (assignment_expression "bVar5 = iVar4 != 0" identifier = (binary_expression "iVar4 != 0" identifier != number_literal)) ;) })) (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, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }" while (parenthesized_expression "(iVar2 = iVar4, iVar4 != 0)" ( (comma_expression "iVar2 = iVar4, iVar4 != 0" (assignment_expression "iVar2 = iVar4" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }" { (while_statement "while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }" { (expression_statement "iVar3 = *(int *)(iVar2 + 0xb8);" (assignment_expression "iVar3 = *(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) ))))) ;) (expression_statement "uVar6 = param_3;" (assignment_expression "uVar6 = param_3" identifier = identifier) ;) (if_statement "if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;" if (parenthesized_expression "((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0))" ( (binary_expression "(iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)" (parenthesized_expression "(iVar3 != 1)" ( (binary_expression "iVar3 != 1" identifier != number_literal) )) && (parenthesized_expression "(uVar6 = param_2, iVar3 != 0)" ( (comma_expression "uVar6 = param_2, iVar3 != 0" (assignment_expression "uVar6 = param_2" identifier = identifier) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);" (assignment_expression "iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6)" identifier = (call_expression "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),uVar6,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 (iVar3 == 0) {\n        bVar5 = false;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        bVar5 = false;\n      }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) })) (expression_statement "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000219a0(*(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 ))) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 == 0) goto LAB_0001a347;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a347;" goto statement_identifier ;)) })) (if_statement "if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }" if (parenthesized_expression "((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))" ( (binary_expression "(iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)))" (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) && (parenthesized_expression "((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)))" ( (parenthesized_expression "(param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))" ( (binary_expression "param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)" (binary_expression "param_4 == 0" identifier == number_literal) || (parenthesized_expression "(iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0" (assignment_expression "iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier = (call_expression "FUN_000219a0(*(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 )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n      bVar5 = false;\n    }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) })) })) (labeled_statement "LAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);" statement_identifier : (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    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }" while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }" { (expression_statement "cVar1 = FUN_00018b40(param_4,param_5,param_6);" (assignment_expression "cVar1 = FUN_00018b40(param_4,param_5,param_6)" identifier = (call_expression "FUN_00018b40(param_4,param_5,param_6)" identifier (argument_list "(param_4,param_5,param_6)" ( 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 (cVar1 == '\0') {\n      bVar5 = false;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      bVar5 = false;\n    }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) })) })) (return_statement "return bVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* 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 __regparm3\ninternal_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  MHD_ConnectionEventLoopInfo MVar2;\n  MHD_UpgradeResponseHandle *urh;\n  _Bool _Var3;\n  int iVar4;\n  MHD_Connection *pMVar5;\n  uint uVar6;\n  fd_set *set;\n  \n  uVar6 = 1;\n  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    iVar4 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n    uVar6 = (uint)(iVar4 != 0);\n  }\n  pMVar1 = daemon->connections_tail;\n  while (pMVar5 = pMVar1, pMVar1 != (MHD_Connection *)0x0) {\n    while( true ) {\n      MVar2 = pMVar5->event_loop_info;\n      pMVar1 = pMVar5->prev;\n      set = write_fd_set;\n      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;\n      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);\n      if (iVar4 == 0) {\n        uVar6 = 0;\n      }\n      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);\n      pMVar5 = pMVar1;\n      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;\n    }\n    if ((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )) {\n      uVar6 = 0;\n    }\n  }\nLAB_0001a347:\n  urh = daemon->urh_tail;\n  while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n    _Var3 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n    urh = urh->prev;\n    if (!_Var3) {\n      uVar6 = 0;\n    }\n  }\n  return uVar6;\n}\n\n" comment comment comment comment (function_definition "int __regparm3\ninternal_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  MHD_ConnectionEventLoopInfo MVar2;\n  MHD_UpgradeResponseHandle *urh;\n  _Bool _Var3;\n  int iVar4;\n  MHD_Connection *pMVar5;\n  uint uVar6;\n  fd_set *set;\n  \n  uVar6 = 1;\n  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    iVar4 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n    uVar6 = (uint)(iVar4 != 0);\n  }\n  pMVar1 = daemon->connections_tail;\n  while (pMVar5 = pMVar1, pMVar1 != (MHD_Connection *)0x0) {\n    while( true ) {\n      MVar2 = pMVar5->event_loop_info;\n      pMVar1 = pMVar5->prev;\n      set = write_fd_set;\n      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;\n      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);\n      if (iVar4 == 0) {\n        uVar6 = 0;\n      }\n      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);\n      pMVar5 = pMVar1;\n      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;\n    }\n    if ((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )) {\n      uVar6 = 0;\n    }\n  }\nLAB_0001a347:\n  urh = daemon->urh_tail;\n  while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n    _Var3 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n    urh = urh->prev;\n    if (!_Var3) {\n      uVar6 = 0;\n    }\n  }\n  return uVar6;\n}" primitive_type (ERROR "__regparm3" identifier) (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  MHD_ConnectionEventLoopInfo MVar2;\n  MHD_UpgradeResponseHandle *urh;\n  _Bool _Var3;\n  int iVar4;\n  MHD_Connection *pMVar5;\n  uint uVar6;\n  fd_set *set;\n  \n  uVar6 = 1;\n  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    iVar4 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n    uVar6 = (uint)(iVar4 != 0);\n  }\n  pMVar1 = daemon->connections_tail;\n  while (pMVar5 = pMVar1, pMVar1 != (MHD_Connection *)0x0) {\n    while( true ) {\n      MVar2 = pMVar5->event_loop_info;\n      pMVar1 = pMVar5->prev;\n      set = write_fd_set;\n      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;\n      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);\n      if (iVar4 == 0) {\n        uVar6 = 0;\n      }\n      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);\n      pMVar5 = pMVar1;\n      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;\n    }\n    if ((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )) {\n      uVar6 = 0;\n    }\n  }\nLAB_0001a347:\n  urh = daemon->urh_tail;\n  while (urh != (MHD_UpgradeResponseHandle *)0x0) {\n    _Var3 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n    urh = urh->prev;\n    if (!_Var3) {\n      uVar6 = 0;\n    }\n  }\n  return uVar6;\n}" { (declaration "MHD_Connection *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "MHD_ConnectionEventLoopInfo MVar2;" type_identifier identifier ;) (declaration "MHD_UpgradeResponseHandle *urh;" type_identifier (pointer_declarator "*urh" * identifier) ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "MHD_Connection *pMVar5;" type_identifier (pointer_declarator "*pMVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "fd_set *set;" type_identifier (pointer_declarator "*set" * identifier) ;) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (if_statement "if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    iVar4 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n    uVar6 = (uint)(iVar4 != 0);\n  }" if (parenthesized_expression "((daemon->listen_fd != -1) && (daemon->was_quiesced == false))" ( (binary_expression "(daemon->listen_fd != -1) && (daemon->was_quiesced == false)" (parenthesized_expression "(daemon->listen_fd != -1)" ( (binary_expression "daemon->listen_fd != -1" (field_expression "daemon->listen_fd" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(daemon->was_quiesced == false)" ( (binary_expression "daemon->was_quiesced == false" (field_expression "daemon->was_quiesced" identifier -> field_identifier) == false) ))) )) (compound_statement "{\n    iVar4 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);\n    uVar6 = (uint)(iVar4 != 0);\n  }" { (expression_statement "iVar4 = MHD_add_to_fd_set_(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);" (assignment_expression "iVar4 = 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 "uVar6 = (uint)(iVar4 != 0);" (assignment_expression "uVar6 = (uint)(iVar4 != 0)" identifier = (call_expression "(uint)(iVar4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )))) ;) })) (expression_statement "pMVar1 = daemon->connections_tail;" (assignment_expression "pMVar1 = daemon->connections_tail" identifier = (field_expression "daemon->connections_tail" identifier -> field_identifier)) ;) (while_statement "while (pMVar5 = pMVar1, pMVar1 != (MHD_Connection *)0x0) {\n    while( true ) {\n      MVar2 = pMVar5->event_loop_info;\n      pMVar1 = pMVar5->prev;\n      set = write_fd_set;\n      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;\n      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);\n      if (iVar4 == 0) {\n        uVar6 = 0;\n      }\n      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);\n      pMVar5 = pMVar1;\n      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;\n    }\n    if ((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )) {\n      uVar6 = 0;\n    }\n  }" while (parenthesized_expression "(pMVar5 = pMVar1, pMVar1 != (MHD_Connection *)0x0)" ( (comma_expression "pMVar5 = pMVar1, pMVar1 != (MHD_Connection *)0x0" (assignment_expression "pMVar5 = pMVar1" 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    while( true ) {\n      MVar2 = pMVar5->event_loop_info;\n      pMVar1 = pMVar5->prev;\n      set = write_fd_set;\n      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;\n      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);\n      if (iVar4 == 0) {\n        uVar6 = 0;\n      }\n      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);\n      pMVar5 = pMVar1;\n      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;\n    }\n    if ((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )) {\n      uVar6 = 0;\n    }\n  }" { (while_statement "while( true ) {\n      MVar2 = pMVar5->event_loop_info;\n      pMVar1 = pMVar5->prev;\n      set = write_fd_set;\n      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;\n      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);\n      if (iVar4 == 0) {\n        uVar6 = 0;\n      }\n      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);\n      pMVar5 = pMVar1;\n      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      MVar2 = pMVar5->event_loop_info;\n      pMVar1 = pMVar5->prev;\n      set = write_fd_set;\n      if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;\n      iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);\n      if (iVar4 == 0) {\n        uVar6 = 0;\n      }\n      MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);\n      pMVar5 = pMVar1;\n      if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;\n    }" { (expression_statement "MVar2 = pMVar5->event_loop_info;" (assignment_expression "MVar2 = pMVar5->event_loop_info" identifier = (field_expression "pMVar5->event_loop_info" identifier -> field_identifier)) ;) (expression_statement "pMVar1 = pMVar5->prev;" (assignment_expression "pMVar1 = pMVar5->prev" identifier = (field_expression "pMVar5->prev" identifier -> field_identifier)) ;) (expression_statement "set = write_fd_set;" (assignment_expression "set = write_fd_set" identifier = identifier) ;) (if_statement "if ((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)) break;" if (parenthesized_expression "((MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ))" ( (binary_expression "(MVar2 != MHD_EVENT_LOOP_INFO_WRITE) &&\n         (set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)" (parenthesized_expression "(MVar2 != MHD_EVENT_LOOP_INFO_WRITE)" ( (binary_expression "MVar2 != MHD_EVENT_LOOP_INFO_WRITE" identifier != identifier) )) && (parenthesized_expression "(set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ)" ( (comma_expression "set = read_fd_set, MVar2 != MHD_EVENT_LOOP_INFO_READ" (assignment_expression "set = read_fd_set" identifier = identifier) , (binary_expression "MVar2 != MHD_EVENT_LOOP_INFO_READ" identifier != identifier)) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize);" (assignment_expression "iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize)" identifier = (call_expression "MHD_add_to_fd_set_(pMVar5->socket_fd,set,max_fd,fd_setsize)" identifier (argument_list "(pMVar5->socket_fd,set,max_fd,fd_setsize)" ( (field_expression "pMVar5->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        uVar6 = 0;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) (expression_statement "MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize);" (call_expression "MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize)" identifier (argument_list "(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize)" ( (field_expression "pMVar5->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier ))) ;) (expression_statement "pMVar5 = pMVar1;" (assignment_expression "pMVar5 = pMVar1" identifier = identifier) ;) (if_statement "if (pMVar1 == (MHD_Connection *)0x0) goto LAB_0001a347;" if (parenthesized_expression "(pMVar1 == (MHD_Connection *)0x0)" ( (binary_expression "pMVar1 == (MHD_Connection *)0x0" identifier == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001a347;" goto statement_identifier ;)) })) (if_statement "if ((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )) {\n      uVar6 = 0;\n    }" if (parenthesized_expression "((MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       ))" ( (binary_expression "(MVar2 == MHD_EVENT_LOOP_INFO_BLOCK) &&\n       ((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )" (parenthesized_expression "(MVar2 == MHD_EVENT_LOOP_INFO_BLOCK)" ( (binary_expression "MVar2 == MHD_EVENT_LOOP_INFO_BLOCK" identifier == identifier) )) && (parenthesized_expression "((except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))\n       )" ( (parenthesized_expression "(except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0))" ( (binary_expression "except_fd_set == (fd_set *)0x0 ||\n        (iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0)" (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)) || (parenthesized_expression "(iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0)" ( (comma_expression "iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize), iVar4 == 0" (assignment_expression "iVar4 = MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize)" identifier = (call_expression "MHD_add_to_fd_set_(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize)" identifier (argument_list "(pMVar5->socket_fd,except_fd_set,max_fd,fd_setsize)" ( (field_expression "pMVar5->socket_fd" identifier -> field_identifier) , identifier , identifier , identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n      uVar6 = 0;\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) })) (labeled_statement "LAB_0001a347:\n  urh = daemon->urh_tail;" statement_identifier : (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    _Var3 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n    urh = urh->prev;\n    if (!_Var3) {\n      uVar6 = 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    _Var3 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);\n    urh = urh->prev;\n    if (!_Var3) {\n      uVar6 = 0;\n    }\n  }" { (expression_statement "_Var3 = urh_to_fdset(urh,read_fd_set,write_fd_set,except_fd_set,max_fd,fd_setsize);" (assignment_expression "_Var3 = 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 (!_Var3) {\n      uVar6 = 0;\n    }" if (parenthesized_expression "(!_Var3)" ( (unary_expression "!_Var3" ! identifier) )) (compound_statement "{\n      uVar6 = 0;\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) })) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit "bool __regparm3\nFUN_0001a2a0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}\n\n" (function_definition "bool __regparm3\nFUN_0001a2a0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a2a0(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  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;) (if_statement "if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')" (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) )) && (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_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }" { (expression_statement "iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);" (assignment_expression "iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" identifier = (call_expression "FUN_000219a0(*(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 "bVar5 = iVar4 != 0;" (assignment_expression "bVar5 = iVar4 != 0" identifier = (binary_expression "iVar4 != 0" identifier != number_literal)) ;) })) (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, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }" while (parenthesized_expression "(iVar2 = iVar4, iVar4 != 0)" ( (comma_expression "iVar2 = iVar4, iVar4 != 0" (assignment_expression "iVar2 = iVar4" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }" { (while_statement "while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }" { (expression_statement "iVar3 = *(int *)(iVar2 + 0xb8);" (assignment_expression "iVar3 = *(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) ))))) ;) (expression_statement "uVar6 = param_3;" (assignment_expression "uVar6 = param_3" identifier = identifier) ;) (if_statement "if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;" if (parenthesized_expression "((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0))" ( (binary_expression "(iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)" (parenthesized_expression "(iVar3 != 1)" ( (binary_expression "iVar3 != 1" identifier != number_literal) )) && (parenthesized_expression "(uVar6 = param_2, iVar3 != 0)" ( (comma_expression "uVar6 = param_2, iVar3 != 0" (assignment_expression "uVar6 = param_2" identifier = identifier) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);" (assignment_expression "iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6)" identifier = (call_expression "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6)" identifier (argument_list "(*(undefined4 *)(iVar2 + 0xa4),uVar6,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 (iVar3 == 0) {\n        bVar5 = false;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        bVar5 = false;\n      }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) })) (expression_statement "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000219a0(*(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 ))) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 == 0) goto LAB_0001a347;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a347;" goto statement_identifier ;)) })) (if_statement "if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }" if (parenthesized_expression "((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))" ( (binary_expression "(iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)))" (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) && (parenthesized_expression "((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)))" ( (parenthesized_expression "(param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))" ( (binary_expression "param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)" (binary_expression "param_4 == 0" identifier == number_literal) || (parenthesized_expression "(iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0" (assignment_expression "iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" identifier = (call_expression "FUN_000219a0(*(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 )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n      bVar5 = false;\n    }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) })) })) (labeled_statement "LAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);" statement_identifier : (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    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }" while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }" { (expression_statement "cVar1 = FUN_00018b40(param_4,param_5,param_6);" (assignment_expression "cVar1 = FUN_00018b40(param_4,param_5,param_6)" identifier = (call_expression "FUN_00018b40(param_4,param_5,param_6)" identifier (argument_list "(param_4,param_5,param_6)" ( 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 (cVar1 == '\0') {\n      bVar5 = false;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      bVar5 = false;\n    }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) })) })) (return_statement "return bVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (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)) ;) })) (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 { (while_statement while (parenthesized_expression ( BOOL )) (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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)) ))) )) (break_statement break ;)) (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 ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (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 )))) , (binary_expression IDENT == LIT)) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) })) (labeled_statement statement_identifier : (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 )))) ;) (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 == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "bool __regparm3\nFUN_0001a2a0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001a2a0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" (identifier "FUN_0001a2a0") (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  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  bool bVar5;\n  undefined4 uVar6;\n  \n  bVar5 = true;\n  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }\n  iVar4 = *(int *)(param_1 + 0xc);\n  while (iVar2 = iVar4, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }\nLAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);\n  while (iVar4 != 0) {\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }\n  return bVar5;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" (identifier "bVar5") (= "=") (true "true")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {\n    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0'))" (( "(") (binary_expression "(*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')" (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")) () ")")) (&& "&&") (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_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);\n    bVar5 = iVar4 != 0;\n  }" ({ "{") (expression_statement "iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);" (assignment_expression "iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" (identifier "iVar4") (= "=") (call_expression "FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6)" (identifier "FUN_000219a0") (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 "bVar5 = iVar4 != 0;" (assignment_expression "bVar5 = iVar4 != 0" (identifier "bVar5") (= "=") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) (; ";")) (} "}"))) (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, iVar4 != 0) {\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }" (while "while") (parenthesized_expression "(iVar2 = iVar4, iVar4 != 0)" (( "(") (comma_expression "iVar2 = iVar4, iVar4 != 0" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }\n    if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar3 = *(int *)(iVar2 + 0xb8);\n      iVar4 = *(int *)(iVar2 + 0xc);\n      uVar6 = param_3;\n      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;\n      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);\n      if (iVar3 == 0) {\n        bVar5 = false;\n      }\n      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_0001a347;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar2 + 0xb8);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0xb8)" (identifier "iVar3") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar6 = param_3;" (assignment_expression "uVar6 = param_3" (identifier "uVar6") (= "=") (identifier "param_3")) (; ";")) (if_statement "if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;" (if "if") (parenthesized_expression "((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0))" (( "(") (binary_expression "(iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)" (parenthesized_expression "(iVar3 != 1)" (( "(") (binary_expression "iVar3 != 1" (identifier "iVar3") (!= "!=") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(uVar6 = param_2, iVar3 != 0)" (( "(") (comma_expression "uVar6 = param_2, iVar3 != 0" (assignment_expression "uVar6 = param_2" (identifier "uVar6") (= "=") (identifier "param_2")) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);" (assignment_expression "iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6)" (identifier "iVar3") (= "=") (call_expression "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6)" (identifier "FUN_000219a0") (argument_list "(*(undefined4 *)(iVar2 + 0xa4),uVar6,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 "uVar6") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        bVar5 = false;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        bVar5 = false;\n      }" ({ "{") (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (} "}"))) (expression_statement "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);" (call_expression "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (identifier "FUN_000219a0") (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") () ")"))) (; ";")) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_0001a347;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001a347;" (goto "goto") (statement_identifier "LAB_0001a347") (; ";"))) (} "}"))) (if_statement "if ((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))\n    {\n      bVar5 = false;\n    }" (if "if") (parenthesized_expression "((iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))" (( "(") (binary_expression "(iVar3 == 2) &&\n       ((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)))" (parenthesized_expression "(iVar3 == 2)" (( "(") (binary_expression "iVar3 == 2" (identifier "iVar3") (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "((param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)))" (( "(") (parenthesized_expression "(param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))" (( "(") (binary_expression "param_4 == 0 ||\n        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)" (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0" (assignment_expression "iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (identifier "iVar2") (= "=") (call_expression "FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6)" (identifier "FUN_000219a0") (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") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      bVar5 = false;\n    }" ({ "{") (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0001a347:\n  iVar4 = *(int *)(param_1 + 0x108);" (statement_identifier "LAB_0001a347") (: ":") (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    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }" (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    cVar1 = FUN_00018b40(param_4,param_5,param_6);\n    iVar4 = *(int *)(iVar4 + 8);\n    if (cVar1 == '\0') {\n      bVar5 = false;\n    }\n  }" ({ "{") (expression_statement "cVar1 = FUN_00018b40(param_4,param_5,param_6);" (assignment_expression "cVar1 = FUN_00018b40(param_4,param_5,param_6)" (identifier "cVar1") (= "=") (call_expression "FUN_00018b40(param_4,param_5,param_6)" (identifier "FUN_00018b40") (argument_list "(param_4,param_5,param_6)" (( "(") (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 (cVar1 == '\0') {\n      bVar5 = false;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      bVar5 = false;\n    }" ({ "{") (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (} "}"))) (} "}"))) (return_statement "return bVar5;" (return "return") (identifier "bVar5") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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 __regparm3
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 var_4;
  type_7 *var_9;
  type_8 _Var3;
  int var_2;
  type_5 *pMVar5;
  type_4 uVar6;
  type_2 *set;
  
  uVar6 = 1;
  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {
    var_2 = var_1(daemon->listen_fd,read_fd_set,max_fd,fd_setsize);
    uVar6 = (type_4)(var_2 != 0);
  }
  var_3 = daemon->connections_tail;
  while (pMVar5 = var_3, var_3 != (type_5 *)0x0) {
    while( true ) {
      var_4 = pMVar5->event_loop_info;
      var_3 = pMVar5->prev;
      set = write_fd_set;
      if ((var_4 != var_5) &&
         (set = read_fd_set, var_4 != var_6)) break;
      var_2 = var_1(pMVar5->socket_fd,set,max_fd,fd_setsize);
      if (var_2 == 0) {
        uVar6 = 0;
      }
      var_1(pMVar5->socket_fd,var_8,max_fd,fd_setsize);
      pMVar5 = var_3;
      if (var_3 == (type_5 *)0x0) goto LAB_0001a347;
    }
    if ((var_4 == var_7) &&
       ((var_8 == (type_2 *)0x0 ||
        (var_2 = var_1(pMVar5->socket_fd,var_8,max_fd,fd_setsize), var_2 == 0))
       )) {
      uVar6 = 0;
    }
  }
LAB_0001a347:
  var_9 = daemon->urh_tail;
  while (var_9 != (type_7 *)0x0) {
    _Var3 = var_10(var_9,read_fd_set,write_fd_set,var_8,max_fd,fd_setsize);
    var_9 = var_9->prev;
    if (!_Var3) {
      uVar6 = 0;
    }
  }
  return uVar6;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))) right: (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)))))) (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 (while_statement condition: (parenthesized_expression (true)) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (break_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)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (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)))) right: (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))))))) (labeled_statement label: (statement_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)))))))) (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))))) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  bool bVar5;
  undefined4 uVar6;
  
  bVar5 = true;
  if ((*(int *)(param_1 + 0xc4) != -1) && (*(char *)(param_1 + 0xe1) == '\0')) {
    iVar4 = FUN_000219a0(*(int *)(param_1 + 0xc4),param_2,param_5,param_6);
    bVar5 = iVar4 != 0;
  }
  iVar4 = *(int *)(param_1 + 0xc);
  while (iVar2 = iVar4, iVar4 != 0) {
    while( true ) {
      iVar3 = *(int *)(iVar2 + 0xb8);
      iVar4 = *(int *)(iVar2 + 0xc);
      uVar6 = param_3;
      if ((iVar3 != 1) && (uVar6 = param_2, iVar3 != 0)) break;
      iVar3 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),uVar6,param_5,param_6);
      if (iVar3 == 0) {
        bVar5 = false;
      }
      FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6);
      iVar2 = iVar4;
      if (iVar4 == 0) goto LAB_0001a347;
    }
    if ((iVar3 == 2) &&
       ((param_4 == 0 ||
        (iVar2 = FUN_000219a0(*(undefined4 *)(iVar2 + 0xa4),param_4,param_5,param_6), iVar2 == 0))))
    {
      bVar5 = false;
    }
  }
LAB_0001a347:
  iVar4 = *(int *)(param_1 + 0x108);
  while (iVar4 != 0) {
    cVar1 = FUN_00018b40(param_4,param_5,param_6);
    iVar4 = *(int *)(iVar4 + 8);
    if (cVar1 == '\0') {
      bVar5 = false;
    }
  }
  return bVar5;
}

