
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* 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 */

void MHD_update_last_activity_(MHD_Connection *connection)

{
  MHD_Daemon *pMVar1;
  _Bool _Var2;
  time_t tVar3;
  int iVar4;
  uint uVar5;
  ssize_t sVar6;
  MHD_Connection *extraout_EDX;
  MHD_Connection *pMVar7;
  uint uVar8;
  undefined1 *puVar9;
  undefined1 *puVar10;
  undefined4 uStack_30;
  char *connection_00;
  undefined1 auStack_1c [8];
  undefined4 uStack_14;
  
  uStack_14 = 0x156e9;
  puVar10 = auStack_1c;
  if ((connection->connection_timeout != 0) && (connection->suspended == false)) {
    pMVar1 = connection->daemon;
    tVar3 = MHD_monotonic_sec_counter();
    connection->last_activity = tVar3;
    if (((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&
       (connection->connection_timeout == pMVar1->connection_timeout)) {
      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);
      if (iVar4 != 0) {
        connection_00 = "connection.c";
        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");
        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&
            (((MHD_Connection *)connection_00)->suspended == false)) &&
           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||
            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {
          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;
          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;
          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {
            try_grow_read_buffer((MHD_Connection *)connection_00);
            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;
            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;
          }
          if (uVar5 != uVar8) {
            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)
                              ((MHD_Connection *)connection_00,
                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)
            ;
            if (sVar6 < 0) {
              if (sVar6 != -0xc01) {
                if (sVar6 == -0xc02) {
                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {
                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,
                             "Socket disconnected while reading request.\n");
                  }
                }
                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {
                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,
                           "Connection socket is closed due to error when reading request.\n");
                }
                MHD_connection_close_
                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);
                return;
              }
            }
            else if (sVar6 == 0) {
              ((MHD_Connection *)connection_00)->read_closed = true;
              MHD_connection_close_
                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);
            }
            else {
              ((MHD_Connection *)connection_00)->read_buffer_offset =
                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;
              MHD_update_last_activity_((MHD_Connection *)connection_00);
              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {
                if (((MHD_Connection *)connection_00)->read_closed != false) {
                  MHD_connection_close_
                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);
                }
              }
              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {
                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,
                                    ((MHD_Connection *)connection_00)->read_buffer,
                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,
                                    ((MHD_Connection *)connection_00)->read_buffer_offset);
              }
            }
          }
        }
        return;
      }
      pMVar7 = connection->nextX;
      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;
      connection->prevX->nextX = pMVar7;
      puVar9 = auStack_1c;
      while( true ) {
        if (connection->nextX == (MHD_Connection *)0x0) {
          pMVar1->normal_timeout_tail = connection->prevX;
        }
        else {
          connection->nextX->prevX = connection->prevX;
        }
        connection->nextX = (MHD_Connection *)0x0;
        connection->prevX = (MHD_Connection *)0x0;
        pMVar7 = pMVar1->normal_timeout_head;
        connection->nextX = pMVar7;
        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {
          pMVar1->normal_timeout_tail = connection;
        }
        else {
          pMVar7->prevX = connection;
        }
        pMVar1->normal_timeout_head = connection;
        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;
        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;
        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));
        if (iVar4 == 0) break;
        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";
        *(undefined4 *)(puVar9 + -8) = 0xb47;
        *(char **)(puVar9 + -0xc) = "connection.c";
        puVar10 = puVar9 + -0x10;
        *(void **)(puVar9 + -0x10) = mhd_panic_cls;
        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;
        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),
                     *(char **)(puVar9 + -4));
        pMVar7 = extraout_EDX;
LAB_000157d0:
        pMVar1->normal_timeout_head = pMVar7;
        puVar9 = puVar10;
      }
    }
  }
  return;
}



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

void FUN_000156e0(int param_1)

{
  char cVar1;
  undefined4 uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  undefined4 extraout_EDX;
  uint uVar6;
  undefined **ppuVar7;
  undefined1 *puVar8;
  undefined1 *puVar9;
  char *pcVar10;
  undefined1 auStack_1c [8];
  undefined4 uStack_14;
  
  uStack_14 = 0x156e9;
  ppuVar7 = &__DT_PLTGOT;
  puVar9 = auStack_1c;
  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {
    iVar5 = *(int *)(param_1 + 0x18);
    uVar2 = FUN_00021230();
    *(undefined4 *)(param_1 + 0x94) = uVar2;
    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))
       ) {
      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));
      if (iVar3 != 0) {
        pcVar10 = "connection.c";
        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");
        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&
           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))
        {
          uVar4 = *(uint *)(pcVar10 + 100);
          uVar6 = *(uint *)(pcVar10 + 0x60);
          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {
            FUN_00013950(ppuVar7,param_1,iVar5);
            uVar6 = *(uint *)(pcVar10 + 0x60);
            uVar4 = *(uint *)(pcVar10 + 100);
          }
          if (uVar4 != uVar6) {
            iVar5 = (**(code **)(pcVar10 + 0xd4))
                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);
            if (iVar5 < 0) {
              if (iVar5 != -0xc01) {
                if (iVar5 == -0xc02) {
                  if (*(int *)(pcVar10 + 0xb4) != 0) {
                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),
                                 "Socket disconnected while reading request.\n");
                  }
                }
                else if (*(int *)(pcVar10 + 0xb4) != 0) {
                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),
                               "Connection socket is closed due to error when reading request.\n");
                }
                FUN_00015170(pcVar10,1);
                return;
              }
            }
            else if (iVar5 == 0) {
              pcVar10[0xa9] = '\x01';
              FUN_00015170(pcVar10,5);
            }
            else {
              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;
              FUN_000156e0(pcVar10);
              if (*(uint *)(pcVar10 + 0xb4) < 9) {
                if (pcVar10[0xa9] != '\0') {
                  FUN_00015170(pcVar10,4);
                }
              }
              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {
                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),
                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));
              }
            }
          }
        }
        return;
      }
      uVar2 = *(undefined4 *)(param_1 + 0x10);
      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;
      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;
      puVar8 = auStack_1c;
      while( true ) {
        if (*(int *)(param_1 + 0x10) == 0) {
          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);
        }
        else {
          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);
        }
        *(undefined4 *)(param_1 + 0x10) = 0;
        *(undefined4 *)(param_1 + 0x14) = 0;
        iVar3 = *(int *)(iVar5 + 0x30);
        *(int *)(param_1 + 0x10) = iVar3;
        if (*(int *)(iVar5 + 0x34) == 0) {
          *(int *)(iVar5 + 0x34) = param_1;
        }
        else {
          *(int *)(iVar3 + 0x14) = param_1;
        }
        *(int *)(iVar5 + 0x30) = param_1;
        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);
        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;
        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));
        if (iVar3 == 0) break;
        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";
        *(undefined4 *)(puVar8 + -8) = 0xb47;
        *(char **)(puVar8 + -0xc) = "connection.c";
        puVar9 = puVar8 + -0x10;
        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;
        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;
        (*DAT_0003406c)();
        uVar2 = extraout_EDX;
LAB_000157d0:
        *(undefined4 *)(iVar5 + 0x30) = uVar2;
        puVar8 = puVar9;
      }
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013810
ADD EBX,0x1e6f7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESI + 0x98]
TEST ECX,ECX
JZ 0x00015709
CMP byte ptr [ESI + 0xf1],0x0
JZ 0x00015718
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESI + 0x18]
CALL 0x00021230
MOV dword ptr [ESI + 0x94],EAX
TEST byte ptr [EDI + 0xf8],0x4
JNZ 0x00015709
MOV EAX,dword ptr [EDI + 0xf0]
CMP dword ptr [ESI + 0x98],EAX
JNZ 0x00015709
SUB ESP,0xc
LEA EBP,[EDI + 0xac]
PUSH EBP
CALL 0x00013250
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000157e5
MOV EAX,dword ptr [ESI + 0x14]
MOV EDX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x000157d0
MOV dword ptr [EAX + 0x10],EDX
MOV EAX,dword ptr [ESI + 0x10]
MOV EDX,dword ptr [ESI + 0x14]
TEST EAX,EAX
JZ 0x000157e0
MOV dword ptr [EAX + 0x14],EDX
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x14],0x0
MOV EAX,dword ptr [EDI + 0x30]
MOV dword ptr [ESI + 0x10],EAX
MOV EDX,dword ptr [EDI + 0x34]
TEST EDX,EDX
JZ 0x000157d8
MOV dword ptr [EAX + 0x14],ESI
SUB ESP,0xc
MOV dword ptr [EDI + 0x30],ESI
PUSH EBP
CALL 0x00013060
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00015709
LEA EAX,[EBX + 0xffff5244]
PUSH EAX
LEA EAX,[EBX + 0xffff5237]
PUSH 0xb47
PUSH EAX
LEA EAX,[EBX + 0x288]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0x28c]
CALL dword ptr [EAX]
LEA ESI,[ESI]
MOV dword ptr [EDI + 0x30],EDX
JMP 0x00015764
MOV dword ptr [EDI + 0x34],ESI
JMP 0x0001578f
MOV dword ptr [EDI + 0x34],EDX
JMP 0x00015771
LEA EAX,[EBX + 0xffff5220]
PUSH EAX
LEA EAX,[EBX + 0xffff5237]
PUSH 0xb3d
PUSH EAX
LEA EAX,[EBX + 0x288]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0x28c]
CALL dword ptr [EAX]
LEA ESI,[ESI]
NOP
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000156e0(int param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000156e0(int param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000156e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined **ppuVar7;" type_identifier (pointer_declarator "**ppuVar7" * (pointer_declarator "*ppuVar7" * identifier)) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined1 auStack_1c [8];" type_identifier (array_declarator "auStack_1c [8]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" identifier = number_literal) ;) (expression_statement "ppuVar7 = &__DT_PLTGOT;" (assignment_expression "ppuVar7 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "puVar9 = auStack_1c;" (assignment_expression "puVar9 = auStack_1c" identifier = identifier) ;) (if_statement "if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0x98) != 0)" ( (binary_expression "*(int *)(param_1 + 0x98) != 0" (pointer_expression "*(int *)(param_1 + 0x98)" * (cast_expression "(int *)(param_1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(char *)(param_1 + 0xf1) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xf1) == '\0'" (pointer_expression "*(char *)(param_1 + 0xf1)" * (cast_expression "(char *)(param_1 + 0xf1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf1)" ( (binary_expression "param_1 + 0xf1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00021230();" (assignment_expression "uVar2 = FUN_00021230()" identifier = (call_expression "FUN_00021230()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x94) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x94) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x94)" * (cast_expression "(undefined4 *)(param_1 + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x94)" ( (binary_expression "param_1 + 0x94" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }" if (parenthesized_expression "(((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       )" ( (binary_expression "((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))" (parenthesized_expression "((*(byte *)(iVar5 + 0xf8) & 4) == 0)" ( (binary_expression "(*(byte *)(iVar5 + 0xf8) & 4) == 0" (parenthesized_expression "(*(byte *)(iVar5 + 0xf8) & 4)" ( (binary_expression "*(byte *)(iVar5 + 0xf8) & 4" (pointer_expression "*(byte *)(iVar5 + 0xf8)" * (cast_expression "(byte *)(iVar5 + 0xf8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xf8)" ( (binary_expression "iVar5 + 0xf8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))" ( (binary_expression "*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0)" (pointer_expression "*(int *)(param_1 + 0x98)" * (cast_expression "(int *)(param_1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) == (pointer_expression "*(int *)(iVar5 + 0xf0)" * (cast_expression "(int *)(iVar5 + 0xf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xf0)" ( (binary_expression "iVar5 + 0xf0" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }" { (expression_statement "iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));" (assignment_expression "iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac))" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac))" identifier (argument_list "((pthread_mutex_t *)(iVar5 + 0xac))" ( (cast_expression "(pthread_mutex_t *)(iVar5 + 0xac)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }" { (expression_statement "pcVar10 = "connection.c";" (assignment_expression "pcVar10 = "connection.c"" identifier = (string_literal ""connection.c"" " string_content ")) ;) (expression_statement "(*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");" (call_expression "(*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n")" (parenthesized_expression "(*DAT_0003406c)" ( (pointer_expression "*DAT_0003406c" * identifier) )) (argument_list "(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n")" ( identifier , (string_literal ""connection.c"" " string_content ") , number_literal , (string_literal ""Failed to lock mutex.\n"" " string_content escape_sequence ") ))) ;) (if_statement "if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }" if (parenthesized_expression "(((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))" ( (binary_expression "((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')))" (parenthesized_expression "((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0'))" ( (binary_expression "(*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')" (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0x13)" ( (binary_expression "*(int *)(pcVar10 + 0xb4) != 0x13" (pointer_expression "*(int *)(pcVar10 + 0xb4)" * (cast_expression "(int *)(pcVar10 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(pcVar10[0xf1] == '\0')" ( (binary_expression "pcVar10[0xf1] == '\0'" (subscript_expression "pcVar10[0xf1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')))" ( (parenthesized_expression "(1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))" ( (binary_expression "1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')" (binary_expression "1 < *(int *)(pcVar10 + 0xec) - 1U" number_literal < (binary_expression "*(int *)(pcVar10 + 0xec) - 1U" (pointer_expression "*(int *)(pcVar10 + 0xec)" * (cast_expression "(int *)(pcVar10 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xec)" ( (binary_expression "pcVar10 + 0xec" identifier + number_literal) )))) - number_literal)) || (parenthesized_expression "(cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')" ( (comma_expression "cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'" (assignment_expression "cVar1 = FUN_00028180(pcVar10)" identifier = (call_expression "FUN_00028180(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }" { (expression_statement "uVar4 = *(uint *)(pcVar10 + 100);" (assignment_expression "uVar4 = *(uint *)(pcVar10 + 100)" identifier = (pointer_expression "*(uint *)(pcVar10 + 100)" * (cast_expression "(uint *)(pcVar10 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(uint *)(pcVar10 + 0x60);" (assignment_expression "uVar6 = *(uint *)(pcVar10 + 0x60)" identifier = (pointer_expression "*(uint *)(pcVar10 + 0x60)" * (cast_expression "(uint *)(pcVar10 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x60)" ( (binary_expression "pcVar10 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }" if (parenthesized_expression "(uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4)" ( (binary_expression "uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4" identifier < (binary_expression "*(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4" (pointer_expression "*(int *)(*(int *)(pcVar10 + 0x18) + 0x80)" * (cast_expression "(int *)(*(int *)(pcVar10 + 0x18) + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar10 + 0x18) + 0x80)" ( (binary_expression "*(int *)(pcVar10 + 0x18) + 0x80" (pointer_expression "*(int *)(pcVar10 + 0x18)" * (cast_expression "(int *)(pcVar10 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x18)" ( (binary_expression "pcVar10 + 0x18" identifier + number_literal) )))) + number_literal) )))) + identifier)) )) (compound_statement "{\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }" { (expression_statement "FUN_00013950(ppuVar7,param_1,iVar5);" (call_expression "FUN_00013950(ppuVar7,param_1,iVar5)" identifier (argument_list "(ppuVar7,param_1,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar6 = *(uint *)(pcVar10 + 0x60);" (assignment_expression "uVar6 = *(uint *)(pcVar10 + 0x60)" identifier = (pointer_expression "*(uint *)(pcVar10 + 0x60)" * (cast_expression "(uint *)(pcVar10 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x60)" ( (binary_expression "pcVar10 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(pcVar10 + 100);" (assignment_expression "uVar4 = *(uint *)(pcVar10 + 100)" identifier = (pointer_expression "*(uint *)(pcVar10 + 100)" * (cast_expression "(uint *)(pcVar10 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) ))))) ;) })) (if_statement "if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }" if (parenthesized_expression "(uVar4 != uVar6)" ( (binary_expression "uVar4 != uVar6" identifier != identifier) )) (compound_statement "{\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }" { (expression_statement "iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);" (assignment_expression "iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" identifier = (call_expression "(**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" (parenthesized_expression "(**(code **)(pcVar10 + 0xd4))" ( (pointer_expression "**(code **)(pcVar10 + 0xd4)" * (pointer_expression "*(code **)(pcVar10 + 0xd4)" * (cast_expression "(code **)(pcVar10 + 0xd4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0xd4)" ( (binary_expression "pcVar10 + 0xd4" identifier + number_literal) ))))) )) (argument_list "(pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" ( identifier , (binary_expression "uVar4 + *(int *)(pcVar10 + 0x44)" identifier + (pointer_expression "*(int *)(pcVar10 + 0x44)" * (cast_expression "(int *)(pcVar10 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x44)" ( (binary_expression "pcVar10 + 0x44" identifier + number_literal) ))))) , (binary_expression "uVar6 - uVar4" identifier - identifier) )))) ;) (if_statement "if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }" { (if_statement "if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }" if (parenthesized_expression "(iVar5 != -0xc01)" ( (binary_expression "iVar5 != -0xc01" identifier != number_literal) )) (compound_statement "{\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }" { (if_statement "if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" if (parenthesized_expression "(iVar5 == -0xc02)" ( (binary_expression "iVar5 == -0xc02" identifier == number_literal) )) (compound_statement "{\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }" { (if_statement "if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }" if (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0)" ( (binary_expression "*(int *)(pcVar10 + 0xb4) != 0" (pointer_expression "*(int *)(pcVar10 + 0xb4)" * (cast_expression "(int *)(pcVar10 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }" { (expression_statement "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n")" identifier (argument_list "(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n")" ( (pointer_expression "*(undefined4 *)(pcVar10 + 0x18)" * (cast_expression "(undefined4 *)(pcVar10 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x18)" ( (binary_expression "pcVar10 + 0x18" identifier + number_literal) )))) , (string_literal ""Socket disconnected while reading request.\n"" " string_content escape_sequence ") ))) ;) })) }) (else_clause "else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" else (if_statement "if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" if (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0)" ( (binary_expression "*(int *)(pcVar10 + 0xb4) != 0" (pointer_expression "*(int *)(pcVar10 + 0xb4)" * (cast_expression "(int *)(pcVar10 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" { (expression_statement "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n")" identifier (argument_list "(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n")" ( (pointer_expression "*(undefined4 *)(pcVar10 + 0x18)" * (cast_expression "(undefined4 *)(pcVar10 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x18)" ( (binary_expression "pcVar10 + 0x18" identifier + number_literal) )))) , (string_literal ""Connection socket is closed due to error when reading request.\n"" " string_content escape_sequence ") ))) ;) })))) (expression_statement "FUN_00015170(pcVar10,1);" (call_expression "FUN_00015170(pcVar10,1)" identifier (argument_list "(pcVar10,1)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" else (if_statement "if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }" { (expression_statement "pcVar10[0xa9] = '\x01';" (assignment_expression "pcVar10[0xa9] = '\x01'" (subscript_expression "pcVar10[0xa9]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "FUN_00015170(pcVar10,5);" (call_expression "FUN_00015170(pcVar10,5)" identifier (argument_list "(pcVar10,5)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" else (compound_statement "{\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" { (expression_statement "*(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;" (assignment_expression "*(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5" (pointer_expression "*(int *)(pcVar10 + 100)" * (cast_expression "(int *)(pcVar10 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) )))) = (binary_expression "*(int *)(pcVar10 + 100) + iVar5" (pointer_expression "*(int *)(pcVar10 + 100)" * (cast_expression "(int *)(pcVar10 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) )))) + identifier)) ;) (expression_statement "FUN_000156e0(pcVar10);" (call_expression "FUN_000156e0(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) (if_statement "if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" if (parenthesized_expression "(*(uint *)(pcVar10 + 0xb4) < 9)" ( (binary_expression "*(uint *)(pcVar10 + 0xb4) < 9" (pointer_expression "*(uint *)(pcVar10 + 0xb4)" * (cast_expression "(uint *)(pcVar10 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }" { (if_statement "if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }" if (parenthesized_expression "(pcVar10[0xa9] != '\0')" ( (binary_expression "pcVar10[0xa9] != '\0'" (subscript_expression "pcVar10[0xa9]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                  FUN_00015170(pcVar10,4);\n                }" { (expression_statement "FUN_00015170(pcVar10,4);" (call_expression "FUN_00015170(pcVar10,4)" identifier (argument_list "(pcVar10,4)" ( identifier , number_literal ))) ;) })) }) (else_clause "else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" else (if_statement "if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" if (parenthesized_expression "(1 < *(uint *)(pcVar10 + 0xb4) - 0x13)" ( (binary_expression "1 < *(uint *)(pcVar10 + 0xb4) - 0x13" number_literal < (binary_expression "*(uint *)(pcVar10 + 0xb4) - 0x13" (pointer_expression "*(uint *)(pcVar10 + 0xb4)" * (cast_expression "(uint *)(pcVar10 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) - number_literal)) )) (compound_statement "{\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" { (expression_statement "FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));" (call_expression "FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100))" identifier (argument_list "(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100))" ( (pointer_expression "*(undefined4 *)(pcVar10 + 0x28)" * (cast_expression "(undefined4 *)(pcVar10 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x28)" ( (binary_expression "pcVar10 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(pcVar10 + 0x44)" * (cast_expression "(undefined4 *)(pcVar10 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x44)" ( (binary_expression "pcVar10 + 0x44" identifier + number_literal) )))) , (binary_expression "*(int *)(pcVar10 + 0x60) + 1" (pointer_expression "*(int *)(pcVar10 + 0x60)" * (cast_expression "(int *)(pcVar10 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x60)" ( (binary_expression "pcVar10 + 0x60" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(pcVar10 + 100)" * (cast_expression "(undefined4 *)(pcVar10 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) )))) ))) ;) })))) }))))) })) })) (return_statement "return;" return ;) })) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0)" ( (binary_expression "*(int *)(param_1 + 0x14) == 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000157d0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x10" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "puVar8 = auStack_1c;" (assignment_expression "puVar8 = auStack_1c" identifier = identifier) ;) (while_statement "while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }" { (if_statement "if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }" { (expression_statement "*(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(iVar5 + 0x34)" * (cast_expression "(undefined4 *)(iVar5 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" else (compound_statement "{\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" { (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x14" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *(int *)(iVar5 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x30)" identifier = (pointer_expression "*(int *)(iVar5 + 0x30)" * (cast_expression "(int *)(iVar5 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x30)" ( (binary_expression "iVar5 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" if (parenthesized_expression "(*(int *)(iVar5 + 0x34) == 0)" ( (binary_expression "*(int *)(iVar5 + 0x34) == 0" (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          *(int *)(iVar5 + 0x34) = param_1;\n        }" { (expression_statement "*(int *)(iVar5 + 0x34) = param_1;" (assignment_expression "*(int *)(iVar5 + 0x34) = param_1" (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" else (compound_statement "{\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" { (expression_statement "*(int *)(iVar3 + 0x14) = param_1;" (assignment_expression "*(int *)(iVar3 + 0x14) = param_1" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(int *)(iVar5 + 0x30) = param_1;" (assignment_expression "*(int *)(iVar5 + 0x30) = param_1" (pointer_expression "*(int *)(iVar5 + 0x30)" * (cast_expression "(int *)(iVar5 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x30)" ( (binary_expression "iVar5 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);" (assignment_expression "*(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac)" (pointer_expression "*(pthread_mutex_t **)(puVar8 + -0x10)" * (cast_expression "(pthread_mutex_t **)(puVar8 + -0x10)" ( (type_descriptor "pthread_mutex_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) = (cast_expression "(pthread_mutex_t *)(iVar5 + 0xac)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x14) = 0x1579b;" (assignment_expression "*(undefined4 *)(puVar8 + -0x14) = 0x1579b" (pointer_expression "*(undefined4 *)(puVar8 + -0x14)" * (cast_expression "(undefined4 *)(puVar8 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));" (assignment_expression "iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10))" identifier = (call_expression "pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10))" identifier (argument_list "(*(pthread_mutex_t **)(puVar8 + -0x10))" ( (pointer_expression "*(pthread_mutex_t **)(puVar8 + -0x10)" * (cast_expression "(pthread_mutex_t **)(puVar8 + -0x10)" ( (type_descriptor "pthread_mutex_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";" (assignment_expression "*(char **)(puVar8 + -4) = "Failed to unlock mutex.\n"" (pointer_expression "*(char **)(puVar8 + -4)" * (cast_expression "(char **)(puVar8 + -4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -4)" ( (binary_expression "puVar8 + -4" identifier + number_literal) )))) = (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ")) ;) (expression_statement "*(undefined4 *)(puVar8 + -8) = 0xb47;" (assignment_expression "*(undefined4 *)(puVar8 + -8) = 0xb47" (pointer_expression "*(undefined4 *)(puVar8 + -8)" * (cast_expression "(undefined4 *)(puVar8 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -8)" ( (binary_expression "puVar8 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(char **)(puVar8 + -0xc) = "connection.c";" (assignment_expression "*(char **)(puVar8 + -0xc) = "connection.c"" (pointer_expression "*(char **)(puVar8 + -0xc)" * (cast_expression "(char **)(puVar8 + -0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0xc)" ( (binary_expression "puVar8 + -0xc" identifier + number_literal) )))) = (string_literal ""connection.c"" " string_content ")) ;) (expression_statement "puVar9 = puVar8 + -0x10;" (assignment_expression "puVar9 = puVar8 + -0x10" identifier = (binary_expression "puVar8 + -0x10" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x10) = DAT_00034068;" (assignment_expression "*(undefined4 *)(puVar8 + -0x10) = DAT_00034068" (pointer_expression "*(undefined4 *)(puVar8 + -0x10)" * (cast_expression "(undefined4 *)(puVar8 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x14) = 0x157c9;" (assignment_expression "*(undefined4 *)(puVar8 + -0x14) = 0x157c9" (pointer_expression "*(undefined4 *)(puVar8 + -0x14)" * (cast_expression "(undefined4 *)(puVar8 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*DAT_0003406c)();" (call_expression "(*DAT_0003406c)()" (parenthesized_expression "(*DAT_0003406c)" ( (pointer_expression "*DAT_0003406c" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = extraout_EDX;" (assignment_expression "uVar2 = extraout_EDX" identifier = identifier) ;) (labeled_statement "LAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;" statement_identifier : (expression_statement "*(undefined4 *)(iVar5 + 0x30) = uVar2;" (assignment_expression "*(undefined4 *)(iVar5 + 0x30) = uVar2" (pointer_expression "*(undefined4 *)(iVar5 + 0x30)" * (cast_expression "(undefined4 *)(iVar5 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x30)" ( (binary_expression "iVar5 + 0x30" identifier + number_literal) )))) = identifier) ;)) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\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\nvoid MHD_update_last_activity_(MHD_Connection *connection)\n\n{\n  MHD_Daemon *pMVar1;\n  _Bool _Var2;\n  time_t tVar3;\n  int iVar4;\n  uint uVar5;\n  ssize_t sVar6;\n  MHD_Connection *extraout_EDX;\n  MHD_Connection *pMVar7;\n  uint uVar8;\n  undefined1 *puVar9;\n  undefined1 *puVar10;\n  undefined4 uStack_30;\n  char *connection_00;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  puVar10 = auStack_1c;\n  if ((connection->connection_timeout != 0) && (connection->suspended == false)) {\n    pMVar1 = connection->daemon;\n    tVar3 = MHD_monotonic_sec_counter();\n    connection->last_activity = tVar3;\n    if (((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout)) {\n      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);\n      if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }\n      pMVar7 = connection->nextX;\n      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;\n      connection->prevX->nextX = pMVar7;\n      puVar9 = auStack_1c;\n      while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }\n    }\n  }\n  return;\n}\n\n" comment comment comment comment comment (function_definition "void MHD_update_last_activity_(MHD_Connection *connection)\n\n{\n  MHD_Daemon *pMVar1;\n  _Bool _Var2;\n  time_t tVar3;\n  int iVar4;\n  uint uVar5;\n  ssize_t sVar6;\n  MHD_Connection *extraout_EDX;\n  MHD_Connection *pMVar7;\n  uint uVar8;\n  undefined1 *puVar9;\n  undefined1 *puVar10;\n  undefined4 uStack_30;\n  char *connection_00;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  puVar10 = auStack_1c;\n  if ((connection->connection_timeout != 0) && (connection->suspended == false)) {\n    pMVar1 = connection->daemon;\n    tVar3 = MHD_monotonic_sec_counter();\n    connection->last_activity = tVar3;\n    if (((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout)) {\n      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);\n      if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }\n      pMVar7 = connection->nextX;\n      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;\n      connection->prevX->nextX = pMVar7;\n      puVar9 = auStack_1c;\n      while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "MHD_update_last_activity_(MHD_Connection *connection)" identifier (parameter_list "(MHD_Connection *connection)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) ))) (compound_statement "{\n  MHD_Daemon *pMVar1;\n  _Bool _Var2;\n  time_t tVar3;\n  int iVar4;\n  uint uVar5;\n  ssize_t sVar6;\n  MHD_Connection *extraout_EDX;\n  MHD_Connection *pMVar7;\n  uint uVar8;\n  undefined1 *puVar9;\n  undefined1 *puVar10;\n  undefined4 uStack_30;\n  char *connection_00;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  puVar10 = auStack_1c;\n  if ((connection->connection_timeout != 0) && (connection->suspended == false)) {\n    pMVar1 = connection->daemon;\n    tVar3 = MHD_monotonic_sec_counter();\n    connection->last_activity = tVar3;\n    if (((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout)) {\n      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);\n      if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }\n      pMVar7 = connection->nextX;\n      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;\n      connection->prevX->nextX = pMVar7;\n      puVar9 = auStack_1c;\n      while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }\n    }\n  }\n  return;\n}" { (declaration "MHD_Daemon *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "time_t tVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "ssize_t sVar6;" primitive_type identifier ;) (declaration "MHD_Connection *extraout_EDX;" type_identifier (pointer_declarator "*extraout_EDX" * identifier) ;) (declaration "MHD_Connection *pMVar7;" type_identifier (pointer_declarator "*pMVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined1 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 uStack_30;" type_identifier identifier ;) (declaration "char *connection_00;" primitive_type (pointer_declarator "*connection_00" * identifier) ;) (declaration "undefined1 auStack_1c [8];" type_identifier (array_declarator "auStack_1c [8]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" identifier = number_literal) ;) (expression_statement "puVar10 = auStack_1c;" (assignment_expression "puVar10 = auStack_1c" identifier = identifier) ;) (if_statement "if ((connection->connection_timeout != 0) && (connection->suspended == false)) {\n    pMVar1 = connection->daemon;\n    tVar3 = MHD_monotonic_sec_counter();\n    connection->last_activity = tVar3;\n    if (((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout)) {\n      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);\n      if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }\n      pMVar7 = connection->nextX;\n      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;\n      connection->prevX->nextX = pMVar7;\n      puVar9 = auStack_1c;\n      while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }\n    }\n  }" if (parenthesized_expression "((connection->connection_timeout != 0) && (connection->suspended == false))" ( (binary_expression "(connection->connection_timeout != 0) && (connection->suspended == false)" (parenthesized_expression "(connection->connection_timeout != 0)" ( (binary_expression "connection->connection_timeout != 0" (field_expression "connection->connection_timeout" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(connection->suspended == false)" ( (binary_expression "connection->suspended == false" (field_expression "connection->suspended" identifier -> field_identifier) == false) ))) )) (compound_statement "{\n    pMVar1 = connection->daemon;\n    tVar3 = MHD_monotonic_sec_counter();\n    connection->last_activity = tVar3;\n    if (((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout)) {\n      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);\n      if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }\n      pMVar7 = connection->nextX;\n      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;\n      connection->prevX->nextX = pMVar7;\n      puVar9 = auStack_1c;\n      while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }\n    }\n  }" { (expression_statement "pMVar1 = connection->daemon;" (assignment_expression "pMVar1 = connection->daemon" identifier = (field_expression "connection->daemon" identifier -> field_identifier)) ;) (expression_statement "tVar3 = MHD_monotonic_sec_counter();" (assignment_expression "tVar3 = MHD_monotonic_sec_counter()" identifier = (call_expression "MHD_monotonic_sec_counter()" identifier (argument_list "()" ( )))) ;) (expression_statement "connection->last_activity = tVar3;" (assignment_expression "connection->last_activity = tVar3" (field_expression "connection->last_activity" identifier -> field_identifier) = identifier) ;) (if_statement "if (((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout)) {\n      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);\n      if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }\n      pMVar7 = connection->nextX;\n      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;\n      connection->prevX->nextX = pMVar7;\n      puVar9 = auStack_1c;\n      while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }\n    }" if (parenthesized_expression "(((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout))" ( (binary_expression "((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) &&\n       (connection->connection_timeout == pMVar1->connection_timeout)" (parenthesized_expression "((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)" ( (binary_expression "(pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG" (parenthesized_expression "(pMVar1->options & MHD_USE_THREAD_PER_CONNECTION)" ( (binary_expression "pMVar1->options & MHD_USE_THREAD_PER_CONNECTION" (field_expression "pMVar1->options" identifier -> field_identifier) & identifier) )) == identifier) )) && (parenthesized_expression "(connection->connection_timeout == pMVar1->connection_timeout)" ( (binary_expression "connection->connection_timeout == pMVar1->connection_timeout" (field_expression "connection->connection_timeout" identifier -> field_identifier) == (field_expression "pMVar1->connection_timeout" identifier -> field_identifier)) ))) )) (compound_statement "{\n      iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);\n      if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }\n      pMVar7 = connection->nextX;\n      if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;\n      connection->prevX->nextX = pMVar7;\n      puVar9 = auStack_1c;\n      while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }\n    }" { (expression_statement "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex);" (assignment_expression "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex)" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex)" identifier (argument_list "((pthread_mutex_t *)&pMVar1->cleanup_connection_mutex)" ( (cast_expression "(pthread_mutex_t *)&pMVar1->cleanup_connection_mutex" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pMVar1->cleanup_connection_mutex" & (field_expression "pMVar1->cleanup_connection_mutex" identifier -> field_identifier))) )))) ;) (if_statement "if (iVar4 != 0) {\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        connection_00 = "connection.c";\n        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }\n        return;\n      }" { (expression_statement "connection_00 = "connection.c";" (assignment_expression "connection_00 = "connection.c"" identifier = (string_literal ""connection.c"" " string_content ")) ;) (expression_statement "(*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");" (call_expression "(*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n")" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n")" ( identifier , (string_literal ""connection.c"" " string_content ") , number_literal , (string_literal ""Failed to lock mutex.\n"" " string_content escape_sequence ") ))) ;) (if_statement "if (((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))) {\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }" if (parenthesized_expression "(((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2))))" ( (binary_expression "((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)) &&\n           ((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))" (parenthesized_expression "((((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false))" ( (binary_expression "(((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED) &&\n            (((MHD_Connection *)connection_00)->suspended == false)" (parenthesized_expression "(((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED)" ( (binary_expression "((MHD_Connection *)connection_00)->state != MHD_CONNECTION_CLOSED" (field_expression "((MHD_Connection *)connection_00)->state" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) != identifier) )) && (parenthesized_expression "(((MHD_Connection *)connection_00)->suspended == false)" ( (binary_expression "((MHD_Connection *)connection_00)->suspended == false" (field_expression "((MHD_Connection *)connection_00)->suspended" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) == false) ))) )) && (parenthesized_expression "((1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)))" ( (parenthesized_expression "(1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2))" ( (binary_expression "1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT ||\n            (_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)" (binary_expression "1 < ((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT" number_literal < (binary_expression "((MHD_Connection *)connection_00)->tls_state - MHD_TLS_CONN_INIT" (field_expression "((MHD_Connection *)connection_00)->tls_state" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) - identifier)) || (parenthesized_expression "(_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2)" ( (comma_expression "_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00), _Var2" (assignment_expression "_Var2 = MHD_run_tls_handshake_((MHD_Connection *)connection_00)" identifier = (call_expression "MHD_run_tls_handshake_((MHD_Connection *)connection_00)" identifier (argument_list "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) , identifier) ))) )) ))) )) (compound_statement "{\n          uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n          if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }\n          if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }\n        }" { (expression_statement "uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;" (assignment_expression "uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset" identifier = (field_expression "((MHD_Connection *)connection_00)->read_buffer_offset" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) (expression_statement "uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;" (assignment_expression "uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size" identifier = (field_expression "((MHD_Connection *)connection_00)->read_buffer_size" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) (if_statement "if (uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5) {\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }" if (parenthesized_expression "(uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5)" ( (binary_expression "uVar8 < ((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5" identifier < (binary_expression "((MHD_Connection *)connection_00)->daemon->pool_increment + uVar5" (field_expression "((MHD_Connection *)connection_00)->daemon->pool_increment" (field_expression "((MHD_Connection *)connection_00)->daemon" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) -> field_identifier) + identifier)) )) (compound_statement "{\n            try_grow_read_buffer((MHD_Connection *)connection_00);\n            uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;\n            uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;\n          }" { (expression_statement "try_grow_read_buffer((MHD_Connection *)connection_00);" (call_expression "try_grow_read_buffer((MHD_Connection *)connection_00)" identifier (argument_list "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size;" (assignment_expression "uVar8 = ((MHD_Connection *)connection_00)->read_buffer_size" identifier = (field_expression "((MHD_Connection *)connection_00)->read_buffer_size" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) (expression_statement "uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset;" (assignment_expression "uVar5 = ((MHD_Connection *)connection_00)->read_buffer_offset" identifier = (field_expression "((MHD_Connection *)connection_00)->read_buffer_offset" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) })) (if_statement "if (uVar5 != uVar8) {\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }" if (parenthesized_expression "(uVar5 != uVar8)" ( (binary_expression "uVar5 != uVar8" identifier != identifier) )) (compound_statement "{\n            sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;\n            if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }\n          }" { (expression_statement "sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)\n            ;" (assignment_expression "sVar6 = (*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)" identifier = (call_expression "(*((MHD_Connection *)connection_00)->recv_cls)\n                              ((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)" (parenthesized_expression "(*((MHD_Connection *)connection_00)->recv_cls)" ( (pointer_expression "*((MHD_Connection *)connection_00)->recv_cls" * (field_expression "((MHD_Connection *)connection_00)->recv_cls" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) )) (argument_list "((MHD_Connection *)connection_00,\n                               ((MHD_Connection *)connection_00)->read_buffer + uVar5,uVar8 - uVar5)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "((MHD_Connection *)connection_00)->read_buffer + uVar5" (field_expression "((MHD_Connection *)connection_00)->read_buffer" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) + identifier) , (binary_expression "uVar8 - uVar5" identifier - identifier) )))) ;) (if_statement "if (sVar6 < 0) {\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }\n            else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }" if (parenthesized_expression "(sVar6 < 0)" ( (binary_expression "sVar6 < 0" identifier < number_literal) )) (compound_statement "{\n              if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }\n            }" { (if_statement "if (sVar6 != -0xc01) {\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }" if (parenthesized_expression "(sVar6 != -0xc01)" ( (binary_expression "sVar6 != -0xc01" identifier != number_literal) )) (compound_statement "{\n                if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }\n                MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);\n                return;\n              }" { (if_statement "if (sVar6 == -0xc02) {\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }" if (parenthesized_expression "(sVar6 == -0xc02)" ( (binary_expression "sVar6 == -0xc02" identifier == number_literal) )) (compound_statement "{\n                  if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }\n                }" { (if_statement "if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }" if (parenthesized_expression "(((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT)" ( (binary_expression "((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT" (field_expression "((MHD_Connection *)connection_00)->state" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) != identifier) )) (compound_statement "{\n                    MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");\n                  }" { (expression_statement "MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n");" (call_expression "MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n")" identifier (argument_list "(((MHD_Connection *)connection_00)->daemon,\n                             "Socket disconnected while reading request.\n")" ( (field_expression "((MHD_Connection *)connection_00)->daemon" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) , (string_literal ""Socket disconnected while reading request.\n"" " string_content escape_sequence ") ))) ;) })) }) (else_clause "else if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }" else (if_statement "if (((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT) {\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }" if (parenthesized_expression "(((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT)" ( (binary_expression "((MHD_Connection *)connection_00)->state != MHD_CONNECTION_INIT" (field_expression "((MHD_Connection *)connection_00)->state" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) != identifier) )) (compound_statement "{\n                  MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");\n                }" { (expression_statement "MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n");" (call_expression "MHD_DLOG(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n")" identifier (argument_list "(((MHD_Connection *)connection_00)->daemon,\n                           "Connection socket is closed due to error when reading request.\n")" ( (field_expression "((MHD_Connection *)connection_00)->daemon" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) , (string_literal ""Connection socket is closed due to error when reading request.\n"" " string_content escape_sequence ") ))) ;) })))) (expression_statement "MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);" (call_expression "MHD_connection_close_\n                          ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR)" identifier (argument_list "((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }" else (if_statement "if (sVar6 == 0) {\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }\n            else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }" if (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              ((MHD_Connection *)connection_00)->read_closed = true;\n              MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);\n            }" { (expression_statement "((MHD_Connection *)connection_00)->read_closed = true;" (assignment_expression "((MHD_Connection *)connection_00)->read_closed = true" (field_expression "((MHD_Connection *)connection_00)->read_closed" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) = true) ;) (expression_statement "MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);" (call_expression "MHD_connection_close_\n                        ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT)" identifier (argument_list "((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) }) (else_clause "else {\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }" else (compound_statement "{\n              ((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;\n              MHD_update_last_activity_((MHD_Connection *)connection_00);\n              if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }\n            }" { (expression_statement "((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6;" (assignment_expression "((MHD_Connection *)connection_00)->read_buffer_offset =\n                   ((MHD_Connection *)connection_00)->read_buffer_offset + sVar6" (field_expression "((MHD_Connection *)connection_00)->read_buffer_offset" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) = (binary_expression "((MHD_Connection *)connection_00)->read_buffer_offset + sVar6" (field_expression "((MHD_Connection *)connection_00)->read_buffer_offset" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) + identifier)) ;) (expression_statement "MHD_update_last_activity_((MHD_Connection *)connection_00);" (call_expression "MHD_update_last_activity_((MHD_Connection *)connection_00)" identifier (argument_list "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (if_statement "if (((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED) {\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }\n              else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }" if (parenthesized_expression "(((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED)" ( (binary_expression "((MHD_Connection *)connection_00)->state < MHD_CONNECTION_FOOTERS_RECEIVED" (field_expression "((MHD_Connection *)connection_00)->state" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) < identifier) )) (compound_statement "{\n                if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }\n              }" { (if_statement "if (((MHD_Connection *)connection_00)->read_closed != false) {\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }" if (parenthesized_expression "(((MHD_Connection *)connection_00)->read_closed != false)" ( (binary_expression "((MHD_Connection *)connection_00)->read_closed != false" (field_expression "((MHD_Connection *)connection_00)->read_closed" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) != false) )) (compound_statement "{\n                  MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);\n                }" { (expression_statement "MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);" (call_expression "MHD_connection_close_\n                            ((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR)" identifier (argument_list "((MHD_Connection *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) })) }) (else_clause "else if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }" else (if_statement "if (1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED) {\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }" if (parenthesized_expression "(1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED)" ( (binary_expression "1 < ((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED" number_literal < (binary_expression "((MHD_Connection *)connection_00)->state - MHD_CONNECTION_CLOSED" (field_expression "((MHD_Connection *)connection_00)->state" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) - identifier)) )) (compound_statement "{\n                MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);\n              }" { (expression_statement "MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset);" (call_expression "MHD_pool_reallocate(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset)" identifier (argument_list "(((MHD_Connection *)connection_00)->pool,\n                                    ((MHD_Connection *)connection_00)->read_buffer,\n                                    ((MHD_Connection *)connection_00)->read_buffer_size + 1,\n                                    ((MHD_Connection *)connection_00)->read_buffer_offset)" ( (field_expression "((MHD_Connection *)connection_00)->pool" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) , (field_expression "((MHD_Connection *)connection_00)->read_buffer" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) , (binary_expression "((MHD_Connection *)connection_00)->read_buffer_size + 1" (field_expression "((MHD_Connection *)connection_00)->read_buffer_size" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) + number_literal) , (field_expression "((MHD_Connection *)connection_00)->read_buffer_offset" (parenthesized_expression "((MHD_Connection *)connection_00)" ( (cast_expression "(MHD_Connection *)connection_00" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) ))) ;) })))) }))))) })) })) (return_statement "return;" return ;) })) (expression_statement "pMVar7 = connection->nextX;" (assignment_expression "pMVar7 = connection->nextX" identifier = (field_expression "connection->nextX" identifier -> field_identifier)) ;) (if_statement "if (connection->prevX == (MHD_Connection *)0x0) goto LAB_000157d0;" if (parenthesized_expression "(connection->prevX == (MHD_Connection *)0x0)" ( (binary_expression "connection->prevX == (MHD_Connection *)0x0" (field_expression "connection->prevX" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000157d0;" goto statement_identifier ;)) (expression_statement "connection->prevX->nextX = pMVar7;" (assignment_expression "connection->prevX->nextX = pMVar7" (field_expression "connection->prevX->nextX" (field_expression "connection->prevX" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "puVar9 = auStack_1c;" (assignment_expression "puVar9 = auStack_1c" identifier = identifier) ;) (while_statement "while( true ) {\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        pMVar7 = pMVar1->normal_timeout_head;\n        connection->nextX = pMVar7;\n        if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }\n        pMVar1->normal_timeout_head = connection;\n        *(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;\n        *(undefined4 *)(puVar9 + -0x14) = 0x1579b;\n        iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));\n        if (iVar4 == 0) break;\n        *(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar9 + -8) = 0xb47;\n        *(char **)(puVar9 + -0xc) = "connection.c";\n        puVar10 = puVar9 + -0x10;\n        *(void **)(puVar9 + -0x10) = mhd_panic_cls;\n        *(undefined4 *)(puVar9 + -0x14) = 0x157c9;\n        (*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));\n        pMVar7 = extraout_EDX;\nLAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;\n        puVar9 = puVar10;\n      }" { (if_statement "if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }" if (parenthesized_expression "(connection->nextX == (MHD_Connection *)0x0)" ( (binary_expression "connection->nextX == (MHD_Connection *)0x0" (field_expression "connection->nextX" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pMVar1->normal_timeout_tail = connection->prevX;\n        }" { (expression_statement "pMVar1->normal_timeout_tail = connection->prevX;" (assignment_expression "pMVar1->normal_timeout_tail = connection->prevX" (field_expression "pMVar1->normal_timeout_tail" identifier -> field_identifier) = (field_expression "connection->prevX" identifier -> field_identifier)) ;) }) (else_clause "else {\n          connection->nextX->prevX = connection->prevX;\n        }" else (compound_statement "{\n          connection->nextX->prevX = connection->prevX;\n        }" { (expression_statement "connection->nextX->prevX = connection->prevX;" (assignment_expression "connection->nextX->prevX = connection->prevX" (field_expression "connection->nextX->prevX" (field_expression "connection->nextX" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->prevX" identifier -> field_identifier)) ;) }))) (expression_statement "connection->nextX = (MHD_Connection *)0x0;" (assignment_expression "connection->nextX = (MHD_Connection *)0x0" (field_expression "connection->nextX" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "connection->prevX = (MHD_Connection *)0x0;" (assignment_expression "connection->prevX = (MHD_Connection *)0x0" (field_expression "connection->prevX" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar7 = pMVar1->normal_timeout_head;" (assignment_expression "pMVar7 = pMVar1->normal_timeout_head" identifier = (field_expression "pMVar1->normal_timeout_head" identifier -> field_identifier)) ;) (expression_statement "connection->nextX = pMVar7;" (assignment_expression "connection->nextX = pMVar7" (field_expression "connection->nextX" identifier -> field_identifier) = identifier) ;) (if_statement "if (pMVar1->normal_timeout_tail == (MHD_Connection *)0x0) {\n          pMVar1->normal_timeout_tail = connection;\n        }\n        else {\n          pMVar7->prevX = connection;\n        }" if (parenthesized_expression "(pMVar1->normal_timeout_tail == (MHD_Connection *)0x0)" ( (binary_expression "pMVar1->normal_timeout_tail == (MHD_Connection *)0x0" (field_expression "pMVar1->normal_timeout_tail" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pMVar1->normal_timeout_tail = connection;\n        }" { (expression_statement "pMVar1->normal_timeout_tail = connection;" (assignment_expression "pMVar1->normal_timeout_tail = connection" (field_expression "pMVar1->normal_timeout_tail" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n          pMVar7->prevX = connection;\n        }" else (compound_statement "{\n          pMVar7->prevX = connection;\n        }" { (expression_statement "pMVar7->prevX = connection;" (assignment_expression "pMVar7->prevX = connection" (field_expression "pMVar7->prevX" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "pMVar1->normal_timeout_head = connection;" (assignment_expression "pMVar1->normal_timeout_head = connection" (field_expression "pMVar1->normal_timeout_head" identifier -> field_identifier) = identifier) ;) (expression_statement "*(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex;" (assignment_expression "*(MHD_mutex_ **)(puVar9 + -0x10) = &pMVar1->cleanup_connection_mutex" (pointer_expression "*(MHD_mutex_ **)(puVar9 + -0x10)" * (cast_expression "(MHD_mutex_ **)(puVar9 + -0x10)" ( (type_descriptor "MHD_mutex_ **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x10)" ( (binary_expression "puVar9 + -0x10" identifier + number_literal) )))) = (pointer_expression "&pMVar1->cleanup_connection_mutex" & (field_expression "pMVar1->cleanup_connection_mutex" identifier -> field_identifier))) ;) (expression_statement "*(undefined4 *)(puVar9 + -0x14) = 0x1579b;" (assignment_expression "*(undefined4 *)(puVar9 + -0x14) = 0x1579b" (pointer_expression "*(undefined4 *)(puVar9 + -0x14)" * (cast_expression "(undefined4 *)(puVar9 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x14)" ( (binary_expression "puVar9 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10));" (assignment_expression "iVar4 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10))" identifier = (call_expression "pthread_mutex_unlock(*(pthread_mutex_t **)(puVar9 + -0x10))" identifier (argument_list "(*(pthread_mutex_t **)(puVar9 + -0x10))" ( (pointer_expression "*(pthread_mutex_t **)(puVar9 + -0x10)" * (cast_expression "(pthread_mutex_t **)(puVar9 + -0x10)" ( (type_descriptor "pthread_mutex_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x10)" ( (binary_expression "puVar9 + -0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(char **)(puVar9 + -4) = "Failed to unlock mutex.\n";" (assignment_expression "*(char **)(puVar9 + -4) = "Failed to unlock mutex.\n"" (pointer_expression "*(char **)(puVar9 + -4)" * (cast_expression "(char **)(puVar9 + -4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -4)" ( (binary_expression "puVar9 + -4" identifier + number_literal) )))) = (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ")) ;) (expression_statement "*(undefined4 *)(puVar9 + -8) = 0xb47;" (assignment_expression "*(undefined4 *)(puVar9 + -8) = 0xb47" (pointer_expression "*(undefined4 *)(puVar9 + -8)" * (cast_expression "(undefined4 *)(puVar9 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -8)" ( (binary_expression "puVar9 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(char **)(puVar9 + -0xc) = "connection.c";" (assignment_expression "*(char **)(puVar9 + -0xc) = "connection.c"" (pointer_expression "*(char **)(puVar9 + -0xc)" * (cast_expression "(char **)(puVar9 + -0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0xc)" ( (binary_expression "puVar9 + -0xc" identifier + number_literal) )))) = (string_literal ""connection.c"" " string_content ")) ;) (expression_statement "puVar10 = puVar9 + -0x10;" (assignment_expression "puVar10 = puVar9 + -0x10" identifier = (binary_expression "puVar9 + -0x10" identifier + number_literal)) ;) (expression_statement "*(void **)(puVar9 + -0x10) = mhd_panic_cls;" (assignment_expression "*(void **)(puVar9 + -0x10) = mhd_panic_cls" (pointer_expression "*(void **)(puVar9 + -0x10)" * (cast_expression "(void **)(puVar9 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x10)" ( (binary_expression "puVar9 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar9 + -0x14) = 0x157c9;" (assignment_expression "*(undefined4 *)(puVar9 + -0x14) = 0x157c9" (pointer_expression "*(undefined4 *)(puVar9 + -0x14)" * (cast_expression "(undefined4 *)(puVar9 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x14)" ( (binary_expression "puVar9 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4));" (call_expression "(*mhd_panic)(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4))" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(*(void **)(puVar9 + -0x10),*(char **)(puVar9 + -0xc),*(uint *)(puVar9 + -8),\n                     *(char **)(puVar9 + -4))" ( (pointer_expression "*(void **)(puVar9 + -0x10)" * (cast_expression "(void **)(puVar9 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x10)" ( (binary_expression "puVar9 + -0x10" identifier + number_literal) )))) , (pointer_expression "*(char **)(puVar9 + -0xc)" * (cast_expression "(char **)(puVar9 + -0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0xc)" ( (binary_expression "puVar9 + -0xc" identifier + number_literal) )))) , (pointer_expression "*(uint *)(puVar9 + -8)" * (cast_expression "(uint *)(puVar9 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -8)" ( (binary_expression "puVar9 + -8" identifier + number_literal) )))) , (pointer_expression "*(char **)(puVar9 + -4)" * (cast_expression "(char **)(puVar9 + -4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -4)" ( (binary_expression "puVar9 + -4" identifier + number_literal) )))) ))) ;) (expression_statement "pMVar7 = extraout_EDX;" (assignment_expression "pMVar7 = extraout_EDX" identifier = identifier) ;) (labeled_statement "LAB_000157d0:\n        pMVar1->normal_timeout_head = pMVar7;" statement_identifier : (expression_statement "pMVar1->normal_timeout_head = pMVar7;" (assignment_expression "pMVar1->normal_timeout_head = pMVar7" (field_expression "pMVar1->normal_timeout_head" identifier -> field_identifier) = identifier) ;)) (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" identifier = identifier) ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000156e0(int param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000156e0(int param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000156e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined **ppuVar7;" type_identifier (pointer_declarator "**ppuVar7" * (pointer_declarator "*ppuVar7" * identifier)) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined1 auStack_1c [8];" type_identifier (array_declarator "auStack_1c [8]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" identifier = number_literal) ;) (expression_statement "ppuVar7 = &__DT_PLTGOT;" (assignment_expression "ppuVar7 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "puVar9 = auStack_1c;" (assignment_expression "puVar9 = auStack_1c" identifier = identifier) ;) (if_statement "if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0x98) != 0)" ( (binary_expression "*(int *)(param_1 + 0x98) != 0" (pointer_expression "*(int *)(param_1 + 0x98)" * (cast_expression "(int *)(param_1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(char *)(param_1 + 0xf1) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xf1) == '\0'" (pointer_expression "*(char *)(param_1 + 0xf1)" * (cast_expression "(char *)(param_1 + 0xf1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf1)" ( (binary_expression "param_1 + 0xf1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_00021230();" (assignment_expression "uVar2 = FUN_00021230()" identifier = (call_expression "FUN_00021230()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x94) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x94) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x94)" * (cast_expression "(undefined4 *)(param_1 + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x94)" ( (binary_expression "param_1 + 0x94" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }" if (parenthesized_expression "(((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       )" ( (binary_expression "((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))" (parenthesized_expression "((*(byte *)(iVar5 + 0xf8) & 4) == 0)" ( (binary_expression "(*(byte *)(iVar5 + 0xf8) & 4) == 0" (parenthesized_expression "(*(byte *)(iVar5 + 0xf8) & 4)" ( (binary_expression "*(byte *)(iVar5 + 0xf8) & 4" (pointer_expression "*(byte *)(iVar5 + 0xf8)" * (cast_expression "(byte *)(iVar5 + 0xf8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xf8)" ( (binary_expression "iVar5 + 0xf8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))" ( (binary_expression "*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0)" (pointer_expression "*(int *)(param_1 + 0x98)" * (cast_expression "(int *)(param_1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) == (pointer_expression "*(int *)(iVar5 + 0xf0)" * (cast_expression "(int *)(iVar5 + 0xf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xf0)" ( (binary_expression "iVar5 + 0xf0" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }" { (expression_statement "iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));" (assignment_expression "iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac))" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac))" identifier (argument_list "((pthread_mutex_t *)(iVar5 + 0xac))" ( (cast_expression "(pthread_mutex_t *)(iVar5 + 0xac)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }" { (expression_statement "pcVar10 = "connection.c";" (assignment_expression "pcVar10 = "connection.c"" identifier = (string_literal ""connection.c"" " string_content ")) ;) (expression_statement "(*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");" (call_expression "(*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n")" (parenthesized_expression "(*DAT_0003406c)" ( (pointer_expression "*DAT_0003406c" * identifier) )) (argument_list "(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n")" ( identifier , (string_literal ""connection.c"" " string_content ") , number_literal , (string_literal ""Failed to lock mutex.\n"" " string_content escape_sequence ") ))) ;) (if_statement "if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }" if (parenthesized_expression "(((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))" ( (binary_expression "((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')))" (parenthesized_expression "((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0'))" ( (binary_expression "(*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')" (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0x13)" ( (binary_expression "*(int *)(pcVar10 + 0xb4) != 0x13" (pointer_expression "*(int *)(pcVar10 + 0xb4)" * (cast_expression "(int *)(pcVar10 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(pcVar10[0xf1] == '\0')" ( (binary_expression "pcVar10[0xf1] == '\0'" (subscript_expression "pcVar10[0xf1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')))" ( (parenthesized_expression "(1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))" ( (binary_expression "1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')" (binary_expression "1 < *(int *)(pcVar10 + 0xec) - 1U" number_literal < (binary_expression "*(int *)(pcVar10 + 0xec) - 1U" (pointer_expression "*(int *)(pcVar10 + 0xec)" * (cast_expression "(int *)(pcVar10 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xec)" ( (binary_expression "pcVar10 + 0xec" identifier + number_literal) )))) - number_literal)) || (parenthesized_expression "(cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')" ( (comma_expression "cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'" (assignment_expression "cVar1 = FUN_00028180(pcVar10)" identifier = (call_expression "FUN_00028180(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }" { (expression_statement "uVar4 = *(uint *)(pcVar10 + 100);" (assignment_expression "uVar4 = *(uint *)(pcVar10 + 100)" identifier = (pointer_expression "*(uint *)(pcVar10 + 100)" * (cast_expression "(uint *)(pcVar10 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(uint *)(pcVar10 + 0x60);" (assignment_expression "uVar6 = *(uint *)(pcVar10 + 0x60)" identifier = (pointer_expression "*(uint *)(pcVar10 + 0x60)" * (cast_expression "(uint *)(pcVar10 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x60)" ( (binary_expression "pcVar10 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }" if (parenthesized_expression "(uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4)" ( (binary_expression "uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4" identifier < (binary_expression "*(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4" (pointer_expression "*(int *)(*(int *)(pcVar10 + 0x18) + 0x80)" * (cast_expression "(int *)(*(int *)(pcVar10 + 0x18) + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar10 + 0x18) + 0x80)" ( (binary_expression "*(int *)(pcVar10 + 0x18) + 0x80" (pointer_expression "*(int *)(pcVar10 + 0x18)" * (cast_expression "(int *)(pcVar10 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x18)" ( (binary_expression "pcVar10 + 0x18" identifier + number_literal) )))) + number_literal) )))) + identifier)) )) (compound_statement "{\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }" { (expression_statement "FUN_00013950(ppuVar7,param_1,iVar5);" (call_expression "FUN_00013950(ppuVar7,param_1,iVar5)" identifier (argument_list "(ppuVar7,param_1,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar6 = *(uint *)(pcVar10 + 0x60);" (assignment_expression "uVar6 = *(uint *)(pcVar10 + 0x60)" identifier = (pointer_expression "*(uint *)(pcVar10 + 0x60)" * (cast_expression "(uint *)(pcVar10 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x60)" ( (binary_expression "pcVar10 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(pcVar10 + 100);" (assignment_expression "uVar4 = *(uint *)(pcVar10 + 100)" identifier = (pointer_expression "*(uint *)(pcVar10 + 100)" * (cast_expression "(uint *)(pcVar10 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) ))))) ;) })) (if_statement "if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }" if (parenthesized_expression "(uVar4 != uVar6)" ( (binary_expression "uVar4 != uVar6" identifier != identifier) )) (compound_statement "{\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }" { (expression_statement "iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);" (assignment_expression "iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" identifier = (call_expression "(**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" (parenthesized_expression "(**(code **)(pcVar10 + 0xd4))" ( (pointer_expression "**(code **)(pcVar10 + 0xd4)" * (pointer_expression "*(code **)(pcVar10 + 0xd4)" * (cast_expression "(code **)(pcVar10 + 0xd4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0xd4)" ( (binary_expression "pcVar10 + 0xd4" identifier + number_literal) ))))) )) (argument_list "(pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" ( identifier , (binary_expression "uVar4 + *(int *)(pcVar10 + 0x44)" identifier + (pointer_expression "*(int *)(pcVar10 + 0x44)" * (cast_expression "(int *)(pcVar10 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x44)" ( (binary_expression "pcVar10 + 0x44" identifier + number_literal) ))))) , (binary_expression "uVar6 - uVar4" identifier - identifier) )))) ;) (if_statement "if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }" { (if_statement "if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }" if (parenthesized_expression "(iVar5 != -0xc01)" ( (binary_expression "iVar5 != -0xc01" identifier != number_literal) )) (compound_statement "{\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }" { (if_statement "if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" if (parenthesized_expression "(iVar5 == -0xc02)" ( (binary_expression "iVar5 == -0xc02" identifier == number_literal) )) (compound_statement "{\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }" { (if_statement "if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }" if (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0)" ( (binary_expression "*(int *)(pcVar10 + 0xb4) != 0" (pointer_expression "*(int *)(pcVar10 + 0xb4)" * (cast_expression "(int *)(pcVar10 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }" { (expression_statement "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n")" identifier (argument_list "(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n")" ( (pointer_expression "*(undefined4 *)(pcVar10 + 0x18)" * (cast_expression "(undefined4 *)(pcVar10 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x18)" ( (binary_expression "pcVar10 + 0x18" identifier + number_literal) )))) , (string_literal ""Socket disconnected while reading request.\n"" " string_content escape_sequence ") ))) ;) })) }) (else_clause "else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" else (if_statement "if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" if (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0)" ( (binary_expression "*(int *)(pcVar10 + 0xb4) != 0" (pointer_expression "*(int *)(pcVar10 + 0xb4)" * (cast_expression "(int *)(pcVar10 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" { (expression_statement "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n")" identifier (argument_list "(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n")" ( (pointer_expression "*(undefined4 *)(pcVar10 + 0x18)" * (cast_expression "(undefined4 *)(pcVar10 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x18)" ( (binary_expression "pcVar10 + 0x18" identifier + number_literal) )))) , (string_literal ""Connection socket is closed due to error when reading request.\n"" " string_content escape_sequence ") ))) ;) })))) (expression_statement "FUN_00015170(pcVar10,1);" (call_expression "FUN_00015170(pcVar10,1)" identifier (argument_list "(pcVar10,1)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" else (if_statement "if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }" { (expression_statement "pcVar10[0xa9] = '\x01';" (assignment_expression "pcVar10[0xa9] = '\x01'" (subscript_expression "pcVar10[0xa9]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "FUN_00015170(pcVar10,5);" (call_expression "FUN_00015170(pcVar10,5)" identifier (argument_list "(pcVar10,5)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" else (compound_statement "{\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" { (expression_statement "*(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;" (assignment_expression "*(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5" (pointer_expression "*(int *)(pcVar10 + 100)" * (cast_expression "(int *)(pcVar10 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) )))) = (binary_expression "*(int *)(pcVar10 + 100) + iVar5" (pointer_expression "*(int *)(pcVar10 + 100)" * (cast_expression "(int *)(pcVar10 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) )))) + identifier)) ;) (expression_statement "FUN_000156e0(pcVar10);" (call_expression "FUN_000156e0(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) (if_statement "if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" if (parenthesized_expression "(*(uint *)(pcVar10 + 0xb4) < 9)" ( (binary_expression "*(uint *)(pcVar10 + 0xb4) < 9" (pointer_expression "*(uint *)(pcVar10 + 0xb4)" * (cast_expression "(uint *)(pcVar10 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }" { (if_statement "if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }" if (parenthesized_expression "(pcVar10[0xa9] != '\0')" ( (binary_expression "pcVar10[0xa9] != '\0'" (subscript_expression "pcVar10[0xa9]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                  FUN_00015170(pcVar10,4);\n                }" { (expression_statement "FUN_00015170(pcVar10,4);" (call_expression "FUN_00015170(pcVar10,4)" identifier (argument_list "(pcVar10,4)" ( identifier , number_literal ))) ;) })) }) (else_clause "else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" else (if_statement "if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" if (parenthesized_expression "(1 < *(uint *)(pcVar10 + 0xb4) - 0x13)" ( (binary_expression "1 < *(uint *)(pcVar10 + 0xb4) - 0x13" number_literal < (binary_expression "*(uint *)(pcVar10 + 0xb4) - 0x13" (pointer_expression "*(uint *)(pcVar10 + 0xb4)" * (cast_expression "(uint *)(pcVar10 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0xb4)" ( (binary_expression "pcVar10 + 0xb4" identifier + number_literal) )))) - number_literal)) )) (compound_statement "{\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" { (expression_statement "FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));" (call_expression "FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100))" identifier (argument_list "(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100))" ( (pointer_expression "*(undefined4 *)(pcVar10 + 0x28)" * (cast_expression "(undefined4 *)(pcVar10 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x28)" ( (binary_expression "pcVar10 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(pcVar10 + 0x44)" * (cast_expression "(undefined4 *)(pcVar10 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x44)" ( (binary_expression "pcVar10 + 0x44" identifier + number_literal) )))) , (binary_expression "*(int *)(pcVar10 + 0x60) + 1" (pointer_expression "*(int *)(pcVar10 + 0x60)" * (cast_expression "(int *)(pcVar10 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x60)" ( (binary_expression "pcVar10 + 0x60" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(pcVar10 + 100)" * (cast_expression "(undefined4 *)(pcVar10 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 100)" ( (binary_expression "pcVar10 + 100" identifier + number_literal) )))) ))) ;) })))) }))))) })) })) (return_statement "return;" return ;) })) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0)" ( (binary_expression "*(int *)(param_1 + 0x14) == 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000157d0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x10" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "puVar8 = auStack_1c;" (assignment_expression "puVar8 = auStack_1c" identifier = identifier) ;) (while_statement "while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }" { (if_statement "if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }" { (expression_statement "*(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(iVar5 + 0x34)" * (cast_expression "(undefined4 *)(iVar5 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" else (compound_statement "{\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" { (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x14" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *(int *)(iVar5 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x30)" identifier = (pointer_expression "*(int *)(iVar5 + 0x30)" * (cast_expression "(int *)(iVar5 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x30)" ( (binary_expression "iVar5 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" if (parenthesized_expression "(*(int *)(iVar5 + 0x34) == 0)" ( (binary_expression "*(int *)(iVar5 + 0x34) == 0" (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          *(int *)(iVar5 + 0x34) = param_1;\n        }" { (expression_statement "*(int *)(iVar5 + 0x34) = param_1;" (assignment_expression "*(int *)(iVar5 + 0x34) = param_1" (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" else (compound_statement "{\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" { (expression_statement "*(int *)(iVar3 + 0x14) = param_1;" (assignment_expression "*(int *)(iVar3 + 0x14) = param_1" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(int *)(iVar5 + 0x30) = param_1;" (assignment_expression "*(int *)(iVar5 + 0x30) = param_1" (pointer_expression "*(int *)(iVar5 + 0x30)" * (cast_expression "(int *)(iVar5 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x30)" ( (binary_expression "iVar5 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);" (assignment_expression "*(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac)" (pointer_expression "*(pthread_mutex_t **)(puVar8 + -0x10)" * (cast_expression "(pthread_mutex_t **)(puVar8 + -0x10)" ( (type_descriptor "pthread_mutex_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) = (cast_expression "(pthread_mutex_t *)(iVar5 + 0xac)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x14) = 0x1579b;" (assignment_expression "*(undefined4 *)(puVar8 + -0x14) = 0x1579b" (pointer_expression "*(undefined4 *)(puVar8 + -0x14)" * (cast_expression "(undefined4 *)(puVar8 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));" (assignment_expression "iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10))" identifier = (call_expression "pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10))" identifier (argument_list "(*(pthread_mutex_t **)(puVar8 + -0x10))" ( (pointer_expression "*(pthread_mutex_t **)(puVar8 + -0x10)" * (cast_expression "(pthread_mutex_t **)(puVar8 + -0x10)" ( (type_descriptor "pthread_mutex_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";" (assignment_expression "*(char **)(puVar8 + -4) = "Failed to unlock mutex.\n"" (pointer_expression "*(char **)(puVar8 + -4)" * (cast_expression "(char **)(puVar8 + -4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -4)" ( (binary_expression "puVar8 + -4" identifier + number_literal) )))) = (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ")) ;) (expression_statement "*(undefined4 *)(puVar8 + -8) = 0xb47;" (assignment_expression "*(undefined4 *)(puVar8 + -8) = 0xb47" (pointer_expression "*(undefined4 *)(puVar8 + -8)" * (cast_expression "(undefined4 *)(puVar8 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -8)" ( (binary_expression "puVar8 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(char **)(puVar8 + -0xc) = "connection.c";" (assignment_expression "*(char **)(puVar8 + -0xc) = "connection.c"" (pointer_expression "*(char **)(puVar8 + -0xc)" * (cast_expression "(char **)(puVar8 + -0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0xc)" ( (binary_expression "puVar8 + -0xc" identifier + number_literal) )))) = (string_literal ""connection.c"" " string_content ")) ;) (expression_statement "puVar9 = puVar8 + -0x10;" (assignment_expression "puVar9 = puVar8 + -0x10" identifier = (binary_expression "puVar8 + -0x10" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x10) = DAT_00034068;" (assignment_expression "*(undefined4 *)(puVar8 + -0x10) = DAT_00034068" (pointer_expression "*(undefined4 *)(puVar8 + -0x10)" * (cast_expression "(undefined4 *)(puVar8 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x14) = 0x157c9;" (assignment_expression "*(undefined4 *)(puVar8 + -0x14) = 0x157c9" (pointer_expression "*(undefined4 *)(puVar8 + -0x14)" * (cast_expression "(undefined4 *)(puVar8 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*DAT_0003406c)();" (call_expression "(*DAT_0003406c)()" (parenthesized_expression "(*DAT_0003406c)" ( (pointer_expression "*DAT_0003406c" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = extraout_EDX;" (assignment_expression "uVar2 = extraout_EDX" identifier = identifier) ;) (labeled_statement "LAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;" statement_identifier : (expression_statement "*(undefined4 *)(iVar5 + 0x30) = uVar2;" (assignment_expression "*(undefined4 *)(iVar5 + 0x30) = uVar2" (pointer_expression "*(undefined4 *)(iVar5 + 0x30)" * (cast_expression "(undefined4 *)(iVar5 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x30)" ( (binary_expression "iVar5 + 0x30" identifier + number_literal) )))) = identifier) ;)) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (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) )) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (string_literal " string_content ") , LIT , (string_literal " string_content escape_sequence ") ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (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 (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression LIT < (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT)) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != (char_literal ' escape_sequence '))) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + IDENT)) )) (compound_statement { (expression_statement (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) ))))) ;) (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 != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content escape_sequence ") ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content escape_sequence ") ))) ;) })))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })))) }))))) })) })) (return_statement return ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (string_literal " string_content escape_sequence ")) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) })) (return_statement return ;) })))
(function_definition "void FUN_000156e0(int param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000156e0(int param_1)" (identifier "FUN_000156e0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 extraout_EDX;\n  uint uVar6;\n  undefined **ppuVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  undefined1 auStack_1c [8];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  ppuVar7 = &__DT_PLTGOT;\n  puVar9 = auStack_1c;\n  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined **ppuVar7;" (type_identifier "undefined") (pointer_declarator "**ppuVar7" (* "*") (pointer_declarator "*ppuVar7" (* "*") (identifier "ppuVar7"))) (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "undefined1 auStack_1c [8];" (type_identifier "undefined1") (array_declarator "auStack_1c [8]" (identifier "auStack_1c") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" (identifier "uStack_14") (= "=") (number_literal "0x156e9")) (; ";")) (expression_statement "ppuVar7 = &__DT_PLTGOT;" (assignment_expression "ppuVar7 = &__DT_PLTGOT" (identifier "ppuVar7") (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (expression_statement "puVar9 = auStack_1c;" (assignment_expression "puVar9 = auStack_1c" (identifier "puVar9") (= "=") (identifier "auStack_1c")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0'))" (( "(") (binary_expression "(*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0x98) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x98) != 0" (pointer_expression "*(int *)(param_1 + 0x98)" (* "*") (cast_expression "(int *)(param_1 + 0x98)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(param_1 + 0xf1) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xf1) == '\0'" (pointer_expression "*(char *)(param_1 + 0xf1)" (* "*") (cast_expression "(char *)(param_1 + 0xf1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf1)" (( "(") (binary_expression "param_1 + 0xf1" (identifier "param_1") (+ "+") (number_literal "0xf1")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar5 = *(int *)(param_1 + 0x18);\n    uVar2 = FUN_00021230();\n    *(undefined4 *)(param_1 + 0x94) = uVar2;\n    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar5 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x18)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_00021230();" (assignment_expression "uVar2 = FUN_00021230()" (identifier "uVar2") (= "=") (call_expression "FUN_00021230()" (identifier "FUN_00021230") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x94) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x94) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x94)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x94)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x94)" (( "(") (binary_expression "param_1 + 0x94" (identifier "param_1") (+ "+") (number_literal "0x94")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       ) {\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }" (if "if") (parenthesized_expression "(((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))\n       )" (( "(") (binary_expression "((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))" (parenthesized_expression "((*(byte *)(iVar5 + 0xf8) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(iVar5 + 0xf8) & 4) == 0" (parenthesized_expression "(*(byte *)(iVar5 + 0xf8) & 4)" (( "(") (binary_expression "*(byte *)(iVar5 + 0xf8) & 4" (pointer_expression "*(byte *)(iVar5 + 0xf8)" (* "*") (cast_expression "(byte *)(iVar5 + 0xf8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xf8)" (( "(") (binary_expression "iVar5 + 0xf8" (identifier "iVar5") (+ "+") (number_literal "0xf8")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))" (( "(") (binary_expression "*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0)" (pointer_expression "*(int *)(param_1 + 0x98)" (* "*") (cast_expression "(int *)(param_1 + 0x98)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")")))) (== "==") (pointer_expression "*(int *)(iVar5 + 0xf0)" (* "*") (cast_expression "(int *)(iVar5 + 0xf0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xf0)" (( "(") (binary_expression "iVar5 + 0xf0" (identifier "iVar5") (+ "+") (number_literal "0xf0")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));\n      if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }\n      uVar2 = *(undefined4 *)(param_1 + 0x10);\n      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;\n      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;\n      puVar8 = auStack_1c;\n      while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }\n    }" ({ "{") (expression_statement "iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));" (assignment_expression "iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac))" (identifier "iVar3") (= "=") (call_expression "pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac))" (identifier "pthread_mutex_lock") (argument_list "((pthread_mutex_t *)(iVar5 + 0xac))" (( "(") (cast_expression "(pthread_mutex_t *)(iVar5 + 0xac)" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xac)" (( "(") (binary_expression "iVar5 + 0xac" (identifier "iVar5") (+ "+") (number_literal "0xac")) () ")"))) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar10 = "connection.c";\n        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");\n        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }\n        return;\n      }" ({ "{") (expression_statement "pcVar10 = "connection.c";" (assignment_expression "pcVar10 = "connection.c"" (identifier "pcVar10") (= "=") (string_literal ""connection.c"" (" """) (string_content "connection.c") (" """))) (; ";")) (expression_statement "(*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");" (call_expression "(*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n")" (parenthesized_expression "(*DAT_0003406c)" (( "(") (pointer_expression "*DAT_0003406c" (* "*") (identifier "DAT_0003406c")) () ")")) (argument_list "(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n")" (( "(") (identifier "DAT_00034068") (, ",") (string_literal ""connection.c"" (" """) (string_content "connection.c") (" """)) (, ",") (number_literal "0xb3d") (, ",") (string_literal ""Failed to lock mutex.\n"" (" """) (string_content "Failed to lock mutex.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (if_statement "if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))\n        {\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }" (if "if") (parenthesized_expression "(((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))" (( "(") (binary_expression "((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&\n           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')))" (parenthesized_expression "((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0'))" (( "(") (binary_expression "(*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')" (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0x13)" (( "(") (binary_expression "*(int *)(pcVar10 + 0xb4) != 0x13" (pointer_expression "*(int *)(pcVar10 + 0xb4)" (* "*") (cast_expression "(int *)(pcVar10 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0xb4)" (( "(") (binary_expression "pcVar10 + 0xb4" (identifier "pcVar10") (+ "+") (number_literal "0xb4")) () ")")))) (!= "!=") (number_literal "0x13")) () ")")) (&& "&&") (parenthesized_expression "(pcVar10[0xf1] == '\0')" (( "(") (binary_expression "pcVar10[0xf1] == '\0'" (subscript_expression "pcVar10[0xf1]" (identifier "pcVar10") ([ "[") (number_literal "0xf1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')))" (( "(") (parenthesized_expression "(1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))" (( "(") (binary_expression "1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')" (binary_expression "1 < *(int *)(pcVar10 + 0xec) - 1U" (number_literal "1") (< "<") (binary_expression "*(int *)(pcVar10 + 0xec) - 1U" (pointer_expression "*(int *)(pcVar10 + 0xec)" (* "*") (cast_expression "(int *)(pcVar10 + 0xec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0xec)" (( "(") (binary_expression "pcVar10 + 0xec" (identifier "pcVar10") (+ "+") (number_literal "0xec")) () ")")))) (- "-") (number_literal "1U"))) (|| "||") (parenthesized_expression "(cVar1 = FUN_00028180(pcVar10), cVar1 != '\0')" (( "(") (comma_expression "cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'" (assignment_expression "cVar1 = FUN_00028180(pcVar10)" (identifier "cVar1") (= "=") (call_expression "FUN_00028180(pcVar10)" (identifier "FUN_00028180") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")")))) (, ",") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n          uVar4 = *(uint *)(pcVar10 + 100);\n          uVar6 = *(uint *)(pcVar10 + 0x60);\n          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }\n          if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }\n        }" ({ "{") (expression_statement "uVar4 = *(uint *)(pcVar10 + 100);" (assignment_expression "uVar4 = *(uint *)(pcVar10 + 100)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(pcVar10 + 100)" (* "*") (cast_expression "(uint *)(pcVar10 + 100)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 100)" (( "(") (binary_expression "pcVar10 + 100" (identifier "pcVar10") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (expression_statement "uVar6 = *(uint *)(pcVar10 + 0x60);" (assignment_expression "uVar6 = *(uint *)(pcVar10 + 0x60)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(pcVar10 + 0x60)" (* "*") (cast_expression "(uint *)(pcVar10 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x60)" (( "(") (binary_expression "pcVar10 + 0x60" (identifier "pcVar10") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (if_statement "if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }" (if "if") (parenthesized_expression "(uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4)" (( "(") (binary_expression "uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4" (identifier "uVar6") (< "<") (binary_expression "*(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4" (pointer_expression "*(int *)(*(int *)(pcVar10 + 0x18) + 0x80)" (* "*") (cast_expression "(int *)(*(int *)(pcVar10 + 0x18) + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar10 + 0x18) + 0x80)" (( "(") (binary_expression "*(int *)(pcVar10 + 0x18) + 0x80" (pointer_expression "*(int *)(pcVar10 + 0x18)" (* "*") (cast_expression "(int *)(pcVar10 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x18)" (( "(") (binary_expression "pcVar10 + 0x18" (identifier "pcVar10") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "0x80")) () ")")))) (+ "+") (identifier "uVar4"))) () ")")) (compound_statement "{\n            FUN_00013950(ppuVar7,param_1,iVar5);\n            uVar6 = *(uint *)(pcVar10 + 0x60);\n            uVar4 = *(uint *)(pcVar10 + 100);\n          }" ({ "{") (expression_statement "FUN_00013950(ppuVar7,param_1,iVar5);" (call_expression "FUN_00013950(ppuVar7,param_1,iVar5)" (identifier "FUN_00013950") (argument_list "(ppuVar7,param_1,iVar5)" (( "(") (identifier "ppuVar7") (, ",") (identifier "param_1") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "uVar6 = *(uint *)(pcVar10 + 0x60);" (assignment_expression "uVar6 = *(uint *)(pcVar10 + 0x60)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(pcVar10 + 0x60)" (* "*") (cast_expression "(uint *)(pcVar10 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x60)" (( "(") (binary_expression "pcVar10 + 0x60" (identifier "pcVar10") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(pcVar10 + 100);" (assignment_expression "uVar4 = *(uint *)(pcVar10 + 100)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(pcVar10 + 100)" (* "*") (cast_expression "(uint *)(pcVar10 + 100)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 100)" (( "(") (binary_expression "pcVar10 + 100" (identifier "pcVar10") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (uVar4 != uVar6) {\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }" (if "if") (parenthesized_expression "(uVar4 != uVar6)" (( "(") (binary_expression "uVar4 != uVar6" (identifier "uVar4") (!= "!=") (identifier "uVar6")) () ")")) (compound_statement "{\n            iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);\n            if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }\n          }" ({ "{") (expression_statement "iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);" (assignment_expression "iVar5 = (**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" (identifier "iVar5") (= "=") (call_expression "(**(code **)(pcVar10 + 0xd4))\n                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" (parenthesized_expression "(**(code **)(pcVar10 + 0xd4))" (( "(") (pointer_expression "**(code **)(pcVar10 + 0xd4)" (* "*") (pointer_expression "*(code **)(pcVar10 + 0xd4)" (* "*") (cast_expression "(code **)(pcVar10 + 0xd4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + 0xd4)" (( "(") (binary_expression "pcVar10 + 0xd4" (identifier "pcVar10") (+ "+") (number_literal "0xd4")) () ")"))))) () ")")) (argument_list "(pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4)" (( "(") (identifier "pcVar10") (, ",") (binary_expression "uVar4 + *(int *)(pcVar10 + 0x44)" (identifier "uVar4") (+ "+") (pointer_expression "*(int *)(pcVar10 + 0x44)" (* "*") (cast_expression "(int *)(pcVar10 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x44)" (( "(") (binary_expression "pcVar10 + 0x44" (identifier "pcVar10") (+ "+") (number_literal "0x44")) () ")"))))) (, ",") (binary_expression "uVar6 - uVar4" (identifier "uVar6") (- "-") (identifier "uVar4")) () ")")))) (; ";")) (if_statement "if (iVar5 < 0) {\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }\n            else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n              if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }\n            }" ({ "{") (if_statement "if (iVar5 != -0xc01) {\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }" (if "if") (parenthesized_expression "(iVar5 != -0xc01)" (( "(") (binary_expression "iVar5 != -0xc01" (identifier "iVar5") (!= "!=") (number_literal "-0xc01")) () ")")) (compound_statement "{\n                if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }\n                FUN_00015170(pcVar10,1);\n                return;\n              }" ({ "{") (if_statement "if (iVar5 == -0xc02) {\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }\n                else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" (if "if") (parenthesized_expression "(iVar5 == -0xc02)" (( "(") (binary_expression "iVar5 == -0xc02" (identifier "iVar5") (== "==") (number_literal "-0xc02")) () ")")) (compound_statement "{\n                  if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }\n                }" ({ "{") (if_statement "if (*(int *)(pcVar10 + 0xb4) != 0) {\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }" (if "if") (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0)" (( "(") (binary_expression "*(int *)(pcVar10 + 0xb4) != 0" (pointer_expression "*(int *)(pcVar10 + 0xb4)" (* "*") (cast_expression "(int *)(pcVar10 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0xb4)" (( "(") (binary_expression "pcVar10 + 0xb4" (identifier "pcVar10") (+ "+") (number_literal "0xb4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");\n                  }" ({ "{") (expression_statement "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n")" (identifier "FUN_00020aa0") (argument_list "(*(undefined4 *)(pcVar10 + 0x18),\n                                 "Socket disconnected while reading request.\n")" (( "(") (pointer_expression "*(undefined4 *)(pcVar10 + 0x18)" (* "*") (cast_expression "(undefined4 *)(pcVar10 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x18)" (( "(") (binary_expression "pcVar10 + 0x18" (identifier "pcVar10") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (string_literal ""Socket disconnected while reading request.\n"" (" """) (string_content "Socket disconnected while reading request.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" (else "else") (if_statement "if (*(int *)(pcVar10 + 0xb4) != 0) {\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" (if "if") (parenthesized_expression "(*(int *)(pcVar10 + 0xb4) != 0)" (( "(") (binary_expression "*(int *)(pcVar10 + 0xb4) != 0" (pointer_expression "*(int *)(pcVar10 + 0xb4)" (* "*") (cast_expression "(int *)(pcVar10 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0xb4)" (( "(") (binary_expression "pcVar10 + 0xb4" (identifier "pcVar10") (+ "+") (number_literal "0xb4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");\n                }" ({ "{") (expression_statement "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n")" (identifier "FUN_00020aa0") (argument_list "(*(undefined4 *)(pcVar10 + 0x18),\n                               "Connection socket is closed due to error when reading request.\n")" (( "(") (pointer_expression "*(undefined4 *)(pcVar10 + 0x18)" (* "*") (cast_expression "(undefined4 *)(pcVar10 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x18)" (( "(") (binary_expression "pcVar10 + 0x18" (identifier "pcVar10") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (string_literal ""Connection socket is closed due to error when reading request.\n"" (" """) (string_content "Connection socket is closed due to error when reading request.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (} "}"))))) (expression_statement "FUN_00015170(pcVar10,1);" (call_expression "FUN_00015170(pcVar10,1)" (identifier "FUN_00015170") (argument_list "(pcVar10,1)" (( "(") (identifier "pcVar10") (, ",") (number_literal "1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" (else "else") (if_statement "if (iVar5 == 0) {\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }\n            else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              pcVar10[0xa9] = '\x01';\n              FUN_00015170(pcVar10,5);\n            }" ({ "{") (expression_statement "pcVar10[0xa9] = '\x01';" (assignment_expression "pcVar10[0xa9] = '\x01'" (subscript_expression "pcVar10[0xa9]" (identifier "pcVar10") ([ "[") (number_literal "0xa9") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (expression_statement "FUN_00015170(pcVar10,5);" (call_expression "FUN_00015170(pcVar10,5)" (identifier "FUN_00015170") (argument_list "(pcVar10,5)" (( "(") (identifier "pcVar10") (, ",") (number_literal "5") () ")"))) (; ";")) (} "}")) (else_clause "else {\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" (else "else") (compound_statement "{\n              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;\n              FUN_000156e0(pcVar10);\n              if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }\n            }" ({ "{") (expression_statement "*(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;" (assignment_expression "*(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5" (pointer_expression "*(int *)(pcVar10 + 100)" (* "*") (cast_expression "(int *)(pcVar10 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 100)" (( "(") (binary_expression "pcVar10 + 100" (identifier "pcVar10") (+ "+") (number_literal "100")) () ")")))) (= "=") (binary_expression "*(int *)(pcVar10 + 100) + iVar5" (pointer_expression "*(int *)(pcVar10 + 100)" (* "*") (cast_expression "(int *)(pcVar10 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 100)" (( "(") (binary_expression "pcVar10 + 100" (identifier "pcVar10") (+ "+") (number_literal "100")) () ")")))) (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "FUN_000156e0(pcVar10);" (call_expression "FUN_000156e0(pcVar10)" (identifier "FUN_000156e0") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")"))) (; ";")) (if_statement "if (*(uint *)(pcVar10 + 0xb4) < 9) {\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }\n              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" (if "if") (parenthesized_expression "(*(uint *)(pcVar10 + 0xb4) < 9)" (( "(") (binary_expression "*(uint *)(pcVar10 + 0xb4) < 9" (pointer_expression "*(uint *)(pcVar10 + 0xb4)" (* "*") (cast_expression "(uint *)(pcVar10 + 0xb4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0xb4)" (( "(") (binary_expression "pcVar10 + 0xb4" (identifier "pcVar10") (+ "+") (number_literal "0xb4")) () ")")))) (< "<") (number_literal "9")) () ")")) (compound_statement "{\n                if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }\n              }" ({ "{") (if_statement "if (pcVar10[0xa9] != '\0') {\n                  FUN_00015170(pcVar10,4);\n                }" (if "if") (parenthesized_expression "(pcVar10[0xa9] != '\0')" (( "(") (binary_expression "pcVar10[0xa9] != '\0'" (subscript_expression "pcVar10[0xa9]" (identifier "pcVar10") ([ "[") (number_literal "0xa9") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                  FUN_00015170(pcVar10,4);\n                }" ({ "{") (expression_statement "FUN_00015170(pcVar10,4);" (call_expression "FUN_00015170(pcVar10,4)" (identifier "FUN_00015170") (argument_list "(pcVar10,4)" (( "(") (identifier "pcVar10") (, ",") (number_literal "4") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" (else "else") (if_statement "if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" (if "if") (parenthesized_expression "(1 < *(uint *)(pcVar10 + 0xb4) - 0x13)" (( "(") (binary_expression "1 < *(uint *)(pcVar10 + 0xb4) - 0x13" (number_literal "1") (< "<") (binary_expression "*(uint *)(pcVar10 + 0xb4) - 0x13" (pointer_expression "*(uint *)(pcVar10 + 0xb4)" (* "*") (cast_expression "(uint *)(pcVar10 + 0xb4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0xb4)" (( "(") (binary_expression "pcVar10 + 0xb4" (identifier "pcVar10") (+ "+") (number_literal "0xb4")) () ")")))) (- "-") (number_literal "0x13"))) () ")")) (compound_statement "{\n                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));\n              }" ({ "{") (expression_statement "FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));" (call_expression "FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100))" (identifier "FUN_00020f40") (argument_list "(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),\n                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100))" (( "(") (pointer_expression "*(undefined4 *)(pcVar10 + 0x28)" (* "*") (cast_expression "(undefined4 *)(pcVar10 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x28)" (( "(") (binary_expression "pcVar10 + 0x28" (identifier "pcVar10") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(pcVar10 + 0x44)" (* "*") (cast_expression "(undefined4 *)(pcVar10 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x44)" (( "(") (binary_expression "pcVar10 + 0x44" (identifier "pcVar10") (+ "+") (number_literal "0x44")) () ")")))) (, ",") (binary_expression "*(int *)(pcVar10 + 0x60) + 1" (pointer_expression "*(int *)(pcVar10 + 0x60)" (* "*") (cast_expression "(int *)(pcVar10 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x60)" (( "(") (binary_expression "pcVar10 + 0x60" (identifier "pcVar10") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "1")) (, ",") (pointer_expression "*(undefined4 *)(pcVar10 + 100)" (* "*") (cast_expression "(undefined4 *)(pcVar10 + 100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 100)" (( "(") (binary_expression "pcVar10 + 100" (identifier "pcVar10") (+ "+") (number_literal "100")) () ")")))) () ")"))) (; ";")) (} "}"))))) (} "}")))))) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) == 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000157d0;" (goto "goto") (statement_identifier "LAB_000157d0") (; ";"))) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) + 0x10" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar8 = auStack_1c;" (assignment_expression "puVar8 = auStack_1c" (identifier "puVar8") (= "=") (identifier "auStack_1c")) (; ";")) (while_statement "while( true ) {\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }\n        *(undefined4 *)(param_1 + 0x10) = 0;\n        *(undefined4 *)(param_1 + 0x14) = 0;\n        iVar3 = *(int *)(iVar5 + 0x30);\n        *(int *)(param_1 + 0x10) = iVar3;\n        if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }\n        *(int *)(iVar5 + 0x30) = param_1;\n        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);\n        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;\n        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));\n        if (iVar3 == 0) break;\n        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";\n        *(undefined4 *)(puVar8 + -8) = 0xb47;\n        *(char **)(puVar8 + -0xc) = "connection.c";\n        puVar9 = puVar8 + -0x10;\n        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;\n        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;\n        (*DAT_0003406c)();\n        uVar2 = extraout_EDX;\nLAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;\n        puVar8 = puVar9;\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x10) == 0) {\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }\n        else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);\n        }" ({ "{") (expression_statement "*(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(iVar5 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x34)" (( "(") (binary_expression "iVar5 + 0x34" (identifier "iVar5") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" (else "else") (compound_statement "{\n          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);\n        }" ({ "{") (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x14)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 0x14" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *(int *)(iVar5 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x30)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar5 + 0x30)" (* "*") (cast_expression "(int *)(iVar5 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x30)" (( "(") (binary_expression "iVar5 + 0x30" (identifier "iVar5") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (*(int *)(iVar5 + 0x34) == 0) {\n          *(int *)(iVar5 + 0x34) = param_1;\n        }\n        else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar5 + 0x34) == 0)" (( "(") (binary_expression "*(int *)(iVar5 + 0x34) == 0" (pointer_expression "*(int *)(iVar5 + 0x34)" (* "*") (cast_expression "(int *)(iVar5 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x34)" (( "(") (binary_expression "iVar5 + 0x34" (identifier "iVar5") (+ "+") (number_literal "0x34")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(int *)(iVar5 + 0x34) = param_1;\n        }" ({ "{") (expression_statement "*(int *)(iVar5 + 0x34) = param_1;" (assignment_expression "*(int *)(iVar5 + 0x34) = param_1" (pointer_expression "*(int *)(iVar5 + 0x34)" (* "*") (cast_expression "(int *)(iVar5 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x34)" (( "(") (binary_expression "iVar5 + 0x34" (identifier "iVar5") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}")) (else_clause "else {\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" (else "else") (compound_statement "{\n          *(int *)(iVar3 + 0x14) = param_1;\n        }" ({ "{") (expression_statement "*(int *)(iVar3 + 0x14) = param_1;" (assignment_expression "*(int *)(iVar3 + 0x14) = param_1" (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}")))) (expression_statement "*(int *)(iVar5 + 0x30) = param_1;" (assignment_expression "*(int *)(iVar5 + 0x30) = param_1" (pointer_expression "*(int *)(iVar5 + 0x30)" (* "*") (cast_expression "(int *)(iVar5 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x30)" (( "(") (binary_expression "iVar5 + 0x30" (identifier "iVar5") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);" (assignment_expression "*(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac)" (pointer_expression "*(pthread_mutex_t **)(puVar8 + -0x10)" (* "*") (cast_expression "(pthread_mutex_t **)(puVar8 + -0x10)" (( "(") (type_descriptor "pthread_mutex_t **" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -0x10)" (( "(") (binary_expression "puVar8 + -0x10" (identifier "puVar8") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (cast_expression "(pthread_mutex_t *)(iVar5 + 0xac)" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xac)" (( "(") (binary_expression "iVar5 + 0xac" (identifier "iVar5") (+ "+") (number_literal "0xac")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + -0x14) = 0x1579b;" (assignment_expression "*(undefined4 *)(puVar8 + -0x14) = 0x1579b" (pointer_expression "*(undefined4 *)(puVar8 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar8 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x14)" (( "(") (binary_expression "puVar8 + -0x14" (identifier "puVar8") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x1579b")) (; ";")) (expression_statement "iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));" (assignment_expression "iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10))" (identifier "iVar3") (= "=") (call_expression "pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10))" (identifier "pthread_mutex_unlock") (argument_list "(*(pthread_mutex_t **)(puVar8 + -0x10))" (( "(") (pointer_expression "*(pthread_mutex_t **)(puVar8 + -0x10)" (* "*") (cast_expression "(pthread_mutex_t **)(puVar8 + -0x10)" (( "(") (type_descriptor "pthread_mutex_t **" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -0x10)" (( "(") (binary_expression "puVar8 + -0x10" (identifier "puVar8") (+ "+") (number_literal "-0x10")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";" (assignment_expression "*(char **)(puVar8 + -4) = "Failed to unlock mutex.\n"" (pointer_expression "*(char **)(puVar8 + -4)" (* "*") (cast_expression "(char **)(puVar8 + -4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -4)" (( "(") (binary_expression "puVar8 + -4" (identifier "puVar8") (+ "+") (number_literal "-4")) () ")")))) (= "=") (string_literal ""Failed to unlock mutex.\n"" (" """) (string_content "Failed to unlock mutex.") (escape_sequence "\n") (" """))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + -8) = 0xb47;" (assignment_expression "*(undefined4 *)(puVar8 + -8) = 0xb47" (pointer_expression "*(undefined4 *)(puVar8 + -8)" (* "*") (cast_expression "(undefined4 *)(puVar8 + -8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -8)" (( "(") (binary_expression "puVar8 + -8" (identifier "puVar8") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0xb47")) (; ";")) (expression_statement "*(char **)(puVar8 + -0xc) = "connection.c";" (assignment_expression "*(char **)(puVar8 + -0xc) = "connection.c"" (pointer_expression "*(char **)(puVar8 + -0xc)" (* "*") (cast_expression "(char **)(puVar8 + -0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -0xc)" (( "(") (binary_expression "puVar8 + -0xc" (identifier "puVar8") (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (string_literal ""connection.c"" (" """) (string_content "connection.c") (" """))) (; ";")) (expression_statement "puVar9 = puVar8 + -0x10;" (assignment_expression "puVar9 = puVar8 + -0x10" (identifier "puVar9") (= "=") (binary_expression "puVar8 + -0x10" (identifier "puVar8") (+ "+") (number_literal "-0x10"))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + -0x10) = DAT_00034068;" (assignment_expression "*(undefined4 *)(puVar8 + -0x10) = DAT_00034068" (pointer_expression "*(undefined4 *)(puVar8 + -0x10)" (* "*") (cast_expression "(undefined4 *)(puVar8 + -0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x10)" (( "(") (binary_expression "puVar8 + -0x10" (identifier "puVar8") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "DAT_00034068")) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + -0x14) = 0x157c9;" (assignment_expression "*(undefined4 *)(puVar8 + -0x14) = 0x157c9" (pointer_expression "*(undefined4 *)(puVar8 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar8 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x14)" (( "(") (binary_expression "puVar8 + -0x14" (identifier "puVar8") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x157c9")) (; ";")) (expression_statement "(*DAT_0003406c)();" (call_expression "(*DAT_0003406c)()" (parenthesized_expression "(*DAT_0003406c)" (( "(") (pointer_expression "*DAT_0003406c" (* "*") (identifier "DAT_0003406c")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = extraout_EDX;" (assignment_expression "uVar2 = extraout_EDX" (identifier "uVar2") (= "=") (identifier "extraout_EDX")) (; ";")) (labeled_statement "LAB_000157d0:\n        *(undefined4 *)(iVar5 + 0x30) = uVar2;" (statement_identifier "LAB_000157d0") (: ":") (expression_statement "*(undefined4 *)(iVar5 + 0x30) = uVar2;" (assignment_expression "*(undefined4 *)(iVar5 + 0x30) = uVar2" (pointer_expression "*(undefined4 *)(iVar5 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x30)" (( "(") (binary_expression "iVar5 + 0x30" (identifier "iVar5") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar2")) (; ";"))) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* 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 */

void function_1(type_1 *connection)

{
  type_2 *pMVar1;
  type_3 _Var2;
  type_4 tVar3;
  int var_5;
  type_5 var_10;
  ssize_t var_12;
  type_1 *extraout_EDX;
  type_1 *pMVar7;
  type_5 var_9;
  type_6 *var_18;
  type_6 *puVar10;
  type_7 uStack_30;
  char *connection_00;
  type_6 auStack_1c [8];
  type_7 uStack_14;
  
  uStack_14 = 0x156e9;
  puVar10 = auStack_1c;
  if ((connection->connection_timeout != 0) && (connection->suspended == false)) {
    pMVar1 = connection->daemon;
    tVar3 = var_1();
    connection->last_activity = tVar3;
    if (((pMVar1->options & var_2) == var_3) &&
       (connection->connection_timeout == pMVar1->connection_timeout)) {
      var_5 = var_4((type_8 *)&pMVar1->cleanup_connection_mutex);
      if (var_5 != 0) {
        connection_00 = "connection.c";
        (*mhd_panic)(mhd_panic_cls,"connection.c",0xb3d,"Failed to lock mutex.\n");
        if (((((type_1 *)connection_00)->state != var_6) &&
            (((type_1 *)connection_00)->suspended == false)) &&
           ((1 < ((type_1 *)connection_00)->tls_state - var_7 ||
            (_Var2 = var_8((type_1 *)connection_00), _Var2)))) {
          var_10 = ((type_1 *)connection_00)->read_buffer_offset;
          var_9 = ((type_1 *)connection_00)->read_buffer_size;
          if (var_9 < ((type_1 *)connection_00)->daemon->pool_increment + var_10) {
            var_11((type_1 *)connection_00);
            var_9 = ((type_1 *)connection_00)->read_buffer_size;
            var_10 = ((type_1 *)connection_00)->read_buffer_offset;
          }
          if (var_10 != var_9) {
            var_12 = (*((type_1 *)connection_00)->recv_cls)
                              ((type_1 *)connection_00,
                               ((type_1 *)connection_00)->read_buffer + var_10,var_9 - var_10)
            ;
            if (var_12 < 0) {
              if (var_12 != -0xc01) {
                if (var_12 == -0xc02) {
                  if (((type_1 *)connection_00)->state != var_13) {
                    var_14(((type_1 *)connection_00)->daemon,
                             "Socket disconnected while reading request.\n");
                  }
                }
                else if (((type_1 *)connection_00)->state != var_13) {
                  var_14(((type_1 *)connection_00)->daemon,
                           "Connection socket is closed due to error when reading request.\n");
                }
                var_15
                          ((type_1 *)connection_00,MHD_REQUEST_TERMINATED_WITH_ERROR);
                return;
              }
            }
            else if (var_12 == 0) {
              ((type_1 *)connection_00)->read_closed = true;
              var_15
                        ((type_1 *)connection_00,MHD_REQUEST_TERMINATED_CLIENT_ABORT);
            }
            else {
              ((type_1 *)connection_00)->read_buffer_offset =
                   ((type_1 *)connection_00)->read_buffer_offset + var_12;
              function_1((type_1 *)connection_00);
              if (((type_1 *)connection_00)->state < var_16) {
                if (((type_1 *)connection_00)->read_closed != false) {
                  var_15
                            ((type_1 *)connection_00,MHD_REQUEST_TERMINATED_READ_ERROR);
                }
              }
              else if (1 < ((type_1 *)connection_00)->state - var_6) {
                var_17(((type_1 *)connection_00)->pool,
                                    ((type_1 *)connection_00)->read_buffer,
                                    ((type_1 *)connection_00)->read_buffer_size + 1,
                                    ((type_1 *)connection_00)->read_buffer_offset);
              }
            }
          }
        }
        return;
      }
      pMVar7 = connection->nextX;
      if (connection->prevX == (type_1 *)0x0) goto LAB_000157d0;
      connection->prevX->nextX = pMVar7;
      var_18 = auStack_1c;
      while( true ) {
        if (connection->nextX == (type_1 *)0x0) {
          pMVar1->normal_timeout_tail = connection->prevX;
        }
        else {
          connection->nextX->prevX = connection->prevX;
        }
        connection->nextX = (type_1 *)0x0;
        connection->prevX = (type_1 *)0x0;
        pMVar7 = pMVar1->normal_timeout_head;
        connection->nextX = pMVar7;
        if (pMVar1->normal_timeout_tail == (type_1 *)0x0) {
          pMVar1->normal_timeout_tail = connection;
        }
        else {
          pMVar7->prevX = connection;
        }
        pMVar1->normal_timeout_head = connection;
        *(type_9 **)(var_18 + -0x10) = &pMVar1->cleanup_connection_mutex;
        *(type_7 *)(var_18 + -0x14) = 0x1579b;
        var_5 = var_19(*(type_8 **)(var_18 + -0x10));
        if (var_5 == 0) break;
        *(char **)(var_18 + -4) = "Failed to unlock mutex.\n";
        *(type_7 *)(var_18 + -8) = 0xb47;
        *(char **)(var_18 + -0xc) = "connection.c";
        puVar10 = var_18 + -0x10;
        *(void **)(var_18 + -0x10) = mhd_panic_cls;
        *(type_7 *)(var_18 + -0x14) = 0x157c9;
        (*mhd_panic)(*(void **)(var_18 + -0x10),*(char **)(var_18 + -0xc),*(type_5 *)(var_18 + -8),
                     *(char **)(var_18 + -4));
        pMVar7 = extraout_EDX;
LAB_000157d0:
        pMVar1->normal_timeout_head = pMVar7;
        var_18 = puVar10;
      }
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (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: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal) (string_literal (string_content) (escape_sequence))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (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 (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (identifier)))) consequence: (compound_statement (expression_statement (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: (type_identifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (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))))) (string_literal (string_content) (escape_sequence)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (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))))) (string_literal (string_content) (escape_sequence))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (return_statement)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_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: (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: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (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))))) right: (number_literal)))) consequence: (compound_statement (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))))) (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))))) (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)) (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))))))))))))))))))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (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))))) 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: (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_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: (identifier)))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (string_literal (string_content) (escape_sequence)))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (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))))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))))) (return_statement))))

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

void MASKED(int param_1)

{
  char cVar1;
  undefined4 uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  undefined4 extraout_EDX;
  uint uVar6;
  undefined **ppuVar7;
  undefined1 *puVar8;
  undefined1 *puVar9;
  char *pcVar10;
  undefined1 auStack_1c [8];
  undefined4 uStack_14;
  
  uStack_14 = 0x156e9;
  ppuVar7 = &__DT_PLTGOT;
  puVar9 = auStack_1c;
  if ((*(int *)(param_1 + 0x98) != 0) && (*(char *)(param_1 + 0xf1) == '\0')) {
    iVar5 = *(int *)(param_1 + 0x18);
    uVar2 = FUN_00021230();
    *(undefined4 *)(param_1 + 0x94) = uVar2;
    if (((*(byte *)(iVar5 + 0xf8) & 4) == 0) && (*(int *)(param_1 + 0x98) == *(int *)(iVar5 + 0xf0))
       ) {
      iVar3 = pthread_mutex_lock((pthread_mutex_t *)(iVar5 + 0xac));
      if (iVar3 != 0) {
        pcVar10 = "connection.c";
        (*DAT_0003406c)(DAT_00034068,"connection.c",0xb3d,"Failed to lock mutex.\n");
        if (((*(int *)(pcVar10 + 0xb4) != 0x13) && (pcVar10[0xf1] == '\0')) &&
           ((1 < *(int *)(pcVar10 + 0xec) - 1U || (cVar1 = FUN_00028180(pcVar10), cVar1 != '\0'))))
        {
          uVar4 = *(uint *)(pcVar10 + 100);
          uVar6 = *(uint *)(pcVar10 + 0x60);
          if (uVar6 < *(int *)(*(int *)(pcVar10 + 0x18) + 0x80) + uVar4) {
            FUN_00013950(ppuVar7,param_1,iVar5);
            uVar6 = *(uint *)(pcVar10 + 0x60);
            uVar4 = *(uint *)(pcVar10 + 100);
          }
          if (uVar4 != uVar6) {
            iVar5 = (**(code **)(pcVar10 + 0xd4))
                              (pcVar10,uVar4 + *(int *)(pcVar10 + 0x44),uVar6 - uVar4);
            if (iVar5 < 0) {
              if (iVar5 != -0xc01) {
                if (iVar5 == -0xc02) {
                  if (*(int *)(pcVar10 + 0xb4) != 0) {
                    FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),
                                 "Socket disconnected while reading request.\n");
                  }
                }
                else if (*(int *)(pcVar10 + 0xb4) != 0) {
                  FUN_00020aa0(*(undefined4 *)(pcVar10 + 0x18),
                               "Connection socket is closed due to error when reading request.\n");
                }
                FUN_00015170(pcVar10,1);
                return;
              }
            }
            else if (iVar5 == 0) {
              pcVar10[0xa9] = '\x01';
              FUN_00015170(pcVar10,5);
            }
            else {
              *(int *)(pcVar10 + 100) = *(int *)(pcVar10 + 100) + iVar5;
              MASKED(pcVar10);
              if (*(uint *)(pcVar10 + 0xb4) < 9) {
                if (pcVar10[0xa9] != '\0') {
                  FUN_00015170(pcVar10,4);
                }
              }
              else if (1 < *(uint *)(pcVar10 + 0xb4) - 0x13) {
                FUN_00020f40(*(undefined4 *)(pcVar10 + 0x28),*(undefined4 *)(pcVar10 + 0x44),
                             *(int *)(pcVar10 + 0x60) + 1,*(undefined4 *)(pcVar10 + 100));
              }
            }
          }
        }
        return;
      }
      uVar2 = *(undefined4 *)(param_1 + 0x10);
      if (*(int *)(param_1 + 0x14) == 0) goto LAB_000157d0;
      *(undefined4 *)(*(int *)(param_1 + 0x14) + 0x10) = uVar2;
      puVar8 = auStack_1c;
      while( true ) {
        if (*(int *)(param_1 + 0x10) == 0) {
          *(undefined4 *)(iVar5 + 0x34) = *(undefined4 *)(param_1 + 0x14);
        }
        else {
          *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x14) = *(undefined4 *)(param_1 + 0x14);
        }
        *(undefined4 *)(param_1 + 0x10) = 0;
        *(undefined4 *)(param_1 + 0x14) = 0;
        iVar3 = *(int *)(iVar5 + 0x30);
        *(int *)(param_1 + 0x10) = iVar3;
        if (*(int *)(iVar5 + 0x34) == 0) {
          *(int *)(iVar5 + 0x34) = param_1;
        }
        else {
          *(int *)(iVar3 + 0x14) = param_1;
        }
        *(int *)(iVar5 + 0x30) = param_1;
        *(pthread_mutex_t **)(puVar8 + -0x10) = (pthread_mutex_t *)(iVar5 + 0xac);
        *(undefined4 *)(puVar8 + -0x14) = 0x1579b;
        iVar3 = pthread_mutex_unlock(*(pthread_mutex_t **)(puVar8 + -0x10));
        if (iVar3 == 0) break;
        *(char **)(puVar8 + -4) = "Failed to unlock mutex.\n";
        *(undefined4 *)(puVar8 + -8) = 0xb47;
        *(char **)(puVar8 + -0xc) = "connection.c";
        puVar9 = puVar8 + -0x10;
        *(undefined4 *)(puVar8 + -0x10) = DAT_00034068;
        *(undefined4 *)(puVar8 + -0x14) = 0x157c9;
        (*DAT_0003406c)();
        uVar2 = extraout_EDX;
LAB_000157d0:
        *(undefined4 *)(iVar5 + 0x30) = uVar2;
        puVar8 = puVar9;
      }
    }
  }
  return;
}

