
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int __regparm3 try_connect(Actual_Socket_conflict sock)

{
  Plug pppVar1;
  plug_function_table *ppVar2;
  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var3;
  undefined4 uVar4;
  undefined4 uVar5;
  anon_enum_32 aVar6;
  undefined *puVar7;
  int iVar8;
  int iVar9;
  char *pcVar10;
  int *piVar11;
  size_t sVar12;
  int iVar13;
  int iVar14;
  ushort uVar15;
  addrinfo *paVar16;
  ushort uVar17;
  SockAddr pSVar18;
  socklen_t __len;
  SockAddr_tag *pSVar19;
  sockaddr_union *psVar20;
  sockaddr_union *__addr;
  int in_GS_OFFSET;
  byte bVar21;
  int local_4e4;
  int b;
  sockaddr_union u;
  SockAddr_tag thisaddr;
  int local_230 [3];
  addrinfo *local_224;
  int local_20;
  undefined4 uStack_14;
  
  bVar21 = 0;
  uStack_14 = 0xbafab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  del234(sktree,sock);
  if (-1 < sock->s) {
    close(sock->s);
  }
  pSVar18 = sock->addr;
  aVar6 = pSVar18->superfamily;
  paVar16 = pSVar18->ais;
  piVar11 = local_230;
  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {
    *piVar11 = pSVar18->refcount;
    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);
    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;
  }
  if (aVar6 == ADDRTYPE_IPV6) {
    paVar16 = (sock->step).ai;
  }
  pppVar1 = sock->plug;
  local_230[0] = 1;
  piVar11 = local_230;
  pSVar19 = &thisaddr;
  local_224 = paVar16;
  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {
    pSVar19->refcount = *piVar11;
    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;
    pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4);
  }
  (*(*pppVar1)->log)(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0);
  aVar6 = sock->addr->superfamily;
  if (aVar6 == ADDRTYPE_UNSPEC) {
LAB_000bb59f:
                    /* WARNING: Subroutine does not return */
    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (aVar6 == ABOUT_TO) {
    iVar13 = 1;
  }
  else {
    paVar16 = (sock->step).ai;
    if (paVar16 == (addrinfo *)0x0) {
      iVar13 = 2;
    }
    else {
      iVar13 = paVar16->ai_family;
      if (iVar13 == 0) goto LAB_000bb59f;
    }
  }
  iVar8 = socket(iVar13,1,0);
  sock->s = iVar8;
  if (iVar8 < 0) {
    piVar11 = __errno_location();
    local_4e4 = *piVar11;
LAB_000bb25b:
    add234(sktree,sock);
    if (local_4e4 == 0) goto LAB_000bb275;
  }
  else {
    cloexec(iVar8);
    if (sock->oobinline != 0) {
      b = 1;
      iVar9 = setsockopt(iVar8,1,10,&b,4);
      if (-1 < iVar9) goto LAB_000bb0b8;
LAB_000bb37a:
      piVar11 = __errno_location();
      local_4e4 = *piVar11;
      close(iVar8);
      goto LAB_000bb25b;
    }
LAB_000bb0b8:
    if (sock->nodelay == 0) {
      iVar9 = sock->keepalive;
    }
    else {
      b = 1;
      iVar9 = setsockopt(iVar8,6,1,&b,4);
      if (iVar9 < 0) goto LAB_000bb37a;
      iVar9 = sock->keepalive;
    }
    if (iVar9 != 0) {
      b = 1;
      iVar9 = setsockopt(iVar8,1,9,&b,4);
      if (iVar9 < 0) goto LAB_000bb37a;
    }
    puVar7 = PTR_in6addr_any_0013afc0;
    iVar9 = sock->privport;
    __addr = &u;
    psVar20 = __addr;
    for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {
      *(undefined4 *)psVar20 = 0;
      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);
    }
    uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;
    if (iVar13 == 1) {
      if (sock->port != 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");
      }
      pcVar10 = sock->addr->hostname;
      sVar12 = strlen(pcVar10);
      if (0x6b < sVar12) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,
                      "try_connect");
      }
      u.storage.ss_family = 1;
      __len = 0x6e;
      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);
LAB_000bb195:
      nonblock(iVar8);
      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);
      if (iVar13 < 0) {
        piVar11 = __errno_location();
        local_4e4 = *piVar11;
        if (local_4e4 != 0x73) goto LAB_000bb25b;
      }
      else {
        sock->connected = 1;
        sock->writable = 1;
      }
      iVar13 = 0;
      if (sock->pending_error == 0) {
        if (sock->listener == 0) {
          if (sock->connected == 0) {
            iVar8 = 2;
            iVar13 = 2;
          }
          else {
            iVar8 = 2;
            iVar13 = 0;
            if ((sock->frozen == 0) &&
               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {
              iVar13 = 5;
            }
          }
          iVar9 = bufchain_size(&sock->output_data);
          if (iVar9 != 0) {
            iVar13 = iVar8;
          }
        }
        else {
          iVar13 = 1;
        }
      }
      uxsel_set(sock->s,iVar13,net_select_result);
      add234(sktree,sock);
      local_4e4 = 0;
      goto LAB_000bb275;
    }
    if (iVar13 != 10) {
      uVar17 = uVar15;
      if (iVar13 != 2) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      while( true ) {
        uVar17 = uVar17 - 1;
        u.sin6.sin6_flowinfo = 0;
        u.storage.ss_family = 2;
        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;
        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);
        if (-1 < iVar13) break;
        piVar11 = __errno_location();
        local_4e4 = *piVar11;
        if (local_4e4 != 0x62) {
          if (local_4e4 != 0) goto LAB_000bb2a8;
          break;
        }
        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;
        uVar15 = uVar15 - 1;
      }
LAB_000bb180:
      paVar16 = (sock->step).ai;
      uVar15 = (ushort)sock->port;
      __addr = (sockaddr_union *)paVar16->ai_addr;
      __len = paVar16->ai_addrlen;
      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;
      goto LAB_000bb195;
    }
    iVar9 = (int)(short)uVar15;
    iVar13 = iVar9 + -1;
    uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);
    uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);
    while( true ) {
      u.storage.ss_family = 10;
      u._8_4_ = *(undefined4 *)puVar7;
      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);
      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;
      u._12_4_ = uVar4;
      u._16_4_ = uVar5;
      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);
      if (-1 < iVar14) goto LAB_000bb180;
      piVar11 = __errno_location();
      local_4e4 = *piVar11;
      if (local_4e4 != 0x62) break;
      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))
      goto LAB_000bb2a8;
    }
    if (local_4e4 == 0) goto LAB_000bb180;
LAB_000bb2a8:
    add234(sktree,sock);
  }
  pSVar18 = sock->addr;
  aVar6 = pSVar18->superfamily;
  local_224 = pSVar18->ais;
  piVar11 = local_230;
  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {
    *piVar11 = pSVar18->refcount;
    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);
    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;
  }
  if (aVar6 == ADDRTYPE_IPV6) {
    local_224 = (sock->step).ai;
  }
  local_230[0] = 1;
  ppVar2 = *sock->plug;
  piVar11 = local_230;
  pSVar18 = &thisaddr;
  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {
    pSVar18->refcount = *piVar11;
    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;
    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);
  }
  p_Var3 = ppVar2->log;
  pcVar10 = strerror(local_4e4);
  (*p_Var3)(sock->plug,1,&thisaddr,sock->port,pcVar10,local_4e4);
LAB_000bb275:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_4e4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int __regparm3 FUN_000bafa0(int param_1)

{
  code *pcVar1;
  undefined4 uVar2;
  undefined *puVar3;
  char *pcVar4;
  int *piVar5;
  size_t sVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  ushort uVar10;
  undefined4 uVar11;
  char cVar12;
  ushort uVar13;
  undefined4 *puVar14;
  undefined4 *puVar15;
  socklen_t __len;
  char cVar16;
  sockaddr *psVar17;
  sockaddr *__addr;
  undefined4 *puVar18;
  int iVar19;
  int in_GS_OFFSET;
  byte bVar20;
  int local_4e4;
  undefined4 local_4c4;
  sockaddr local_4c0;
  undefined4 local_4b0;
  undefined4 local_4ac;
  undefined4 local_440 [132];
  undefined4 local_230 [3];
  undefined4 local_224;
  int local_20;
  undefined4 uStack_14;
  
  bVar20 = 0;
  uStack_14 = 0xbafab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0009ef40(DAT_0013ba0c,param_1);
  if (-1 < *(int *)(param_1 + 8)) {
    close(*(int *)(param_1 + 8));
  }
  puVar14 = *(undefined4 **)(param_1 + 0x5c);
  iVar8 = puVar14[2];
  uVar11 = puVar14[3];
  puVar15 = local_230;
  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {
    *puVar15 = *puVar14;
    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
  }
  if (iVar8 == 2) {
    uVar11 = *(undefined4 *)(param_1 + 0x60);
  }
  puVar14 = *(undefined4 **)(param_1 + 0xc);
  local_230[0] = 1;
  puVar15 = local_230;
  puVar18 = local_440;
  local_224 = uVar11;
  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {
    *puVar18 = *puVar15;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;
  }
  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);
  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);
  if (iVar8 == 0) {
LAB_000bb59f:
                    /* WARNING: Subroutine does not return */
    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (iVar8 == 1) {
    iVar8 = 1;
  }
  else if (*(int *)(param_1 + 0x60) == 0) {
    iVar8 = 2;
  }
  else {
    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);
    if (iVar8 == 0) goto LAB_000bb59f;
  }
  iVar7 = socket(iVar8,1,0);
  *(int *)(param_1 + 8) = iVar7;
  if (iVar7 < 0) {
    piVar5 = __errno_location();
    local_4e4 = *piVar5;
LAB_000bb25b:
    FUN_0009eab0(DAT_0013ba0c,param_1);
    if (local_4e4 == 0) goto LAB_000bb275;
  }
  else {
    FUN_000ba410(iVar7);
    if (*(int *)(param_1 + 0x38) != 0) {
      local_4c4 = 1;
      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);
      if (-1 < iVar19) goto LAB_000bb0b8;
LAB_000bb37a:
      piVar5 = __errno_location();
      local_4e4 = *piVar5;
      close(iVar7);
      goto LAB_000bb25b;
    }
LAB_000bb0b8:
    if (*(int *)(param_1 + 0x4c) == 0) {
      iVar19 = *(int *)(param_1 + 0x50);
    }
    else {
      local_4c4 = 1;
      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);
      if (iVar19 < 0) goto LAB_000bb37a;
      iVar19 = *(int *)(param_1 + 0x50);
    }
    if (iVar19 != 0) {
      local_4c4 = 1;
      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);
      if (iVar19 < 0) goto LAB_000bb37a;
    }
    puVar3 = PTR_in6addr_any_0013afc0;
    iVar19 = *(int *)(param_1 + 0x54);
    __addr = &local_4c0;
    psVar17 = __addr;
    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {
      psVar17->sa_family = 0;
      psVar17->sa_data[0] = '\0';
      psVar17->sa_data[1] = '\0';
      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);
    }
    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;
    if (iVar8 == 1) {
      if (*(int *)(param_1 + 0x58) != 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");
      }
      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);
      sVar6 = strlen(pcVar4);
      if (0x6b < sVar6) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,
                      "try_connect");
      }
      local_4c0.sa_family = 1;
      __len = 0x6e;
      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);
LAB_000bb195:
      FUN_000ba530(iVar7);
      iVar8 = connect(iVar7,__addr,__len);
      if (iVar8 < 0) {
        piVar5 = __errno_location();
        local_4e4 = *piVar5;
        if (local_4e4 != 0x73) goto LAB_000bb25b;
      }
      else {
        *(undefined4 *)(param_1 + 0x1c) = 1;
        *(undefined4 *)(param_1 + 0x20) = 1;
      }
      cVar12 = '\0';
      if (*(int *)(param_1 + 0x44) == 0) {
        if (*(int *)(param_1 + 0x48) == 0) {
          if (*(int *)(param_1 + 0x1c) == 0) {
            cVar16 = '\x02';
            cVar12 = '\x02';
          }
          else {
            cVar16 = '\x02';
            cVar12 = '\0';
            if ((*(int *)(param_1 + 0x24) == 0) &&
               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)
               ) {
              cVar12 = '\x05';
            }
          }
          iVar8 = FUN_000326a0(param_1 + 0x10);
          if (iVar8 != 0) {
            cVar12 = cVar16;
          }
        }
        else {
          cVar12 = '\x01';
        }
      }
      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);
      FUN_0009eab0(DAT_0013ba0c,param_1);
      local_4e4 = 0;
      goto LAB_000bb275;
    }
    if (iVar8 != 10) {
      uVar13 = uVar10;
      if (iVar8 != 2) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      while( true ) {
        uVar13 = uVar13 - 1;
        local_4c0.sa_data[2] = '\0';
        local_4c0.sa_data[3] = '\0';
        local_4c0.sa_data[4] = '\0';
        local_4c0.sa_data[5] = '\0';
        local_4c0.sa_family = 2;
        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;
        iVar8 = bind(iVar7,__addr,0x10);
        if (-1 < iVar8) break;
        piVar5 = __errno_location();
        local_4e4 = *piVar5;
        if (local_4e4 != 0x62) {
          if (local_4e4 != 0) goto LAB_000bb2a8;
          break;
        }
        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;
        uVar10 = uVar10 - 1;
      }
LAB_000bb180:
      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);
      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);
      *(ushort *)__addr->sa_data =
           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;
      goto LAB_000bb195;
    }
    iVar19 = (int)(short)uVar10;
    iVar8 = iVar19 + -1;
    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);
    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);
    while( true ) {
      local_4c0.sa_family = 10;
      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;
      local_4ac = *(undefined4 *)(puVar3 + 0xc);
      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;
      local_4c0.sa_data._10_4_ = uVar11;
      local_4b0 = uVar2;
      iVar9 = bind(iVar7,__addr,0x1c);
      if (-1 < iVar9) goto LAB_000bb180;
      piVar5 = __errno_location();
      local_4e4 = *piVar5;
      if (local_4e4 != 0x62) break;
      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))
      goto LAB_000bb2a8;
    }
    if (local_4e4 == 0) goto LAB_000bb180;
LAB_000bb2a8:
    FUN_0009eab0(DAT_0013ba0c,param_1);
  }
  puVar14 = *(undefined4 **)(param_1 + 0x5c);
  iVar8 = puVar14[2];
  local_224 = puVar14[3];
  puVar15 = local_230;
  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {
    *puVar15 = *puVar14;
    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
  }
  if (iVar8 == 2) {
    local_224 = *(undefined4 *)(param_1 + 0x60);
  }
  local_230[0] = 1;
  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);
  puVar15 = local_230;
  puVar18 = local_440;
  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {
    *puVar18 = *puVar15;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;
  }
  pcVar1 = (code *)*puVar14;
  pcVar4 = strerror(local_4e4);
  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,
            local_4e4);
LAB_000bb275:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_4e4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0x7f7a5
SUB ESP,0x4e4
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x4d4],EAX
XOR EAX,EAX
PUSH EBP
PUSH dword ptr [EBX + 0x12bc]
CALL 0x0009ef40
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
TEST EAX,EAX
JS 0x000bafe8
SUB ESP,0xc
PUSH EAX
CALL 0x0001bc40
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x5c]
LEA EDI,[ESP + 0x2bc]
MOV ECX,0x84
MOV dword ptr [ESP + 0xc],EDI
CMP dword ptr [EAX + 0x8],0x2
MOV ESI,EAX
MOV EDX,dword ptr [EAX + 0xc]
MOVSD.REP ES:EDI,ESI
JNZ 0x000bb00b
MOV EDX,dword ptr [EBP + 0x60]
MOV EAX,dword ptr [EBP + 0xc]
MOV dword ptr [ESP + 0x2c8],EDX
LEA EDI,[ESP + 0xac]
SUB ESP,0x8
MOV dword ptr [ESP + 0x2c4],0x1
MOV ESI,dword ptr [ESP + 0x14]
MOV ECX,0x84
MOVSD.REP ES:EDI,ESI
MOV EDX,dword ptr [EAX]
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBP + 0x58]
LEA ECX,[ESP + 0xc0]
MOV dword ptr [ESP + 0x24],ECX
PUSH ECX
PUSH 0x0
PUSH EAX
CALL dword ptr [EDX]
MOV EAX,dword ptr [EBP + 0x5c]
MOV EAX,dword ptr [EAX + 0x8]
ADD ESP,0x20
TEST EAX,EAX
JZ 0x000bb59f
CMP EAX,0x1
JZ 0x000bb340
MOV EAX,dword ptr [EBP + 0x60]
TEST EAX,EAX
JZ 0x000bb330
MOV ESI,dword ptr [EAX + 0x4]
TEST ESI,ESI
JZ 0x000bb59f
SUB ESP,0x4
PUSH 0x0
PUSH 0x1
PUSH ESI
CALL 0x0001a210
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
MOV dword ptr [EBP + 0x8],EAX
TEST EAX,EAX
JS 0x000bb250
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x000ba410
MOV EAX,dword ptr [EBP + 0x38]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000bb350
MOV EAX,dword ptr [EBP + 0x4c]
TEST EAX,EAX
JNZ 0x000bb3a0
MOV EAX,dword ptr [EBP + 0x50]
TEST EAX,EAX
JNZ 0x000bb3d1
CMP dword ptr [EBP + 0x54],0x1
LEA EDI,[ESP + 0x2c]
MOV ECX,0x20
SBB EDX,EDX
XOR EAX,EAX
MOV dword ptr [ESP + 0x8],EDI
STOSD.REP ES:EDI
NOT EDX
AND DX,0x3ff
CMP ESI,0x1
JZ 0x000bb420
CMP ESI,0xa
JZ 0x000bb488
CMP ESI,0x2
JNZ 0x000bb580
MOV dword ptr [ESP + 0x14],EBP
MOVSX EDI,DX
LEA ESI,[EDX + -0x1]
MOV EBP,dword ptr [ESP + 0x8]
JMP 0x000bb149
CALL 0x0001ac30
MOV EAX,dword ptr [EAX]
CMP EAX,0x62
JNZ 0x000bb530
CMP SI,-0x1
JZ 0x000bb2a0
TEST SI,SI
JZ 0x000bb2a0
SUB EDI,0x1
SUB ESI,0x1
MOV EAX,0x2
MOV dword ptr [ESP + 0x30],0x0
SUB ESP,0x4
MOV word ptr [ESP + 0x30],AX
MOV EAX,EDI
ROL AX,0x8
MOV word ptr [ESP + 0x32],AX
PUSH 0x10
PUSH EBP
PUSH dword ptr [ESP + 0x10]
CALL 0x0001c120
ADD ESP,0x10
TEST EAX,EAX
JS 0x000bb120
MOV EBP,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EBP + 0x60]
MOVZX EAX,word ptr [EBP + 0x58]
MOV EDI,dword ptr [EDX + 0x14]
ROL AX,0x8
MOV ESI,dword ptr [EDX + 0x10]
MOV word ptr [EDI + 0x2],AX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x000ba530
ADD ESP,0xc
PUSH ESI
PUSH EDI
PUSH dword ptr [ESP + 0x10]
CALL 0x0001a5d0
ADD ESP,0x10
TEST EAX,EAX
JS 0x000bb400
MOV dword ptr [EBP + 0x1c],0x1
MOV dword ptr [EBP + 0x20],0x1
MOV EAX,dword ptr [EBP + 0x44]
XOR ESI,ESI
TEST EAX,EAX
JNZ 0x000bb220
MOV ESI,dword ptr [EBP + 0x48]
TEST ESI,ESI
JNZ 0x000bb478
MOV EAX,dword ptr [EBP + 0x1c]
TEST EAX,EAX
JZ 0x000bb548
MOV EAX,dword ptr [EBP + 0x24]
MOV EDI,0x2
TEST EAX,EAX
JNZ 0x000bb20c
CMP dword ptr [EBP + 0x40],0x1
MOV EAX,dword ptr [EBP + 0x40]
SBB EDI,EDI
AND EDI,0x5
ADD EDI,0x2
TEST EAX,EAX
MOV EAX,0x5
CMOVZ ESI,EAX
SUB ESP,0xc
LEA EAX,[EBP + 0x10]
PUSH EAX
CALL 0x000326a0
ADD ESP,0x10
TEST EAX,EAX
CMOVNZ ESI,EDI
SUB ESP,0x4
LEA EAX,[EBX + 0xfff81f60]
PUSH EAX
PUSH ESI
PUSH dword ptr [EBP + 0x8]
CALL 0x000bf210
POP EDI
POP EAX
PUSH EBP
PUSH dword ptr [EBX + 0x12bc]
CALL 0x0009eab0
ADD ESP,0x10
MOV dword ptr [ESP + 0x8],0x0
JMP 0x000bb275
CALL 0x0001ac30
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EBX + 0x12bc]
CALL 0x0009eab0
ADD ESP,0x10
MOV ESI,dword ptr [ESP + 0x8]
TEST ESI,ESI
JNZ 0x000bb2ba
MOV EDX,dword ptr [ESP + 0x4cc]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,dword ptr [ESP + 0x8]
JNZ 0x000bb5be
ADD ESP,0x4dc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],EAX
MOV EBP,dword ptr [ESP + 0x14]
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EBX + 0x12bc]
CALL 0x0009eab0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x5c]
MOV ECX,0x84
MOV EDI,dword ptr [ESP + 0xc]
CMP dword ptr [EAX + 0x8],0x2
MOV ESI,EAX
MOV EDX,dword ptr [EAX + 0xc]
MOVSD.REP ES:EDI,ESI
JNZ 0x000bb2d6
MOV EDX,dword ptr [EBP + 0x60]
MOV EAX,dword ptr [EBP + 0xc]
MOV EDI,dword ptr [ESP + 0x10]
SUB ESP,0xc
MOV ECX,0x84
MOV dword ptr [ESP + 0x2c8],0x1
MOV ESI,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x2d4],EDX
MOV EAX,dword ptr [EAX]
MOVSD.REP ES:EDI,ESI
MOV EDI,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [EAX]
PUSH EDI
CALL 0x0001b7a0
POP EDX
POP ECX
PUSH EDI
PUSH EAX
PUSH dword ptr [EBP + 0x58]
LEA EAX,[ESP + 0xc0]
PUSH EAX
PUSH 0x1
PUSH dword ptr [EBP + 0xc]
CALL ESI
ADD ESP,0x20
JMP 0x000bb275
MOV ESI,0x2
JMP 0x000bb07f
MOV ESI,0x1
JMP 0x000bb07f
MOV dword ptr [ESP + 0x28],0x1
SUB ESP,0xc
PUSH 0x4
LEA EAX,[ESP + 0x38]
PUSH EAX
PUSH 0xa
PUSH 0x1
PUSH dword ptr [ESP + 0x20]
CALL 0x0001a4b0
ADD ESP,0x20
TEST EAX,EAX
JNS 0x000bb0b8
CALL 0x0001ac30
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x14],EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x0001bc40
ADD ESP,0x10
JMP 0x000bb25b
MOV dword ptr [ESP + 0x28],0x1
SUB ESP,0xc
PUSH 0x4
LEA EAX,[ESP + 0x38]
PUSH EAX
PUSH 0x1
PUSH 0x6
PUSH dword ptr [ESP + 0x20]
CALL 0x0001a4b0
ADD ESP,0x20
TEST EAX,EAX
JS 0x000bb37a
MOV EAX,dword ptr [EBP + 0x50]
TEST EAX,EAX
JZ 0x000bb0ce
MOV dword ptr [ESP + 0x28],0x1
SUB ESP,0xc
PUSH 0x4
LEA EAX,[ESP + 0x38]
PUSH EAX
PUSH 0x9
PUSH 0x1
PUSH dword ptr [ESP + 0x20]
CALL 0x0001a4b0
ADD ESP,0x20
TEST EAX,EAX
JNS 0x000bb0ce
JMP 0x000bb37a
CALL 0x0001ac30
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x8],EAX
CMP EAX,0x73
JNZ 0x000bb25b
JMP 0x000bb1c8
MOV ECX,dword ptr [EBP + 0x58]
TEST ECX,ECX
JNZ 0x000bb5e2
MOV EAX,dword ptr [EBP + 0x5c]
SUB ESP,0xc
LEA ESI,[EAX + 0x10]
PUSH ESI
CALL 0x0001a900
ADD ESP,0x10
CMP EAX,0x6b
JA 0x000bb5c3
MOV EDX,0x1
ADD EAX,0x1
MOV word ptr [ESP + 0x2c],DX
PUSH 0x6c
PUSH EAX
PUSH ESI
MOV ESI,0x6e
LEA EAX,[ESP + 0x3a]
PUSH EAX
CALL 0x0001bbc0
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x8]
JMP 0x000bb195
MOV ESI,0x1
JMP 0x000bb220
MOVSX EDI,DX
LEA ESI,[EDX + -0x1]
MOV dword ptr [ESP + 0x1c],EBP
MOVZX ESI,SI
LEA EAX,[EDI + -0x1]
SUB EAX,ESI
MOV ESI,dword ptr [EBX + 0x870]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV EBP,EAX
JMP 0x000bb4db
CALL 0x0001ac30
MOV EAX,dword ptr [EAX]
CMP EAX,0x62
JNZ 0x000bb564
XOR EDX,EDX
CMP EDX,EDI
JZ 0x000bb557
SUB EDI,0x1
CMP EDI,dword ptr [ESP + 0x18]
JZ 0x000bb557
MOV EAX,0xa
MOV dword ptr [ESP + 0x3c],EBP
SUB ESP,0x4
MOV word ptr [ESP + 0x30],AX
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESP + 0x38],EAX
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x3c],EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [ESP + 0x44],EAX
MOV EAX,EDI
ROL AX,0x8
MOV word ptr [ESP + 0x32],AX
PUSH 0x1c
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
CALL 0x0001c120
ADD ESP,0x10
TEST EAX,EAX
JS 0x000bb4b8
MOV EBP,dword ptr [ESP + 0x1c]
JMP 0x000bb180
MOV dword ptr [ESP + 0x8],EAX
MOV EBP,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x000bb180
JMP 0x000bb2a8
MOV EDI,0x2
MOV ESI,0x2
JMP 0x000bb20c
MOV dword ptr [ESP + 0x8],EAX
MOV EBP,dword ptr [ESP + 0x1c]
JMP 0x000bb2a8
MOV dword ptr [ESP + 0x8],EAX
MOV EBP,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JZ 0x000bb180
JMP 0x000bb2a8
LEA EAX,[EBX + 0xfffb65d0]
PUSH EAX
LEA EAX,[EBX + 0xfffb6442]
PUSH 0x29f
PUSH EAX
LEA EAX,[EBX + 0xfffb6463]
PUSH EAX
CALL 0x0001c000
LEA EAX,[EBX + 0xfffb65d0]
PUSH EAX
LEA EAX,[EBX + 0xfffb6442]
PUSH 0x25a
PUSH EAX
LEA EAX,[EBX + 0xfffb644f]
PUSH EAX
CALL 0x0001c000
CALL 0x000c60b0
LEA EAX,[EBX + 0xfffb65d0]
PUSH EAX
LEA EAX,[EBX + 0xfffb6442]
PUSH 0x2d6
PUSH EAX
LEA EAX,[EBX + 0xfffb6558]
PUSH EAX
CALL 0x0001c000
LEA EAX,[EBX + 0xfffb65d0]
PUSH EAX
LEA EAX,[EBX + 0xfffb6442]
PUSH 0x2d5
PUSH EAX
LEA EAX,[EBX + 0xfffb6475]
PUSH EAX
CALL 0x0001c000
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000bafa0(int param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}\n\n" comment (function_definition "int __regparm3 FUN_000bafa0(int param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000bafa0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "ushort uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "char cVar12;" primitive_type identifier ;) (declaration "ushort uVar13;" type_identifier identifier ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "char cVar16;" primitive_type identifier ;) (declaration "sockaddr *psVar17;" type_identifier (pointer_declarator "*psVar17" * identifier) ;) (declaration "sockaddr *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "undefined4 *puVar18;" type_identifier (pointer_declarator "*puVar18" * identifier) ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar20;" type_identifier identifier ;) (declaration "int local_4e4;" primitive_type identifier ;) (declaration "undefined4 local_4c4;" type_identifier identifier ;) (declaration "sockaddr local_4c0;" type_identifier identifier ;) (declaration "undefined4 local_4b0;" type_identifier identifier ;) (declaration "undefined4 local_4ac;" type_identifier identifier ;) (declaration "undefined4 local_440 [132];" type_identifier (array_declarator "local_440 [132]" identifier [ number_literal ]) ;) (declaration "undefined4 local_230 [3];" type_identifier (array_declarator "local_230 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 local_224;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar20 = 0;" (assignment_expression "bVar20 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0xbafab;" (assignment_expression "uStack_14 = 0xbafab" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0009ef40(DAT_0013ba0c,param_1);" (call_expression "FUN_0009ef40(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;) (if_statement "if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 8))" ( (binary_expression "-1 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    close(*(int *)(param_1 + 8));\n  }" { (expression_statement "close(*(int *)(param_1 + 8));" (call_expression "close(*(int *)(param_1 + 8))" identifier (argument_list "(*(int *)(param_1 + 8))" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) })) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0x5c);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x5c)" * (cast_expression "(undefined4 **)(param_1 + 0x5c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = puVar14[2];" (assignment_expression "iVar8 = puVar14[2]" identifier = (subscript_expression "puVar14[2]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar14[3];" (assignment_expression "uVar11 = puVar14[3]" identifier = (subscript_expression "puVar14[3]" identifier [ number_literal ])) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (for_statement "for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar7 = 0x84" identifier = number_literal) ; (binary_expression "iVar7 != 0" identifier != number_literal) ; (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar15 = *puVar14;" (assignment_expression "*puVar15 = *puVar14" (pointer_expression "*puVar15" * identifier) = (pointer_expression "*puVar14" * identifier)) ;) (expression_statement "puVar14 = puVar14 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar14 = puVar14 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar14 + (uint)bVar20 * -2 + 1" (binary_expression "puVar14 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }" if (parenthesized_expression "(iVar8 == 2)" ( (binary_expression "iVar8 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }" { (expression_statement "uVar11 = *(undefined4 *)(param_1 + 0x60);" (assignment_expression "uVar11 = *(undefined4 *)(param_1 + 0x60)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) })) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (expression_statement "puVar18 = local_440;" (assignment_expression "puVar18 = local_440" identifier = identifier) ;) (expression_statement "local_224 = uVar11;" (assignment_expression "local_224 = uVar11" identifier = identifier) ;) (for_statement "for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar8 = 0x84" identifier = number_literal) ; (binary_expression "iVar8 != 0" identifier != number_literal) ; (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar18 = *puVar15;" (assignment_expression "*puVar18 = *puVar15" (pointer_expression "*puVar18" * identifier) = (pointer_expression "*puVar15" * identifier)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar18 = puVar18 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar18 = puVar18 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar18 + (uint)bVar20 * -2 + 1" (binary_expression "puVar18 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "(**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)*puVar14)" ( (pointer_expression "**(code **)*puVar14" * (pointer_expression "*(code **)*puVar14" * (cast_expression "(code **)*puVar14" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*puVar14" * identifier)))) )) (argument_list "(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x5c) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x5c) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x5c) + 8" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" { (labeled_statement "LAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" statement_identifier : comment (expression_statement "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" (call_expression "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" identifier (argument_list "("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" ( (string_literal ""family != AF_UNSPEC"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;)) })) (if_statement "if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" if (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar8 = 1;\n  }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" else (if_statement "if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x60) == 0)" ( (binary_expression "*(int *)(param_1 + 0x60) == 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar8 = 2;\n  }" { (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" else (compound_statement "{\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" { (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) goto LAB_000bb59f;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb59f;" goto statement_identifier ;)) }))))) (expression_statement "iVar7 = socket(iVar8,1,0);" (assignment_expression "iVar7 = socket(iVar8,1,0)" identifier = (call_expression "socket(iVar8,1,0)" identifier (argument_list "(iVar8,1,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar7;" (assignment_expression "*(int *)(param_1 + 8) = iVar7" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (labeled_statement "LAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);" statement_identifier : (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;)) (if_statement "if (local_4e4 == 0) goto LAB_000bb275;" if (parenthesized_expression "(local_4e4 == 0)" ( (binary_expression "local_4e4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb275;" goto statement_identifier ;)) }) (else_clause "else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" else (compound_statement "{\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" { (expression_statement "FUN_000ba410(iVar7);" (call_expression "FUN_000ba410(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }" { (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" identifier = number_literal) ;) (expression_statement "iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,1,10,&local_4c4,4)" identifier = (call_expression "setsockopt(iVar7,1,10,&local_4c4,4)" identifier (argument_list "(iVar7,1,10,&local_4c4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_4c4" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar19) goto LAB_000bb0b8;" if (parenthesized_expression "(-1 < iVar19)" ( (binary_expression "-1 < iVar19" number_literal < identifier) )) (goto_statement "goto LAB_000bb0b8;" goto statement_identifier ;)) (labeled_statement "LAB_000bb37a:\n      piVar5 = __errno_location();" statement_identifier : (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "close(iVar7);" (call_expression "close(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (goto_statement "goto LAB_000bb25b;" goto statement_identifier ;) })) (labeled_statement "LAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "iVar19 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" else (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" identifier = number_literal) ;) (expression_statement "iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,6,1,&local_4c4,4)" identifier = (call_expression "setsockopt(iVar7,6,1,&local_4c4,4)" identifier (argument_list "(iVar7,6,1,&local_4c4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_4c4" & identifier) , number_literal )))) ;) (if_statement "if (iVar19 < 0) goto LAB_000bb37a;" if (parenthesized_expression "(iVar19 < 0)" ( (binary_expression "iVar19 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000bb37a;" goto statement_identifier ;)) (expression_statement "iVar19 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) })))) (if_statement "if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }" if (parenthesized_expression "(iVar19 != 0)" ( (binary_expression "iVar19 != 0" identifier != number_literal) )) (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }" { (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" identifier = number_literal) ;) (expression_statement "iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,1,9,&local_4c4,4)" identifier = (call_expression "setsockopt(iVar7,1,9,&local_4c4,4)" identifier (argument_list "(iVar7,1,9,&local_4c4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_4c4" & identifier) , number_literal )))) ;) (if_statement "if (iVar19 < 0) goto LAB_000bb37a;" if (parenthesized_expression "(iVar19 < 0)" ( (binary_expression "iVar19 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000bb37a;" goto statement_identifier ;)) })) (expression_statement "puVar3 = PTR_in6addr_any_0013afc0;" (assignment_expression "puVar3 = PTR_in6addr_any_0013afc0" identifier = identifier) ;) (expression_statement "iVar19 = *(int *)(param_1 + 0x54);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x54)" identifier = (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "__addr = &local_4c0;" (assignment_expression "__addr = &local_4c0" identifier = (pointer_expression "&local_4c0" & identifier)) ;) (expression_statement "psVar17 = __addr;" (assignment_expression "psVar17 = __addr" identifier = identifier) ;) (for_statement "for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }" for ( (assignment_expression "iVar9 = 0x20" identifier = number_literal) ; (binary_expression "iVar9 != 0" identifier != number_literal) ; (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ) (compound_statement "{\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }" { (expression_statement "psVar17->sa_family = 0;" (assignment_expression "psVar17->sa_family = 0" (field_expression "psVar17->sa_family" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar17->sa_data[0] = '\0';" (assignment_expression "psVar17->sa_data[0] = '\0'" (subscript_expression "psVar17->sa_data[0]" (field_expression "psVar17->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar17->sa_data[1] = '\0';" (assignment_expression "psVar17->sa_data[1] = '\0'" (subscript_expression "psVar17->sa_data[1]" (field_expression "psVar17->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);" (assignment_expression "psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4)" identifier = (cast_expression "(sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar17 + (uint)bVar20 * -8 + 4)" ( (binary_expression "(int)psVar17 + (uint)bVar20 * -8 + 4" (binary_expression "(int)psVar17 + (uint)bVar20 * -8" (cast_expression "(int)psVar17" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar20 * -8" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;" (assignment_expression "uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff" identifier = (binary_expression "~-(ushort)(iVar19 == 0) & 0x3ff" (unary_expression "~-(ushort)(iVar19 == 0)" ~ (unary_expression "-(ushort)(iVar19 == 0)" - (call_expression "(ushort)(iVar19 == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(iVar19 == 0)" ( (binary_expression "iVar19 == 0" identifier == number_literal) ))))) & number_literal)) ;) (if_statement "if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" if (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" { (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" ( (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" { comment (expression_statement "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");" (call_expression "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" identifier (argument_list "("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" ( (string_literal ""sock->port == 0"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (expression_statement "pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);" (assignment_expression "pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10)" identifier = (cast_expression "(char *)(*(int *)(param_1 + 0x5c) + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x5c) + 0x10" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "sVar6 = strlen(pcVar4);" (assignment_expression "sVar6 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (0x6b < sVar6) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" if (parenthesized_expression "(0x6b < sVar6)" ( (binary_expression "0x6b < sVar6" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" { comment (expression_statement "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");" (call_expression "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" identifier (argument_list "("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" ( (string_literal ""strlen(sock->addr->hostname) < sizeof u.su.sun_path"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (expression_statement "local_4c0.sa_family = 1;" (assignment_expression "local_4c0.sa_family = 1" (field_expression "local_4c0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "__len = 0x6e;" (assignment_expression "__len = 0x6e" identifier = number_literal) ;) (expression_statement "__memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);" (call_expression "__memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c)" identifier (argument_list "(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c)" ( (field_expression "local_4c0.sa_data" identifier . field_identifier) , identifier , (binary_expression "sVar6 + 1" identifier + number_literal) , number_literal ))) ;) (labeled_statement "LAB_000bb195:\n      FUN_000ba530(iVar7);" statement_identifier : (expression_statement "FUN_000ba530(iVar7);" (call_expression "FUN_000ba530(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;)) (expression_statement "iVar8 = connect(iVar7,__addr,__len);" (assignment_expression "iVar8 = connect(iVar7,__addr,__len)" identifier = (call_expression "connect(iVar7,__addr,__len)" identifier (argument_list "(iVar7,__addr,__len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (local_4e4 != 0x73) goto LAB_000bb25b;" if (parenthesized_expression "(local_4e4 != 0x73)" ( (binary_expression "local_4e4 != 0x73" identifier != number_literal) )) (goto_statement "goto LAB_000bb25b;" goto statement_identifier ;)) }) (else_clause "else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" else (compound_statement "{\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "cVar12 = '\0';" (assignment_expression "cVar12 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }" { (expression_statement "cVar16 = '\x02';" (assignment_expression "cVar16 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar12 = '\x02';" (assignment_expression "cVar12 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) }) (else_clause "else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" else (compound_statement "{\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" { (expression_statement "cVar16 = '\x02';" (assignment_expression "cVar16 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar12 = '\0';" (assignment_expression "cVar12 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }" if (parenthesized_expression "((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               )" ( (binary_expression "(*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" ( (comma_expression "cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0" (assignment_expression "cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" identifier = (binary_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (parenthesized_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U)" ( (binary_expression "-(*(int *)(param_1 + 0x40) == 0) & 5U" (unary_expression "-(*(int *)(param_1 + 0x40) == 0)" - (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) ))) & number_literal) )) + number_literal)) , (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n              cVar12 = '\x05';\n            }" { (expression_statement "cVar12 = '\x05';" (assignment_expression "cVar12 = '\x05'" identifier = (char_literal "'\x05'" ' escape_sequence ')) ;) })) }))) (expression_statement "iVar8 = FUN_000326a0(param_1 + 0x10);" (assignment_expression "iVar8 = FUN_000326a0(param_1 + 0x10)" identifier = (call_expression "FUN_000326a0(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) (if_statement "if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n            cVar12 = cVar16;\n          }" { (expression_statement "cVar12 = cVar16;" (assignment_expression "cVar12 = cVar16" identifier = identifier) ;) })) }) (else_clause "else {\n          cVar12 = '\x01';\n        }" else (compound_statement "{\n          cVar12 = '\x01';\n        }" { (expression_statement "cVar12 = '\x01';" (assignment_expression "cVar12 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) })) (expression_statement "FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);" (call_expression "FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;) (expression_statement "local_4e4 = 0;" (assignment_expression "local_4e4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000bb275;" goto statement_identifier ;) })) (if_statement "if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }" if (parenthesized_expression "(iVar8 != 10)" ( (binary_expression "iVar8 != 10" identifier != number_literal) )) (compound_statement "{\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }" { (expression_statement "uVar13 = uVar10;" (assignment_expression "uVar13 = uVar10" identifier = identifier) ;) (if_statement "if (iVar8 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" if (parenthesized_expression "(iVar8 != 2)" ( (binary_expression "iVar8 != 2" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" { comment (expression_statement "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");" (call_expression "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" identifier (argument_list "("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" ( (string_literal ""family == AF_INET"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (while_statement "while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }" { (expression_statement "uVar13 = uVar13 - 1;" (assignment_expression "uVar13 = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "local_4c0.sa_data[2] = '\0';" (assignment_expression "local_4c0.sa_data[2] = '\0'" (subscript_expression "local_4c0.sa_data[2]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_data[3] = '\0';" (assignment_expression "local_4c0.sa_data[3] = '\0'" (subscript_expression "local_4c0.sa_data[3]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_data[4] = '\0';" (assignment_expression "local_4c0.sa_data[4] = '\0'" (subscript_expression "local_4c0.sa_data[4]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_data[5] = '\0';" (assignment_expression "local_4c0.sa_data[5] = '\0'" (subscript_expression "local_4c0.sa_data[5]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_family = 2;" (assignment_expression "local_4c0.sa_family = 2" (field_expression "local_4c0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;" (assignment_expression "local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8" (field_expression "local_4c0.sa_data._0_2_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "uVar10 << 8 | uVar10 >> 8" (binary_expression "uVar10 << 8" identifier << number_literal) | (binary_expression "uVar10 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar8 = bind(iVar7,__addr,0x10);" (assignment_expression "iVar8 = bind(iVar7,__addr,0x10)" identifier = (call_expression "bind(iVar7,__addr,0x10)" identifier (argument_list "(iVar7,__addr,0x10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (-1 < iVar8) break;" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" if (parenthesized_expression "(local_4e4 != 0x62)" ( (binary_expression "local_4e4 != 0x62" identifier != number_literal) )) (compound_statement "{\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" { (if_statement "if (local_4e4 != 0) goto LAB_000bb2a8;" if (parenthesized_expression "(local_4e4 != 0)" ( (binary_expression "local_4e4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (if_statement "if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;" if (parenthesized_expression "((uVar13 == 0xffff) || (uVar13 == 0))" ( (binary_expression "(uVar13 == 0xffff) || (uVar13 == 0)" (parenthesized_expression "(uVar13 == 0xffff)" ( (binary_expression "uVar13 == 0xffff" identifier == number_literal) )) || (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) (expression_statement "uVar10 = uVar10 - 1;" (assignment_expression "uVar10 = uVar10 - 1" identifier = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) })) (labeled_statement "LAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);" statement_identifier : (expression_statement "__addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);" (assignment_expression "__addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" identifier = (pointer_expression "*(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" * (cast_expression "(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" ( (type_descriptor "sockaddr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x14" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;)) (expression_statement "__len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);" (assignment_expression "__len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" identifier = (pointer_expression "*(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" * (cast_expression "(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" ( (type_descriptor "socklen_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x10" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;" (assignment_expression "*(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8" (pointer_expression "*(ushort *)__addr->sa_data" * (cast_expression "(ushort *)__addr->sa_data" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__addr->sa_data" identifier -> field_identifier))) = (binary_expression "*(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8" (binary_expression "*(ushort *)(param_1 + 0x58) << 8" (pointer_expression "*(ushort *)(param_1 + 0x58)" * (cast_expression "(ushort *)(param_1 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)(param_1 + 0x58) >> 8" (pointer_expression "*(ushort *)(param_1 + 0x58)" * (cast_expression "(ushort *)(param_1 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) >> number_literal))) ;) (goto_statement "goto LAB_000bb195;" goto statement_identifier ;) })) (expression_statement "iVar19 = (int)(short)uVar10;" (assignment_expression "iVar19 = (int)(short)uVar10" identifier = (cast_expression "(int)(short)uVar10" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)uVar10" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "iVar8 = iVar19 + -1;" (assignment_expression "iVar8 = iVar19 + -1" identifier = (binary_expression "iVar19 + -1" identifier + number_literal)) ;) (expression_statement "uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);" (assignment_expression "uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" identifier = (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" * (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 4)" ( (binary_expression "PTR_in6addr_any_0013afc0 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" identifier = (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" * (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 8)" ( (binary_expression "PTR_in6addr_any_0013afc0 + 8" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }" { (expression_statement "local_4c0.sa_family = 10;" (assignment_expression "local_4c0.sa_family = 10" (field_expression "local_4c0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;" (assignment_expression "local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3" (field_expression "local_4c0.sa_data._6_4_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_4ac = *(undefined4 *)(puVar3 + 0xc);" (assignment_expression "local_4ac = *(undefined4 *)(puVar3 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar3 + 0xc)" * (cast_expression "(undefined4 *)(puVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xc)" ( (binary_expression "puVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;" (assignment_expression "local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8" (field_expression "local_4c0.sa_data._0_2_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "(ushort)iVar19 << 8 | (ushort)iVar19 >> 8" (binary_expression "(ushort)iVar19 << 8" (cast_expression "(ushort)iVar19" ( (type_descriptor "ushort" type_identifier) ) identifier) << number_literal) | (binary_expression "(ushort)iVar19 >> 8" (cast_expression "(ushort)iVar19" ( (type_descriptor "ushort" type_identifier) ) identifier) >> number_literal))) ;) (expression_statement "local_4c0.sa_data._10_4_ = uVar11;" (assignment_expression "local_4c0.sa_data._10_4_ = uVar11" (field_expression "local_4c0.sa_data._10_4_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "local_4b0 = uVar2;" (assignment_expression "local_4b0 = uVar2" identifier = identifier) ;) (expression_statement "iVar9 = bind(iVar7,__addr,0x1c);" (assignment_expression "iVar9 = bind(iVar7,__addr,0x1c)" identifier = (call_expression "bind(iVar7,__addr,0x1c)" identifier (argument_list "(iVar7,__addr,0x1c)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (-1 < iVar9) goto LAB_000bb180;" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_000bb180;" goto statement_identifier ;)) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (local_4e4 != 0x62) break;" if (parenthesized_expression "(local_4e4 != 0x62)" ( (binary_expression "local_4e4 != 0x62" identifier != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;" if (parenthesized_expression "((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))" ( (binary_expression "(iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1))" (parenthesized_expression "(iVar19 == 0)" ( (binary_expression "iVar19 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1))" ( (comma_expression "iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)" (assignment_expression "iVar19 = iVar19 + -1" identifier = (binary_expression "iVar19 + -1" identifier + number_literal)) , (binary_expression "iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)" identifier == (binary_expression "iVar8 - (uint)(ushort)(uVar10 - 1)" identifier - (call_expression "(uint)(ushort)(uVar10 - 1)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(uVar10 - 1)" ( (binary_expression "uVar10 - 1" identifier - number_literal) )))))) ))) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) })) (if_statement "if (local_4e4 == 0) goto LAB_000bb180;" if (parenthesized_expression "(local_4e4 == 0)" ( (binary_expression "local_4e4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb180;" goto statement_identifier ;)) (labeled_statement "LAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);" statement_identifier : (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;)) }))) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0x5c);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x5c)" * (cast_expression "(undefined4 **)(param_1 + 0x5c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = puVar14[2];" (assignment_expression "iVar8 = puVar14[2]" identifier = (subscript_expression "puVar14[2]" identifier [ number_literal ])) ;) (expression_statement "local_224 = puVar14[3];" (assignment_expression "local_224 = puVar14[3]" identifier = (subscript_expression "puVar14[3]" identifier [ number_literal ])) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (for_statement "for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar7 = 0x84" identifier = number_literal) ; (binary_expression "iVar7 != 0" identifier != number_literal) ; (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar15 = *puVar14;" (assignment_expression "*puVar15 = *puVar14" (pointer_expression "*puVar15" * identifier) = (pointer_expression "*puVar14" * identifier)) ;) (expression_statement "puVar14 = puVar14 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar14 = puVar14 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar14 + (uint)bVar20 * -2 + 1" (binary_expression "puVar14 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }" if (parenthesized_expression "(iVar8 == 2)" ( (binary_expression "iVar8 == 2" identifier == number_literal) )) (compound_statement "{\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }" { (expression_statement "local_224 = *(undefined4 *)(param_1 + 0x60);" (assignment_expression "local_224 = *(undefined4 *)(param_1 + 0x60)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) })) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc)" identifier = (cast_expression "(undefined4 *)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))))) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (expression_statement "puVar18 = local_440;" (assignment_expression "puVar18 = local_440" identifier = identifier) ;) (for_statement "for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar8 = 0x84" identifier = number_literal) ; (binary_expression "iVar8 != 0" identifier != number_literal) ; (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar18 = *puVar15;" (assignment_expression "*puVar18 = *puVar15" (pointer_expression "*puVar18" * identifier) = (pointer_expression "*puVar15" * identifier)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar18 = puVar18 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar18 = puVar18 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar18 + (uint)bVar20 * -2 + 1" (binary_expression "puVar18 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "pcVar1 = (code *)*puVar14;" (assignment_expression "pcVar1 = (code *)*puVar14" identifier = (cast_expression "(code *)*puVar14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar14" * identifier))) ;) (expression_statement "pcVar4 = strerror(local_4e4);" (assignment_expression "pcVar4 = strerror(local_4e4)" identifier = (call_expression "strerror(local_4e4)" identifier (argument_list "(local_4e4)" ( identifier )))) ;) (expression_statement "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);" (call_expression "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , identifier , identifier ))) ;) (labeled_statement "LAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_4e4;\n  }" { (return_statement "return local_4e4;" return identifier ;) }))) comment (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint __regparm3 try_connect(Actual_Socket_conflict sock)\n\n{\n  Plug pppVar1;\n  plug_function_table *ppVar2;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  anon_enum_32 aVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  size_t sVar12;\n  int iVar13;\n  int iVar14;\n  ushort uVar15;\n  addrinfo *paVar16;\n  ushort uVar17;\n  SockAddr pSVar18;\n  socklen_t __len;\n  SockAddr_tag *pSVar19;\n  sockaddr_union *psVar20;\n  sockaddr_union *__addr;\n  int in_GS_OFFSET;\n  byte bVar21;\n  int local_4e4;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  int local_230 [3];\n  addrinfo *local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  del234(sktree,sock);\n  if (-1 < sock->s) {\n    close(sock->s);\n  }\n  pSVar18 = sock->addr;\n  aVar6 = pSVar18->superfamily;\n  paVar16 = pSVar18->ais;\n  piVar11 = local_230;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }\n  if (aVar6 == ADDRTYPE_IPV6) {\n    paVar16 = (sock->step).ai;\n  }\n  pppVar1 = sock->plug;\n  local_230[0] = 1;\n  piVar11 = local_230;\n  pSVar19 = &thisaddr;\n  local_224 = paVar16;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar19->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4);\n  }\n  (*(*pppVar1)->log)(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0);\n  aVar6 = sock->addr->superfamily;\n  if (aVar6 == ADDRTYPE_UNSPEC) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (aVar6 == ABOUT_TO) {\n    iVar13 = 1;\n  }\n  else {\n    paVar16 = (sock->step).ai;\n    if (paVar16 == (addrinfo *)0x0) {\n      iVar13 = 2;\n    }\n    else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }\n  }\n  iVar8 = socket(iVar13,1,0);\n  sock->s = iVar8;\n  if (iVar8 < 0) {\n    piVar11 = __errno_location();\n    local_4e4 = *piVar11;\nLAB_000bb25b:\n    add234(sktree,sock);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    cloexec(iVar8);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }\n    puVar7 = PTR_in6addr_any_0013afc0;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar20 = __addr;\n    for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }\n    uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (iVar13 == 1) {\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar13 != 10) {\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }\n    iVar9 = (int)(short)uVar15;\n    iVar13 = iVar9 + -1;\n    uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    add234(sktree,sock);\n  }\n  pSVar18 = sock->addr;\n  aVar6 = pSVar18->superfamily;\n  local_224 = pSVar18->ais;\n  piVar11 = local_230;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }\n  if (aVar6 == ADDRTYPE_IPV6) {\n    local_224 = (sock->step).ai;\n  }\n  local_230[0] = 1;\n  ppVar2 = *sock->plug;\n  piVar11 = local_230;\n  pSVar18 = &thisaddr;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar18->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n  }\n  p_Var3 = ppVar2->log;\n  pcVar10 = strerror(local_4e4);\n  (*p_Var3)(sock->plug,1,&thisaddr,sock->port,pcVar10,local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int __regparm3 try_connect(Actual_Socket_conflict sock)\n\n{\n  Plug pppVar1;\n  plug_function_table *ppVar2;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  anon_enum_32 aVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  size_t sVar12;\n  int iVar13;\n  int iVar14;\n  ushort uVar15;\n  addrinfo *paVar16;\n  ushort uVar17;\n  SockAddr pSVar18;\n  socklen_t __len;\n  SockAddr_tag *pSVar19;\n  sockaddr_union *psVar20;\n  sockaddr_union *__addr;\n  int in_GS_OFFSET;\n  byte bVar21;\n  int local_4e4;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  int local_230 [3];\n  addrinfo *local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  del234(sktree,sock);\n  if (-1 < sock->s) {\n    close(sock->s);\n  }\n  pSVar18 = sock->addr;\n  aVar6 = pSVar18->superfamily;\n  paVar16 = pSVar18->ais;\n  piVar11 = local_230;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }\n  if (aVar6 == ADDRTYPE_IPV6) {\n    paVar16 = (sock->step).ai;\n  }\n  pppVar1 = sock->plug;\n  local_230[0] = 1;\n  piVar11 = local_230;\n  pSVar19 = &thisaddr;\n  local_224 = paVar16;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar19->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4);\n  }\n  (*(*pppVar1)->log)(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0);\n  aVar6 = sock->addr->superfamily;\n  if (aVar6 == ADDRTYPE_UNSPEC) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (aVar6 == ABOUT_TO) {\n    iVar13 = 1;\n  }\n  else {\n    paVar16 = (sock->step).ai;\n    if (paVar16 == (addrinfo *)0x0) {\n      iVar13 = 2;\n    }\n    else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }\n  }\n  iVar8 = socket(iVar13,1,0);\n  sock->s = iVar8;\n  if (iVar8 < 0) {\n    piVar11 = __errno_location();\n    local_4e4 = *piVar11;\nLAB_000bb25b:\n    add234(sktree,sock);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    cloexec(iVar8);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }\n    puVar7 = PTR_in6addr_any_0013afc0;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar20 = __addr;\n    for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }\n    uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (iVar13 == 1) {\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar13 != 10) {\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }\n    iVar9 = (int)(short)uVar15;\n    iVar13 = iVar9 + -1;\n    uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    add234(sktree,sock);\n  }\n  pSVar18 = sock->addr;\n  aVar6 = pSVar18->superfamily;\n  local_224 = pSVar18->ais;\n  piVar11 = local_230;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }\n  if (aVar6 == ADDRTYPE_IPV6) {\n    local_224 = (sock->step).ai;\n  }\n  local_230[0] = 1;\n  ppVar2 = *sock->plug;\n  piVar11 = local_230;\n  pSVar18 = &thisaddr;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar18->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n  }\n  p_Var3 = ppVar2->log;\n  pcVar10 = strerror(local_4e4);\n  (*p_Var3)(sock->plug,1,&thisaddr,sock->port,pcVar10,local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "try_connect(Actual_Socket_conflict sock)" identifier (parameter_list "(Actual_Socket_conflict sock)" ( (parameter_declaration "Actual_Socket_conflict sock" type_identifier identifier) ))) (compound_statement "{\n  Plug pppVar1;\n  plug_function_table *ppVar2;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  anon_enum_32 aVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int *piVar11;\n  size_t sVar12;\n  int iVar13;\n  int iVar14;\n  ushort uVar15;\n  addrinfo *paVar16;\n  ushort uVar17;\n  SockAddr pSVar18;\n  socklen_t __len;\n  SockAddr_tag *pSVar19;\n  sockaddr_union *psVar20;\n  sockaddr_union *__addr;\n  int in_GS_OFFSET;\n  byte bVar21;\n  int local_4e4;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  int local_230 [3];\n  addrinfo *local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  del234(sktree,sock);\n  if (-1 < sock->s) {\n    close(sock->s);\n  }\n  pSVar18 = sock->addr;\n  aVar6 = pSVar18->superfamily;\n  paVar16 = pSVar18->ais;\n  piVar11 = local_230;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }\n  if (aVar6 == ADDRTYPE_IPV6) {\n    paVar16 = (sock->step).ai;\n  }\n  pppVar1 = sock->plug;\n  local_230[0] = 1;\n  piVar11 = local_230;\n  pSVar19 = &thisaddr;\n  local_224 = paVar16;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar19->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4);\n  }\n  (*(*pppVar1)->log)(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0);\n  aVar6 = sock->addr->superfamily;\n  if (aVar6 == ADDRTYPE_UNSPEC) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (aVar6 == ABOUT_TO) {\n    iVar13 = 1;\n  }\n  else {\n    paVar16 = (sock->step).ai;\n    if (paVar16 == (addrinfo *)0x0) {\n      iVar13 = 2;\n    }\n    else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }\n  }\n  iVar8 = socket(iVar13,1,0);\n  sock->s = iVar8;\n  if (iVar8 < 0) {\n    piVar11 = __errno_location();\n    local_4e4 = *piVar11;\nLAB_000bb25b:\n    add234(sktree,sock);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    cloexec(iVar8);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }\n    puVar7 = PTR_in6addr_any_0013afc0;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar20 = __addr;\n    for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }\n    uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (iVar13 == 1) {\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar13 != 10) {\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }\n    iVar9 = (int)(short)uVar15;\n    iVar13 = iVar9 + -1;\n    uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    add234(sktree,sock);\n  }\n  pSVar18 = sock->addr;\n  aVar6 = pSVar18->superfamily;\n  local_224 = pSVar18->ais;\n  piVar11 = local_230;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }\n  if (aVar6 == ADDRTYPE_IPV6) {\n    local_224 = (sock->step).ai;\n  }\n  local_230[0] = 1;\n  ppVar2 = *sock->plug;\n  piVar11 = local_230;\n  pSVar18 = &thisaddr;\n  for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar18->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n  }\n  p_Var3 = ppVar2->log;\n  pcVar10 = strerror(local_4e4);\n  (*p_Var3)(sock->plug,1,&thisaddr,sock->port,pcVar10,local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "Plug pppVar1;" type_identifier identifier ;) (declaration "plug_function_table *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "_func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "anon_enum_32 aVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "ushort uVar15;" type_identifier identifier ;) (declaration "addrinfo *paVar16;" type_identifier (pointer_declarator "*paVar16" * identifier) ;) (declaration "ushort uVar17;" type_identifier identifier ;) (declaration "SockAddr pSVar18;" type_identifier identifier ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "SockAddr_tag *pSVar19;" type_identifier (pointer_declarator "*pSVar19" * identifier) ;) (declaration "sockaddr_union *psVar20;" type_identifier (pointer_declarator "*psVar20" * identifier) ;) (declaration "sockaddr_union *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar21;" type_identifier identifier ;) (declaration "int local_4e4;" primitive_type identifier ;) (declaration "int b;" primitive_type identifier ;) (declaration "sockaddr_union u;" type_identifier identifier ;) (declaration "SockAddr_tag thisaddr;" type_identifier identifier ;) (declaration "int local_230 [3];" primitive_type (array_declarator "local_230 [3]" identifier [ number_literal ]) ;) (declaration "addrinfo *local_224;" type_identifier (pointer_declarator "*local_224" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar21 = 0;" (assignment_expression "bVar21 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0xbafab;" (assignment_expression "uStack_14 = 0xbafab" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "del234(sktree,sock);" (call_expression "del234(sktree,sock)" identifier (argument_list "(sktree,sock)" ( identifier , identifier ))) ;) (if_statement "if (-1 < sock->s) {\n    close(sock->s);\n  }" if (parenthesized_expression "(-1 < sock->s)" ( (binary_expression "-1 < sock->s" number_literal < (field_expression "sock->s" identifier -> field_identifier)) )) (compound_statement "{\n    close(sock->s);\n  }" { (expression_statement "close(sock->s);" (call_expression "close(sock->s)" identifier (argument_list "(sock->s)" ( (field_expression "sock->s" identifier -> field_identifier) ))) ;) })) (expression_statement "pSVar18 = sock->addr;" (assignment_expression "pSVar18 = sock->addr" identifier = (field_expression "sock->addr" identifier -> field_identifier)) ;) (expression_statement "aVar6 = pSVar18->superfamily;" (assignment_expression "aVar6 = pSVar18->superfamily" identifier = (field_expression "pSVar18->superfamily" identifier -> field_identifier)) ;) (expression_statement "paVar16 = pSVar18->ais;" (assignment_expression "paVar16 = pSVar18->ais" identifier = (field_expression "pSVar18->ais" identifier -> field_identifier)) ;) (expression_statement "piVar11 = local_230;" (assignment_expression "piVar11 = local_230" identifier = identifier) ;) (for_statement "for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }" for ( (assignment_expression "iVar13 = 0x84" identifier = number_literal) ; (binary_expression "iVar13 != 0" identifier != number_literal) ; (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ) (compound_statement "{\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }" { (expression_statement "*piVar11 = pSVar18->refcount;" (assignment_expression "*piVar11 = pSVar18->refcount" (pointer_expression "*piVar11" * identifier) = (field_expression "pSVar18->refcount" identifier -> field_identifier)) ;) (expression_statement "pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);" (assignment_expression "pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4)" identifier = (call_expression "(SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4)" (parenthesized_expression "(SockAddr)" ( identifier )) (argument_list "((int)pSVar18 + (uint)bVar21 * -8 + 4)" ( (binary_expression "(int)pSVar18 + (uint)bVar21 * -8 + 4" (binary_expression "(int)pSVar18 + (uint)bVar21 * -8" (cast_expression "(int)pSVar18" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar21 * -8" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "piVar11 = piVar11 + (uint)bVar21 * -2 + 1;" (assignment_expression "piVar11 = piVar11 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "piVar11 + (uint)bVar21 * -2 + 1" (binary_expression "piVar11 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (aVar6 == ADDRTYPE_IPV6) {\n    paVar16 = (sock->step).ai;\n  }" if (parenthesized_expression "(aVar6 == ADDRTYPE_IPV6)" ( (binary_expression "aVar6 == ADDRTYPE_IPV6" identifier == identifier) )) (compound_statement "{\n    paVar16 = (sock->step).ai;\n  }" { (expression_statement "paVar16 = (sock->step).ai;" (assignment_expression "paVar16 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;) })) (expression_statement "pppVar1 = sock->plug;" (assignment_expression "pppVar1 = sock->plug" identifier = (field_expression "sock->plug" identifier -> field_identifier)) ;) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar11 = local_230;" (assignment_expression "piVar11 = local_230" identifier = identifier) ;) (expression_statement "pSVar19 = &thisaddr;" (assignment_expression "pSVar19 = &thisaddr" identifier = (pointer_expression "&thisaddr" & identifier)) ;) (expression_statement "local_224 = paVar16;" (assignment_expression "local_224 = paVar16" identifier = identifier) ;) (for_statement "for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar19->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4);\n  }" for ( (assignment_expression "iVar13 = 0x84" identifier = number_literal) ; (binary_expression "iVar13 != 0" identifier != number_literal) ; (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ) (compound_statement "{\n    pSVar19->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4);\n  }" { (expression_statement "pSVar19->refcount = *piVar11;" (assignment_expression "pSVar19->refcount = *piVar11" (field_expression "pSVar19->refcount" identifier -> field_identifier) = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "piVar11 = piVar11 + (uint)bVar21 * -2 + 1;" (assignment_expression "piVar11 = piVar11 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "piVar11 + (uint)bVar21 * -2 + 1" (binary_expression "piVar11 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4);" (assignment_expression "pSVar19 = (SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4)" identifier = (cast_expression "(SockAddr_tag *)((int)pSVar19 + (uint)bVar21 * -8 + 4)" ( (type_descriptor "SockAddr_tag *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pSVar19 + (uint)bVar21 * -8 + 4)" ( (binary_expression "(int)pSVar19 + (uint)bVar21 * -8 + 4" (binary_expression "(int)pSVar19 + (uint)bVar21 * -8" (cast_expression "(int)pSVar19" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar21 * -8" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "(*(*pppVar1)->log)(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0);" (call_expression "(*(*pppVar1)->log)(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0)" (parenthesized_expression "(*(*pppVar1)->log)" ( (pointer_expression "*(*pppVar1)->log" * (field_expression "(*pppVar1)->log" (parenthesized_expression "(*pppVar1)" ( (pointer_expression "*pppVar1" * identifier) )) -> field_identifier)) )) (argument_list "(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0)" ( identifier , number_literal , (pointer_expression "&thisaddr" & identifier) , (field_expression "sock->port" identifier -> field_identifier) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;) (expression_statement "aVar6 = sock->addr->superfamily;" (assignment_expression "aVar6 = sock->addr->superfamily" identifier = (field_expression "sock->addr->superfamily" (field_expression "sock->addr" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (aVar6 == ADDRTYPE_UNSPEC) {\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" if (parenthesized_expression "(aVar6 == ADDRTYPE_UNSPEC)" ( (binary_expression "aVar6 == ADDRTYPE_UNSPEC" identifier == identifier) )) (compound_statement "{\nLAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" { (labeled_statement "LAB_000bb59f:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" statement_identifier : comment (expression_statement "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" (call_expression "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" identifier (argument_list "("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" ( (string_literal ""family != AF_UNSPEC"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;)) })) (if_statement "if (aVar6 == ABOUT_TO) {\n    iVar13 = 1;\n  }\n  else {\n    paVar16 = (sock->step).ai;\n    if (paVar16 == (addrinfo *)0x0) {\n      iVar13 = 2;\n    }\n    else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }\n  }" if (parenthesized_expression "(aVar6 == ABOUT_TO)" ( (binary_expression "aVar6 == ABOUT_TO" identifier == identifier) )) (compound_statement "{\n    iVar13 = 1;\n  }" { (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    paVar16 = (sock->step).ai;\n    if (paVar16 == (addrinfo *)0x0) {\n      iVar13 = 2;\n    }\n    else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }\n  }" else (compound_statement "{\n    paVar16 = (sock->step).ai;\n    if (paVar16 == (addrinfo *)0x0) {\n      iVar13 = 2;\n    }\n    else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }\n  }" { (expression_statement "paVar16 = (sock->step).ai;" (assignment_expression "paVar16 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (paVar16 == (addrinfo *)0x0) {\n      iVar13 = 2;\n    }\n    else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }" if (parenthesized_expression "(paVar16 == (addrinfo *)0x0)" ( (binary_expression "paVar16 == (addrinfo *)0x0" identifier == (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar13 = 2;\n    }" { (expression_statement "iVar13 = 2;" (assignment_expression "iVar13 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }" else (compound_statement "{\n      iVar13 = paVar16->ai_family;\n      if (iVar13 == 0) goto LAB_000bb59f;\n    }" { (expression_statement "iVar13 = paVar16->ai_family;" (assignment_expression "iVar13 = paVar16->ai_family" identifier = (field_expression "paVar16->ai_family" identifier -> field_identifier)) ;) (if_statement "if (iVar13 == 0) goto LAB_000bb59f;" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb59f;" goto statement_identifier ;)) }))) }))) (expression_statement "iVar8 = socket(iVar13,1,0);" (assignment_expression "iVar8 = socket(iVar13,1,0)" identifier = (call_expression "socket(iVar13,1,0)" identifier (argument_list "(iVar13,1,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "sock->s = iVar8;" (assignment_expression "sock->s = iVar8" (field_expression "sock->s" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar8 < 0) {\n    piVar11 = __errno_location();\n    local_4e4 = *piVar11;\nLAB_000bb25b:\n    add234(sktree,sock);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    cloexec(iVar8);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }\n    puVar7 = PTR_in6addr_any_0013afc0;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar20 = __addr;\n    for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }\n    uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (iVar13 == 1) {\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar13 != 10) {\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }\n    iVar9 = (int)(short)uVar15;\n    iVar13 = iVar9 + -1;\n    uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    add234(sktree,sock);\n  }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar11 = __errno_location();\n    local_4e4 = *piVar11;\nLAB_000bb25b:\n    add234(sktree,sock);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }" { (expression_statement "piVar11 = __errno_location();" (assignment_expression "piVar11 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar11;" (assignment_expression "local_4e4 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (labeled_statement "LAB_000bb25b:\n    add234(sktree,sock);" statement_identifier : (expression_statement "add234(sktree,sock);" (call_expression "add234(sktree,sock)" identifier (argument_list "(sktree,sock)" ( identifier , identifier ))) ;)) (if_statement "if (local_4e4 == 0) goto LAB_000bb275;" if (parenthesized_expression "(local_4e4 == 0)" ( (binary_expression "local_4e4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb275;" goto statement_identifier ;)) }) (else_clause "else {\n    cloexec(iVar8);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }\n    puVar7 = PTR_in6addr_any_0013afc0;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar20 = __addr;\n    for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }\n    uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (iVar13 == 1) {\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar13 != 10) {\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }\n    iVar9 = (int)(short)uVar15;\n    iVar13 = iVar9 + -1;\n    uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    add234(sktree,sock);\n  }" else (compound_statement "{\n    cloexec(iVar8);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }\n    puVar7 = PTR_in6addr_any_0013afc0;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar20 = __addr;\n    for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }\n    uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (iVar13 == 1) {\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar13 != 10) {\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }\n    iVar9 = (int)(short)uVar15;\n    iVar13 = iVar9 + -1;\n    uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    add234(sktree,sock);\n  }" { (expression_statement "cloexec(iVar8);" (call_expression "cloexec(iVar8)" identifier (argument_list "(iVar8)" ( identifier ))) ;) (if_statement "if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }" if (parenthesized_expression "(sock->oobinline != 0)" ( (binary_expression "sock->oobinline != 0" (field_expression "sock->oobinline" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      close(iVar8);\n      goto LAB_000bb25b;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar9 = setsockopt(iVar8,1,10,&b,4);" (assignment_expression "iVar9 = setsockopt(iVar8,1,10,&b,4)" identifier = (call_expression "setsockopt(iVar8,1,10,&b,4)" identifier (argument_list "(iVar8,1,10,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar9) goto LAB_000bb0b8;" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_000bb0b8;" goto statement_identifier ;)) (labeled_statement "LAB_000bb37a:\n      piVar11 = __errno_location();" statement_identifier : (expression_statement "piVar11 = __errno_location();" (assignment_expression "piVar11 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "local_4e4 = *piVar11;" (assignment_expression "local_4e4 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "close(iVar8);" (call_expression "close(iVar8)" identifier (argument_list "(iVar8)" ( identifier ))) ;) (goto_statement "goto LAB_000bb25b;" goto statement_identifier ;) })) (labeled_statement "LAB_000bb0b8:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }" statement_identifier : (if_statement "if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }" if (parenthesized_expression "(sock->nodelay == 0)" ( (binary_expression "sock->nodelay == 0" (field_expression "sock->nodelay" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      iVar9 = sock->keepalive;\n    }" { (expression_statement "iVar9 = sock->keepalive;" (assignment_expression "iVar9 = sock->keepalive" identifier = (field_expression "sock->keepalive" identifier -> field_identifier)) ;) }) (else_clause "else {\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }" else (compound_statement "{\n      b = 1;\n      iVar9 = setsockopt(iVar8,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n      iVar9 = sock->keepalive;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar9 = setsockopt(iVar8,6,1,&b,4);" (assignment_expression "iVar9 = setsockopt(iVar8,6,1,&b,4)" identifier = (call_expression "setsockopt(iVar8,6,1,&b,4)" identifier (argument_list "(iVar8,6,1,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (iVar9 < 0) goto LAB_000bb37a;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000bb37a;" goto statement_identifier ;)) (expression_statement "iVar9 = sock->keepalive;" (assignment_expression "iVar9 = sock->keepalive" identifier = (field_expression "sock->keepalive" identifier -> field_identifier)) ;) })))) (if_statement "if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n      b = 1;\n      iVar9 = setsockopt(iVar8,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_000bb37a;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar9 = setsockopt(iVar8,1,9,&b,4);" (assignment_expression "iVar9 = setsockopt(iVar8,1,9,&b,4)" identifier = (call_expression "setsockopt(iVar8,1,9,&b,4)" identifier (argument_list "(iVar8,1,9,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (iVar9 < 0) goto LAB_000bb37a;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000bb37a;" goto statement_identifier ;)) })) (expression_statement "puVar7 = PTR_in6addr_any_0013afc0;" (assignment_expression "puVar7 = PTR_in6addr_any_0013afc0" identifier = identifier) ;) (expression_statement "iVar9 = sock->privport;" (assignment_expression "iVar9 = sock->privport" identifier = (field_expression "sock->privport" identifier -> field_identifier)) ;) (expression_statement "__addr = &u;" (assignment_expression "__addr = &u" identifier = (pointer_expression "&u" & identifier)) ;) (expression_statement "psVar20 = __addr;" (assignment_expression "psVar20 = __addr" identifier = identifier) ;) (for_statement "for (iVar14 = 0x20; iVar14 != 0; iVar14 = iVar14 + -1) {\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }" for ( (assignment_expression "iVar14 = 0x20" identifier = number_literal) ; (binary_expression "iVar14 != 0" identifier != number_literal) ; (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ) (compound_statement "{\n      *(undefined4 *)psVar20 = 0;\n      psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);\n    }" { (expression_statement "*(undefined4 *)psVar20 = 0;" (assignment_expression "*(undefined4 *)psVar20 = 0" (pointer_expression "*(undefined4 *)psVar20" * (cast_expression "(undefined4 *)psVar20" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4);" (assignment_expression "psVar20 = (sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4)" identifier = (cast_expression "(sockaddr_union *)((int)psVar20 + (uint)bVar21 * -8 + 4)" ( (type_descriptor "sockaddr_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar20 + (uint)bVar21 * -8 + 4)" ( (binary_expression "(int)psVar20 + (uint)bVar21 * -8 + 4" (binary_expression "(int)psVar20 + (uint)bVar21 * -8" (cast_expression "(int)psVar20" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar21 * -8" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff;" (assignment_expression "uVar15 = ~-(ushort)(iVar9 == 0) & 0x3ff" identifier = (binary_expression "~-(ushort)(iVar9 == 0) & 0x3ff" (unary_expression "~-(ushort)(iVar9 == 0)" ~ (unary_expression "-(ushort)(iVar9 == 0)" - (call_expression "(ushort)(iVar9 == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) ))))) & number_literal)) ;) (if_statement "if (iVar13 == 1) {\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" if (parenthesized_expression "(iVar13 == 1)" ( (binary_expression "iVar13 == 1" identifier == number_literal) )) (compound_statement "{\n      if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar10 = sock->addr->hostname;\n      sVar12 = strlen(pcVar10);\n      if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      u.storage.ss_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);\nLAB_000bb195:\n      nonblock(iVar8);\n      iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);\n      if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar13 = 0;\n      if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }\n      uxsel_set(sock->s,iVar13,net_select_result);\n      add234(sktree,sock);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" { (if_statement "if (sock->port != 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" if (parenthesized_expression "(sock->port != 0)" ( (binary_expression "sock->port != 0" (field_expression "sock->port" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" { comment (expression_statement "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");" (call_expression "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" identifier (argument_list "("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" ( (string_literal ""sock->port == 0"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (expression_statement "pcVar10 = sock->addr->hostname;" (assignment_expression "pcVar10 = sock->addr->hostname" identifier = (field_expression "sock->addr->hostname" (field_expression "sock->addr" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "sVar12 = strlen(pcVar10);" (assignment_expression "sVar12 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (0x6b < sVar12) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" if (parenthesized_expression "(0x6b < sVar12)" ( (binary_expression "0x6b < sVar12" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" { comment (expression_statement "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");" (call_expression "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" identifier (argument_list "("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" ( (string_literal ""strlen(sock->addr->hostname) < sizeof u.su.sun_path"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (expression_statement "u.storage.ss_family = 1;" (assignment_expression "u.storage.ss_family = 1" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "__len = 0x6e;" (assignment_expression "__len = 0x6e" identifier = number_literal) ;) (expression_statement "__memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c);" (call_expression "__memcpy_chk(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c)" identifier (argument_list "(u.storage.__ss_padding,pcVar10,sVar12 + 1,0x6c)" ( (field_expression "u.storage.__ss_padding" (field_expression "u.storage" identifier . field_identifier) . field_identifier) , identifier , (binary_expression "sVar12 + 1" identifier + number_literal) , number_literal ))) ;) (labeled_statement "LAB_000bb195:\n      nonblock(iVar8);" statement_identifier : (expression_statement "nonblock(iVar8);" (call_expression "nonblock(iVar8)" identifier (argument_list "(iVar8)" ( identifier ))) ;)) (expression_statement "iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len);" (assignment_expression "iVar13 = connect(iVar8,(sockaddr *)&__addr->storage,__len)" identifier = (call_expression "connect(iVar8,(sockaddr *)&__addr->storage,__len)" identifier (argument_list "(iVar8,(sockaddr *)&__addr->storage,__len)" ( identifier , (cast_expression "(sockaddr *)&__addr->storage" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__addr->storage" & (field_expression "__addr->storage" identifier -> field_identifier))) , identifier )))) ;) (if_statement "if (iVar13 < 0) {\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }" if (parenthesized_expression "(iVar13 < 0)" ( (binary_expression "iVar13 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }" { (expression_statement "piVar11 = __errno_location();" (assignment_expression "piVar11 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar11;" (assignment_expression "local_4e4 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (local_4e4 != 0x73) goto LAB_000bb25b;" if (parenthesized_expression "(local_4e4 != 0x73)" ( (binary_expression "local_4e4 != 0x73" identifier != number_literal) )) (goto_statement "goto LAB_000bb25b;" goto statement_identifier ;)) }) (else_clause "else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }" else (compound_statement "{\n        sock->connected = 1;\n        sock->writable = 1;\n      }" { (expression_statement "sock->connected = 1;" (assignment_expression "sock->connected = 1" (field_expression "sock->connected" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->writable = 1;" (assignment_expression "sock->writable = 1" (field_expression "sock->writable" identifier -> field_identifier) = number_literal) ;) }))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (if_statement "if (sock->pending_error == 0) {\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }" if (parenthesized_expression "(sock->pending_error == 0)" ( (binary_expression "sock->pending_error == 0" (field_expression "sock->pending_error" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }\n      }" { (if_statement "if (sock->listener == 0) {\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        else {\n          iVar13 = 1;\n        }" if (parenthesized_expression "(sock->listener == 0)" ( (binary_expression "sock->listener == 0" (field_expression "sock->listener" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n          if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }\n          iVar9 = bufchain_size(&sock->output_data);\n          if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }\n        }" { (if_statement "if (sock->connected == 0) {\n            iVar8 = 2;\n            iVar13 = 2;\n          }\n          else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }" if (parenthesized_expression "(sock->connected == 0)" ( (binary_expression "sock->connected == 0" (field_expression "sock->connected" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            iVar8 = 2;\n            iVar13 = 2;\n          }" { (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "iVar13 = 2;" (assignment_expression "iVar13 = 2" identifier = number_literal) ;) }) (else_clause "else {\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }" else (compound_statement "{\n            iVar8 = 2;\n            iVar13 = 0;\n            if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }\n          }" { (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (if_statement "if ((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {\n              iVar13 = 5;\n            }" if (parenthesized_expression "((sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0))" ( (binary_expression "(sock->frozen == 0) &&\n               (iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)" (parenthesized_expression "(sock->frozen == 0)" ( (binary_expression "sock->frozen == 0" (field_expression "sock->frozen" identifier -> field_identifier) == number_literal) )) && (parenthesized_expression "(iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)" ( (comma_expression "iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0" (assignment_expression "iVar8 = (-(uint)(sock->incomingeof == 0) & 5) + 2" identifier = (binary_expression "(-(uint)(sock->incomingeof == 0) & 5) + 2" (parenthesized_expression "(-(uint)(sock->incomingeof == 0) & 5)" ( (binary_expression "-(uint)(sock->incomingeof == 0) & 5" (unary_expression "-(uint)(sock->incomingeof == 0)" - (call_expression "(uint)(sock->incomingeof == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(sock->incomingeof == 0)" ( (binary_expression "sock->incomingeof == 0" (field_expression "sock->incomingeof" identifier -> field_identifier) == number_literal) )))) & number_literal) )) + number_literal)) , (binary_expression "sock->incomingeof == 0" (field_expression "sock->incomingeof" identifier -> field_identifier) == number_literal)) ))) )) (compound_statement "{\n              iVar13 = 5;\n            }" { (expression_statement "iVar13 = 5;" (assignment_expression "iVar13 = 5" identifier = number_literal) ;) })) }))) (expression_statement "iVar9 = bufchain_size(&sock->output_data);" (assignment_expression "iVar9 = bufchain_size(&sock->output_data)" identifier = (call_expression "bufchain_size(&sock->output_data)" identifier (argument_list "(&sock->output_data)" ( (pointer_expression "&sock->output_data" & (field_expression "sock->output_data" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar9 != 0) {\n            iVar13 = iVar8;\n          }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar13 = iVar8;\n          }" { (expression_statement "iVar13 = iVar8;" (assignment_expression "iVar13 = iVar8" identifier = identifier) ;) })) }) (else_clause "else {\n          iVar13 = 1;\n        }" else (compound_statement "{\n          iVar13 = 1;\n        }" { (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) }))) })) (expression_statement "uxsel_set(sock->s,iVar13,net_select_result);" (call_expression "uxsel_set(sock->s,iVar13,net_select_result)" identifier (argument_list "(sock->s,iVar13,net_select_result)" ( (field_expression "sock->s" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "add234(sktree,sock);" (call_expression "add234(sktree,sock)" identifier (argument_list "(sktree,sock)" ( identifier , identifier ))) ;) (expression_statement "local_4e4 = 0;" (assignment_expression "local_4e4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000bb275;" goto statement_identifier ;) })) (if_statement "if (iVar13 != 10) {\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }" if (parenthesized_expression "(iVar13 != 10)" ( (binary_expression "iVar13 != 10" identifier != number_literal) )) (compound_statement "{\n      uVar17 = uVar15;\n      if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }\nLAB_000bb180:\n      paVar16 = (sock->step).ai;\n      uVar15 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar16->ai_addr;\n      __len = paVar16->ai_addrlen;\n      (__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;\n      goto LAB_000bb195;\n    }" { (expression_statement "uVar17 = uVar15;" (assignment_expression "uVar17 = uVar15" identifier = identifier) ;) (if_statement "if (iVar13 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" if (parenthesized_expression "(iVar13 != 2)" ( (binary_expression "iVar13 != 2" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" { comment (expression_statement "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");" (call_expression "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" identifier (argument_list "("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" ( (string_literal ""family == AF_INET"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (while_statement "while( true ) {\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar17 = uVar17 - 1;\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = 2;\n        u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;\n        iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);\n        if (-1 < iVar13) break;\n        piVar11 = __errno_location();\n        local_4e4 = *piVar11;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;\n        uVar15 = uVar15 - 1;\n      }" { (expression_statement "uVar17 = uVar17 - 1;" (assignment_expression "uVar17 = uVar17 - 1" identifier = (binary_expression "uVar17 - 1" identifier - number_literal)) ;) (expression_statement "u.sin6.sin6_flowinfo = 0;" (assignment_expression "u.sin6.sin6_flowinfo = 0" (field_expression "u.sin6.sin6_flowinfo" (field_expression "u.sin6" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "u.storage.ss_family = 2;" (assignment_expression "u.storage.ss_family = 2" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "u.sin.sin_port = uVar15 << 8 | uVar15 >> 8;" (assignment_expression "u.sin.sin_port = uVar15 << 8 | uVar15 >> 8" (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier) = (binary_expression "uVar15 << 8 | uVar15 >> 8" (binary_expression "uVar15 << 8" identifier << number_literal) | (binary_expression "uVar15 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10);" (assignment_expression "iVar13 = bind(iVar8,(sockaddr *)&__addr->storage,0x10)" identifier = (call_expression "bind(iVar8,(sockaddr *)&__addr->storage,0x10)" identifier (argument_list "(iVar8,(sockaddr *)&__addr->storage,0x10)" ( identifier , (cast_expression "(sockaddr *)&__addr->storage" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__addr->storage" & (field_expression "__addr->storage" identifier -> field_identifier))) , number_literal )))) ;) (if_statement "if (-1 < iVar13) break;" if (parenthesized_expression "(-1 < iVar13)" ( (binary_expression "-1 < iVar13" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar11 = __errno_location();" (assignment_expression "piVar11 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar11;" (assignment_expression "local_4e4 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" if (parenthesized_expression "(local_4e4 != 0x62)" ( (binary_expression "local_4e4 != 0x62" identifier != number_literal) )) (compound_statement "{\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" { (if_statement "if (local_4e4 != 0) goto LAB_000bb2a8;" if (parenthesized_expression "(local_4e4 != 0)" ( (binary_expression "local_4e4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (if_statement "if ((uVar17 == 0xffff) || (uVar17 == 0)) goto LAB_000bb2a8;" if (parenthesized_expression "((uVar17 == 0xffff) || (uVar17 == 0))" ( (binary_expression "(uVar17 == 0xffff) || (uVar17 == 0)" (parenthesized_expression "(uVar17 == 0xffff)" ( (binary_expression "uVar17 == 0xffff" identifier == number_literal) )) || (parenthesized_expression "(uVar17 == 0)" ( (binary_expression "uVar17 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) })) (labeled_statement "LAB_000bb180:\n      paVar16 = (sock->step).ai;" statement_identifier : (expression_statement "paVar16 = (sock->step).ai;" (assignment_expression "paVar16 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;)) (expression_statement "uVar15 = (ushort)sock->port;" (assignment_expression "uVar15 = (ushort)sock->port" identifier = (cast_expression "(ushort)sock->port" ( (type_descriptor "ushort" type_identifier) ) (field_expression "sock->port" identifier -> field_identifier))) ;) (expression_statement "__addr = (sockaddr_union *)paVar16->ai_addr;" (assignment_expression "__addr = (sockaddr_union *)paVar16->ai_addr" identifier = (cast_expression "(sockaddr_union *)paVar16->ai_addr" ( (type_descriptor "sockaddr_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "paVar16->ai_addr" identifier -> field_identifier))) ;) (expression_statement "__len = paVar16->ai_addrlen;" (assignment_expression "__len = paVar16->ai_addrlen" identifier = (field_expression "paVar16->ai_addrlen" identifier -> field_identifier)) ;) (expression_statement "(__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8;" (assignment_expression "(__addr->sin).sin_port = uVar15 << 8 | uVar15 >> 8" (field_expression "(__addr->sin).sin_port" (parenthesized_expression "(__addr->sin)" ( (field_expression "__addr->sin" identifier -> field_identifier) )) . field_identifier) = (binary_expression "uVar15 << 8 | uVar15 >> 8" (binary_expression "uVar15 << 8" identifier << number_literal) | (binary_expression "uVar15 >> 8" identifier >> number_literal))) ;) (goto_statement "goto LAB_000bb195;" goto statement_identifier ;) })) (expression_statement "iVar9 = (int)(short)uVar15;" (assignment_expression "iVar9 = (int)(short)uVar15" identifier = (cast_expression "(int)(short)uVar15" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)uVar15" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "iVar13 = iVar9 + -1;" (assignment_expression "iVar13 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" identifier = (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" * (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 4)" ( (binary_expression "PTR_in6addr_any_0013afc0 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);" (assignment_expression "uVar5 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" identifier = (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" * (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 8)" ( (binary_expression "PTR_in6addr_any_0013afc0 + 8" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar7;\n      u._20_4_ = *(undefined4 *)(puVar7 + 0xc);\n      u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;\n      u._12_4_ = uVar4;\n      u._16_4_ = uVar5;\n      iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);\n      if (-1 < iVar14) goto LAB_000bb180;\n      piVar11 = __errno_location();\n      local_4e4 = *piVar11;\n      if (local_4e4 != 0x62) break;\n      if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;\n    }" { (expression_statement "u.storage.ss_family = 10;" (assignment_expression "u.storage.ss_family = 10" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "u._8_4_ = *(undefined4 *)puVar7;" (assignment_expression "u._8_4_ = *(undefined4 *)puVar7" (field_expression "u._8_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)puVar7" * (cast_expression "(undefined4 *)puVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "u._20_4_ = *(undefined4 *)(puVar7 + 0xc);" (assignment_expression "u._20_4_ = *(undefined4 *)(puVar7 + 0xc)" (field_expression "u._20_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(puVar7 + 0xc)" * (cast_expression "(undefined4 *)(puVar7 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xc)" ( (binary_expression "puVar7 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8;" (assignment_expression "u.sin.sin_port = (ushort)iVar9 << 8 | (ushort)iVar9 >> 8" (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier) = (binary_expression "(ushort)iVar9 << 8 | (ushort)iVar9 >> 8" (binary_expression "(ushort)iVar9 << 8" (cast_expression "(ushort)iVar9" ( (type_descriptor "ushort" type_identifier) ) identifier) << number_literal) | (binary_expression "(ushort)iVar9 >> 8" (cast_expression "(ushort)iVar9" ( (type_descriptor "ushort" type_identifier) ) identifier) >> number_literal))) ;) (expression_statement "u._12_4_ = uVar4;" (assignment_expression "u._12_4_ = uVar4" (field_expression "u._12_4_" identifier . field_identifier) = identifier) ;) (expression_statement "u._16_4_ = uVar5;" (assignment_expression "u._16_4_ = uVar5" (field_expression "u._16_4_" identifier . field_identifier) = identifier) ;) (expression_statement "iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c);" (assignment_expression "iVar14 = bind(iVar8,(sockaddr *)&__addr->storage,0x1c)" identifier = (call_expression "bind(iVar8,(sockaddr *)&__addr->storage,0x1c)" identifier (argument_list "(iVar8,(sockaddr *)&__addr->storage,0x1c)" ( identifier , (cast_expression "(sockaddr *)&__addr->storage" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__addr->storage" & (field_expression "__addr->storage" identifier -> field_identifier))) , number_literal )))) ;) (if_statement "if (-1 < iVar14) goto LAB_000bb180;" if (parenthesized_expression "(-1 < iVar14)" ( (binary_expression "-1 < iVar14" number_literal < identifier) )) (goto_statement "goto LAB_000bb180;" goto statement_identifier ;)) (expression_statement "piVar11 = __errno_location();" (assignment_expression "piVar11 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar11;" (assignment_expression "local_4e4 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (if_statement "if (local_4e4 != 0x62) break;" if (parenthesized_expression "(local_4e4 != 0x62)" ( (binary_expression "local_4e4 != 0x62" identifier != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))\n      goto LAB_000bb2a8;" if (parenthesized_expression "((iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)))" ( (binary_expression "(iVar9 == 0) || (iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1))" (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1))" ( (comma_expression "iVar9 = iVar9 + -1, iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) , (binary_expression "iVar9 == iVar13 - (uint)(ushort)(uVar15 - 1)" identifier == (binary_expression "iVar13 - (uint)(ushort)(uVar15 - 1)" identifier - (call_expression "(uint)(ushort)(uVar15 - 1)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(uVar15 - 1)" ( (binary_expression "uVar15 - 1" identifier - number_literal) )))))) ))) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) })) (if_statement "if (local_4e4 == 0) goto LAB_000bb180;" if (parenthesized_expression "(local_4e4 == 0)" ( (binary_expression "local_4e4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb180;" goto statement_identifier ;)) (labeled_statement "LAB_000bb2a8:\n    add234(sktree,sock);" statement_identifier : (expression_statement "add234(sktree,sock);" (call_expression "add234(sktree,sock)" identifier (argument_list "(sktree,sock)" ( identifier , identifier ))) ;)) }))) (expression_statement "pSVar18 = sock->addr;" (assignment_expression "pSVar18 = sock->addr" identifier = (field_expression "sock->addr" identifier -> field_identifier)) ;) (expression_statement "aVar6 = pSVar18->superfamily;" (assignment_expression "aVar6 = pSVar18->superfamily" identifier = (field_expression "pSVar18->superfamily" identifier -> field_identifier)) ;) (expression_statement "local_224 = pSVar18->ais;" (assignment_expression "local_224 = pSVar18->ais" identifier = (field_expression "pSVar18->ais" identifier -> field_identifier)) ;) (expression_statement "piVar11 = local_230;" (assignment_expression "piVar11 = local_230" identifier = identifier) ;) (for_statement "for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }" for ( (assignment_expression "iVar13 = 0x84" identifier = number_literal) ; (binary_expression "iVar13 != 0" identifier != number_literal) ; (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ) (compound_statement "{\n    *piVar11 = pSVar18->refcount;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n  }" { (expression_statement "*piVar11 = pSVar18->refcount;" (assignment_expression "*piVar11 = pSVar18->refcount" (pointer_expression "*piVar11" * identifier) = (field_expression "pSVar18->refcount" identifier -> field_identifier)) ;) (expression_statement "pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);" (assignment_expression "pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4)" identifier = (call_expression "(SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4)" (parenthesized_expression "(SockAddr)" ( identifier )) (argument_list "((int)pSVar18 + (uint)bVar21 * -8 + 4)" ( (binary_expression "(int)pSVar18 + (uint)bVar21 * -8 + 4" (binary_expression "(int)pSVar18 + (uint)bVar21 * -8" (cast_expression "(int)pSVar18" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar21 * -8" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "piVar11 = piVar11 + (uint)bVar21 * -2 + 1;" (assignment_expression "piVar11 = piVar11 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "piVar11 + (uint)bVar21 * -2 + 1" (binary_expression "piVar11 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (aVar6 == ADDRTYPE_IPV6) {\n    local_224 = (sock->step).ai;\n  }" if (parenthesized_expression "(aVar6 == ADDRTYPE_IPV6)" ( (binary_expression "aVar6 == ADDRTYPE_IPV6" identifier == identifier) )) (compound_statement "{\n    local_224 = (sock->step).ai;\n  }" { (expression_statement "local_224 = (sock->step).ai;" (assignment_expression "local_224 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;) })) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "ppVar2 = *sock->plug;" (assignment_expression "ppVar2 = *sock->plug" identifier = (pointer_expression "*sock->plug" * (field_expression "sock->plug" identifier -> field_identifier))) ;) (expression_statement "piVar11 = local_230;" (assignment_expression "piVar11 = local_230" identifier = identifier) ;) (expression_statement "pSVar18 = &thisaddr;" (assignment_expression "pSVar18 = &thisaddr" identifier = (pointer_expression "&thisaddr" & identifier)) ;) (for_statement "for (iVar13 = 0x84; iVar13 != 0; iVar13 = iVar13 + -1) {\n    pSVar18->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n  }" for ( (assignment_expression "iVar13 = 0x84" identifier = number_literal) ; (binary_expression "iVar13 != 0" identifier != number_literal) ; (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ) (compound_statement "{\n    pSVar18->refcount = *piVar11;\n    piVar11 = piVar11 + (uint)bVar21 * -2 + 1;\n    pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);\n  }" { (expression_statement "pSVar18->refcount = *piVar11;" (assignment_expression "pSVar18->refcount = *piVar11" (field_expression "pSVar18->refcount" identifier -> field_identifier) = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "piVar11 = piVar11 + (uint)bVar21 * -2 + 1;" (assignment_expression "piVar11 = piVar11 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "piVar11 + (uint)bVar21 * -2 + 1" (binary_expression "piVar11 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4);" (assignment_expression "pSVar18 = (SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4)" identifier = (call_expression "(SockAddr)((int)pSVar18 + (uint)bVar21 * -8 + 4)" (parenthesized_expression "(SockAddr)" ( identifier )) (argument_list "((int)pSVar18 + (uint)bVar21 * -8 + 4)" ( (binary_expression "(int)pSVar18 + (uint)bVar21 * -8 + 4" (binary_expression "(int)pSVar18 + (uint)bVar21 * -8" (cast_expression "(int)pSVar18" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar21 * -8" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "p_Var3 = ppVar2->log;" (assignment_expression "p_Var3 = ppVar2->log" identifier = (field_expression "ppVar2->log" identifier -> field_identifier)) ;) (expression_statement "pcVar10 = strerror(local_4e4);" (assignment_expression "pcVar10 = strerror(local_4e4)" identifier = (call_expression "strerror(local_4e4)" identifier (argument_list "(local_4e4)" ( identifier )))) ;) (expression_statement "(*p_Var3)(sock->plug,1,&thisaddr,sock->port,pcVar10,local_4e4);" (call_expression "(*p_Var3)(sock->plug,1,&thisaddr,sock->port,pcVar10,local_4e4)" (parenthesized_expression "(*p_Var3)" ( (pointer_expression "*p_Var3" * identifier) )) (argument_list "(sock->plug,1,&thisaddr,sock->port,pcVar10,local_4e4)" ( (field_expression "sock->plug" identifier -> field_identifier) , number_literal , (pointer_expression "&thisaddr" & identifier) , (field_expression "sock->port" identifier -> field_identifier) , identifier , identifier ))) ;) (labeled_statement "LAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_4e4;\n  }" { (return_statement "return local_4e4;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_000bafa0(int param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    \n  FUN_000c60b0();\n}\n\n" (function_definition "int __regparm3 FUN_000bafa0(int param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    \n  FUN_000c60b0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000bafa0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    \n  FUN_000c60b0();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "ushort uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "char cVar12;" primitive_type identifier ;) (declaration "ushort uVar13;" type_identifier identifier ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "char cVar16;" primitive_type identifier ;) (declaration "sockaddr *psVar17;" type_identifier (pointer_declarator "*psVar17" * identifier) ;) (declaration "sockaddr *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "undefined4 *puVar18;" type_identifier (pointer_declarator "*puVar18" * identifier) ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar20;" type_identifier identifier ;) (declaration "int local_4e4;" primitive_type identifier ;) (declaration "undefined4 local_4c4;" type_identifier identifier ;) (declaration "sockaddr local_4c0;" type_identifier identifier ;) (declaration "undefined4 local_4b0;" type_identifier identifier ;) (declaration "undefined4 local_4ac;" type_identifier identifier ;) (declaration "undefined4 local_440 [132];" type_identifier (array_declarator "local_440 [132]" identifier [ number_literal ]) ;) (declaration "undefined4 local_230 [3];" type_identifier (array_declarator "local_230 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 local_224;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar20 = 0;" (assignment_expression "bVar20 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0xbafab;" (assignment_expression "uStack_14 = 0xbafab" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0009ef40(DAT_0013ba0c,param_1);" (call_expression "FUN_0009ef40(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;) (if_statement "if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 8))" ( (binary_expression "-1 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    close(*(int *)(param_1 + 8));\n  }" { (expression_statement "close(*(int *)(param_1 + 8));" (call_expression "close(*(int *)(param_1 + 8))" identifier (argument_list "(*(int *)(param_1 + 8))" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) })) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0x5c);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x5c)" * (cast_expression "(undefined4 **)(param_1 + 0x5c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = puVar14[2];" (assignment_expression "iVar8 = puVar14[2]" identifier = (subscript_expression "puVar14[2]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar14[3];" (assignment_expression "uVar11 = puVar14[3]" identifier = (subscript_expression "puVar14[3]" identifier [ number_literal ])) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (for_statement "for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar7 = 0x84" identifier = number_literal) ; (binary_expression "iVar7 != 0" identifier != number_literal) ; (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar15 = *puVar14;" (assignment_expression "*puVar15 = *puVar14" (pointer_expression "*puVar15" * identifier) = (pointer_expression "*puVar14" * identifier)) ;) (expression_statement "puVar14 = puVar14 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar14 = puVar14 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar14 + (uint)bVar20 * -2 + 1" (binary_expression "puVar14 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }" if (parenthesized_expression "(iVar8 == 2)" ( (binary_expression "iVar8 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }" { (expression_statement "uVar11 = *(undefined4 *)(param_1 + 0x60);" (assignment_expression "uVar11 = *(undefined4 *)(param_1 + 0x60)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) })) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (expression_statement "puVar18 = local_440;" (assignment_expression "puVar18 = local_440" identifier = identifier) ;) (expression_statement "local_224 = uVar11;" (assignment_expression "local_224 = uVar11" identifier = identifier) ;) (for_statement "for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar8 = 0x84" identifier = number_literal) ; (binary_expression "iVar8 != 0" identifier != number_literal) ; (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar18 = *puVar15;" (assignment_expression "*puVar18 = *puVar15" (pointer_expression "*puVar18" * identifier) = (pointer_expression "*puVar15" * identifier)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar18 = puVar18 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar18 = puVar18 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar18 + (uint)bVar20 * -2 + 1" (binary_expression "puVar18 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "(**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)*puVar14)" ( (pointer_expression "**(code **)*puVar14" * (pointer_expression "*(code **)*puVar14" * (cast_expression "(code **)*puVar14" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*puVar14" * identifier)))) )) (argument_list "(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x5c) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x5c) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x5c) + 8" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) {\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" { (labeled_statement "LAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" statement_identifier : (expression_statement "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" (call_expression "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" identifier (argument_list "("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" ( (string_literal ""family != AF_UNSPEC"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;)) })) (if_statement "if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" if (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar8 = 1;\n  }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" else (if_statement "if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x60) == 0)" ( (binary_expression "*(int *)(param_1 + 0x60) == 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar8 = 2;\n  }" { (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" else (compound_statement "{\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" { (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) goto LAB_000bb59f;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb59f;" goto statement_identifier ;)) }))))) (expression_statement "iVar7 = socket(iVar8,1,0);" (assignment_expression "iVar7 = socket(iVar8,1,0)" identifier = (call_expression "socket(iVar8,1,0)" identifier (argument_list "(iVar8,1,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar7;" (assignment_expression "*(int *)(param_1 + 8) = iVar7" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (labeled_statement "LAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);" statement_identifier : (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;)) (if_statement "if (local_4e4 == 0) goto LAB_000bb275;" if (parenthesized_expression "(local_4e4 == 0)" ( (binary_expression "local_4e4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb275;" goto statement_identifier ;)) }) (else_clause "else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" else (compound_statement "{\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" { (expression_statement "FUN_000ba410(iVar7);" (call_expression "FUN_000ba410(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }" { (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" identifier = number_literal) ;) (expression_statement "iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,1,10,&local_4c4,4)" identifier = (call_expression "setsockopt(iVar7,1,10,&local_4c4,4)" identifier (argument_list "(iVar7,1,10,&local_4c4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_4c4" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar19) goto LAB_000bb0b8;" if (parenthesized_expression "(-1 < iVar19)" ( (binary_expression "-1 < iVar19" number_literal < identifier) )) (goto_statement "goto LAB_000bb0b8;" goto statement_identifier ;)) (labeled_statement "LAB_000bb37a:\n      piVar5 = __errno_location();" statement_identifier : (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "close(iVar7);" (call_expression "close(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (goto_statement "goto LAB_000bb25b;" goto statement_identifier ;) })) (labeled_statement "LAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "iVar19 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" else (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" identifier = number_literal) ;) (expression_statement "iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,6,1,&local_4c4,4)" identifier = (call_expression "setsockopt(iVar7,6,1,&local_4c4,4)" identifier (argument_list "(iVar7,6,1,&local_4c4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_4c4" & identifier) , number_literal )))) ;) (if_statement "if (iVar19 < 0) goto LAB_000bb37a;" if (parenthesized_expression "(iVar19 < 0)" ( (binary_expression "iVar19 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000bb37a;" goto statement_identifier ;)) (expression_statement "iVar19 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) })))) (if_statement "if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }" if (parenthesized_expression "(iVar19 != 0)" ( (binary_expression "iVar19 != 0" identifier != number_literal) )) (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }" { (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" identifier = number_literal) ;) (expression_statement "iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,1,9,&local_4c4,4)" identifier = (call_expression "setsockopt(iVar7,1,9,&local_4c4,4)" identifier (argument_list "(iVar7,1,9,&local_4c4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_4c4" & identifier) , number_literal )))) ;) (if_statement "if (iVar19 < 0) goto LAB_000bb37a;" if (parenthesized_expression "(iVar19 < 0)" ( (binary_expression "iVar19 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000bb37a;" goto statement_identifier ;)) })) (expression_statement "puVar3 = PTR_in6addr_any_0013afc0;" (assignment_expression "puVar3 = PTR_in6addr_any_0013afc0" identifier = identifier) ;) (expression_statement "iVar19 = *(int *)(param_1 + 0x54);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x54)" identifier = (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "__addr = &local_4c0;" (assignment_expression "__addr = &local_4c0" identifier = (pointer_expression "&local_4c0" & identifier)) ;) (expression_statement "psVar17 = __addr;" (assignment_expression "psVar17 = __addr" identifier = identifier) ;) (for_statement "for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }" for ( (assignment_expression "iVar9 = 0x20" identifier = number_literal) ; (binary_expression "iVar9 != 0" identifier != number_literal) ; (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ) (compound_statement "{\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }" { (expression_statement "psVar17->sa_family = 0;" (assignment_expression "psVar17->sa_family = 0" (field_expression "psVar17->sa_family" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar17->sa_data[0] = '\0';" (assignment_expression "psVar17->sa_data[0] = '\0'" (subscript_expression "psVar17->sa_data[0]" (field_expression "psVar17->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar17->sa_data[1] = '\0';" (assignment_expression "psVar17->sa_data[1] = '\0'" (subscript_expression "psVar17->sa_data[1]" (field_expression "psVar17->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);" (assignment_expression "psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4)" identifier = (cast_expression "(sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar17 + (uint)bVar20 * -8 + 4)" ( (binary_expression "(int)psVar17 + (uint)bVar20 * -8 + 4" (binary_expression "(int)psVar17 + (uint)bVar20 * -8" (cast_expression "(int)psVar17" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar20 * -8" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;" (assignment_expression "uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff" identifier = (binary_expression "~-(ushort)(iVar19 == 0) & 0x3ff" (unary_expression "~-(ushort)(iVar19 == 0)" ~ (unary_expression "-(ushort)(iVar19 == 0)" - (call_expression "(ushort)(iVar19 == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(iVar19 == 0)" ( (binary_expression "iVar19 == 0" identifier == number_literal) ))))) & number_literal)) ;) (if_statement "if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" if (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" { (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" ( (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" { (expression_statement "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");" (call_expression "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" identifier (argument_list "("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" ( (string_literal ""sock->port == 0"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (expression_statement "pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);" (assignment_expression "pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10)" identifier = (cast_expression "(char *)(*(int *)(param_1 + 0x5c) + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x5c) + 0x10" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "sVar6 = strlen(pcVar4);" (assignment_expression "sVar6 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" if (parenthesized_expression "(0x6b < sVar6)" ( (binary_expression "0x6b < sVar6" number_literal < identifier) )) (compound_statement "{\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" { (expression_statement "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");" (call_expression "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" identifier (argument_list "("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" ( (string_literal ""strlen(sock->addr->hostname) < sizeof u.su.sun_path"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (expression_statement "local_4c0.sa_family = 1;" (assignment_expression "local_4c0.sa_family = 1" (field_expression "local_4c0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "__len = 0x6e;" (assignment_expression "__len = 0x6e" identifier = number_literal) ;) (expression_statement "__memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);" (call_expression "__memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c)" identifier (argument_list "(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c)" ( (field_expression "local_4c0.sa_data" identifier . field_identifier) , identifier , (binary_expression "sVar6 + 1" identifier + number_literal) , number_literal ))) ;) (labeled_statement "LAB_000bb195:\n      FUN_000ba530(iVar7);" statement_identifier : (expression_statement "FUN_000ba530(iVar7);" (call_expression "FUN_000ba530(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;)) (expression_statement "iVar8 = connect(iVar7,__addr,__len);" (assignment_expression "iVar8 = connect(iVar7,__addr,__len)" identifier = (call_expression "connect(iVar7,__addr,__len)" identifier (argument_list "(iVar7,__addr,__len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (local_4e4 != 0x73) goto LAB_000bb25b;" if (parenthesized_expression "(local_4e4 != 0x73)" ( (binary_expression "local_4e4 != 0x73" identifier != number_literal) )) (goto_statement "goto LAB_000bb25b;" goto statement_identifier ;)) }) (else_clause "else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" else (compound_statement "{\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "cVar12 = '\0';" (assignment_expression "cVar12 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }" { (expression_statement "cVar16 = '\x02';" (assignment_expression "cVar16 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar12 = '\x02';" (assignment_expression "cVar12 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) }) (else_clause "else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" else (compound_statement "{\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" { (expression_statement "cVar16 = '\x02';" (assignment_expression "cVar16 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "cVar12 = '\0';" (assignment_expression "cVar12 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }" if (parenthesized_expression "((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               )" ( (binary_expression "(*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" ( (comma_expression "cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0" (assignment_expression "cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" identifier = (binary_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (parenthesized_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U)" ( (binary_expression "-(*(int *)(param_1 + 0x40) == 0) & 5U" (unary_expression "-(*(int *)(param_1 + 0x40) == 0)" - (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) ))) & number_literal) )) + number_literal)) , (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n              cVar12 = '\x05';\n            }" { (expression_statement "cVar12 = '\x05';" (assignment_expression "cVar12 = '\x05'" identifier = (char_literal "'\x05'" ' escape_sequence ')) ;) })) }))) (expression_statement "iVar8 = FUN_000326a0(param_1 + 0x10);" (assignment_expression "iVar8 = FUN_000326a0(param_1 + 0x10)" identifier = (call_expression "FUN_000326a0(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) (if_statement "if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n            cVar12 = cVar16;\n          }" { (expression_statement "cVar12 = cVar16;" (assignment_expression "cVar12 = cVar16" identifier = identifier) ;) })) }) (else_clause "else {\n          cVar12 = '\x01';\n        }" else (compound_statement "{\n          cVar12 = '\x01';\n        }" { (expression_statement "cVar12 = '\x01';" (assignment_expression "cVar12 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) })) (expression_statement "FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);" (call_expression "FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;) (expression_statement "local_4e4 = 0;" (assignment_expression "local_4e4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000bb275;" goto statement_identifier ;) })) (if_statement "if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }" if (parenthesized_expression "(iVar8 != 10)" ( (binary_expression "iVar8 != 10" identifier != number_literal) )) (compound_statement "{\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }" { (expression_statement "uVar13 = uVar10;" (assignment_expression "uVar13 = uVar10" identifier = identifier) ;) (if_statement "if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" if (parenthesized_expression "(iVar8 != 2)" ( (binary_expression "iVar8 != 2" identifier != number_literal) )) (compound_statement "{\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" { (expression_statement "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");" (call_expression "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" identifier (argument_list "("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" ( (string_literal ""family == AF_INET"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) })) (while_statement "while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }" { (expression_statement "uVar13 = uVar13 - 1;" (assignment_expression "uVar13 = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "local_4c0.sa_data[2] = '\0';" (assignment_expression "local_4c0.sa_data[2] = '\0'" (subscript_expression "local_4c0.sa_data[2]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_data[3] = '\0';" (assignment_expression "local_4c0.sa_data[3] = '\0'" (subscript_expression "local_4c0.sa_data[3]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_data[4] = '\0';" (assignment_expression "local_4c0.sa_data[4] = '\0'" (subscript_expression "local_4c0.sa_data[4]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_data[5] = '\0';" (assignment_expression "local_4c0.sa_data[5] = '\0'" (subscript_expression "local_4c0.sa_data[5]" (field_expression "local_4c0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_4c0.sa_family = 2;" (assignment_expression "local_4c0.sa_family = 2" (field_expression "local_4c0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;" (assignment_expression "local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8" (field_expression "local_4c0.sa_data._0_2_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "uVar10 << 8 | uVar10 >> 8" (binary_expression "uVar10 << 8" identifier << number_literal) | (binary_expression "uVar10 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar8 = bind(iVar7,__addr,0x10);" (assignment_expression "iVar8 = bind(iVar7,__addr,0x10)" identifier = (call_expression "bind(iVar7,__addr,0x10)" identifier (argument_list "(iVar7,__addr,0x10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (-1 < iVar8) break;" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" if (parenthesized_expression "(local_4e4 != 0x62)" ( (binary_expression "local_4e4 != 0x62" identifier != number_literal) )) (compound_statement "{\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" { (if_statement "if (local_4e4 != 0) goto LAB_000bb2a8;" if (parenthesized_expression "(local_4e4 != 0)" ( (binary_expression "local_4e4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (if_statement "if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;" if (parenthesized_expression "((uVar13 == 0xffff) || (uVar13 == 0))" ( (binary_expression "(uVar13 == 0xffff) || (uVar13 == 0)" (parenthesized_expression "(uVar13 == 0xffff)" ( (binary_expression "uVar13 == 0xffff" identifier == number_literal) )) || (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) (expression_statement "uVar10 = uVar10 - 1;" (assignment_expression "uVar10 = uVar10 - 1" identifier = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) })) (labeled_statement "LAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);" statement_identifier : (expression_statement "__addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);" (assignment_expression "__addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" identifier = (pointer_expression "*(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" * (cast_expression "(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" ( (type_descriptor "sockaddr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x14" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;)) (expression_statement "__len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);" (assignment_expression "__len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" identifier = (pointer_expression "*(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" * (cast_expression "(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" ( (type_descriptor "socklen_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x10" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;" (assignment_expression "*(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8" (pointer_expression "*(ushort *)__addr->sa_data" * (cast_expression "(ushort *)__addr->sa_data" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__addr->sa_data" identifier -> field_identifier))) = (binary_expression "*(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8" (binary_expression "*(ushort *)(param_1 + 0x58) << 8" (pointer_expression "*(ushort *)(param_1 + 0x58)" * (cast_expression "(ushort *)(param_1 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)(param_1 + 0x58) >> 8" (pointer_expression "*(ushort *)(param_1 + 0x58)" * (cast_expression "(ushort *)(param_1 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) >> number_literal))) ;) (goto_statement "goto LAB_000bb195;" goto statement_identifier ;) })) (expression_statement "iVar19 = (int)(short)uVar10;" (assignment_expression "iVar19 = (int)(short)uVar10" identifier = (cast_expression "(int)(short)uVar10" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)uVar10" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "iVar8 = iVar19 + -1;" (assignment_expression "iVar8 = iVar19 + -1" identifier = (binary_expression "iVar19 + -1" identifier + number_literal)) ;) (expression_statement "uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);" (assignment_expression "uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" identifier = (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" * (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 4)" ( (binary_expression "PTR_in6addr_any_0013afc0 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" identifier = (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" * (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 8)" ( (binary_expression "PTR_in6addr_any_0013afc0 + 8" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }" { (expression_statement "local_4c0.sa_family = 10;" (assignment_expression "local_4c0.sa_family = 10" (field_expression "local_4c0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;" (assignment_expression "local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3" (field_expression "local_4c0.sa_data._6_4_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_4ac = *(undefined4 *)(puVar3 + 0xc);" (assignment_expression "local_4ac = *(undefined4 *)(puVar3 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar3 + 0xc)" * (cast_expression "(undefined4 *)(puVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xc)" ( (binary_expression "puVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;" (assignment_expression "local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8" (field_expression "local_4c0.sa_data._0_2_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "(ushort)iVar19 << 8 | (ushort)iVar19 >> 8" (binary_expression "(ushort)iVar19 << 8" (cast_expression "(ushort)iVar19" ( (type_descriptor "ushort" type_identifier) ) identifier) << number_literal) | (binary_expression "(ushort)iVar19 >> 8" (cast_expression "(ushort)iVar19" ( (type_descriptor "ushort" type_identifier) ) identifier) >> number_literal))) ;) (expression_statement "local_4c0.sa_data._10_4_ = uVar11;" (assignment_expression "local_4c0.sa_data._10_4_ = uVar11" (field_expression "local_4c0.sa_data._10_4_" (field_expression "local_4c0.sa_data" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "local_4b0 = uVar2;" (assignment_expression "local_4b0 = uVar2" identifier = identifier) ;) (expression_statement "iVar9 = bind(iVar7,__addr,0x1c);" (assignment_expression "iVar9 = bind(iVar7,__addr,0x1c)" identifier = (call_expression "bind(iVar7,__addr,0x1c)" identifier (argument_list "(iVar7,__addr,0x1c)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (-1 < iVar9) goto LAB_000bb180;" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_000bb180;" goto statement_identifier ;)) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (local_4e4 != 0x62) break;" if (parenthesized_expression "(local_4e4 != 0x62)" ( (binary_expression "local_4e4 != 0x62" identifier != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;" if (parenthesized_expression "((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))" ( (binary_expression "(iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1))" (parenthesized_expression "(iVar19 == 0)" ( (binary_expression "iVar19 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1))" ( (comma_expression "iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)" (assignment_expression "iVar19 = iVar19 + -1" identifier = (binary_expression "iVar19 + -1" identifier + number_literal)) , (binary_expression "iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)" identifier == (binary_expression "iVar8 - (uint)(ushort)(uVar10 - 1)" identifier - (call_expression "(uint)(ushort)(uVar10 - 1)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(uVar10 - 1)" ( (binary_expression "uVar10 - 1" identifier - number_literal) )))))) ))) )) (goto_statement "goto LAB_000bb2a8;" goto statement_identifier ;)) })) (if_statement "if (local_4e4 == 0) goto LAB_000bb180;" if (parenthesized_expression "(local_4e4 == 0)" ( (binary_expression "local_4e4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000bb180;" goto statement_identifier ;)) (labeled_statement "LAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);" statement_identifier : (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" identifier (argument_list "(DAT_0013ba0c,param_1)" ( identifier , identifier ))) ;)) }))) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0x5c);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x5c)" * (cast_expression "(undefined4 **)(param_1 + 0x5c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = puVar14[2];" (assignment_expression "iVar8 = puVar14[2]" identifier = (subscript_expression "puVar14[2]" identifier [ number_literal ])) ;) (expression_statement "local_224 = puVar14[3];" (assignment_expression "local_224 = puVar14[3]" identifier = (subscript_expression "puVar14[3]" identifier [ number_literal ])) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (for_statement "for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar7 = 0x84" identifier = number_literal) ; (binary_expression "iVar7 != 0" identifier != number_literal) ; (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar15 = *puVar14;" (assignment_expression "*puVar15 = *puVar14" (pointer_expression "*puVar15" * identifier) = (pointer_expression "*puVar14" * identifier)) ;) (expression_statement "puVar14 = puVar14 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar14 = puVar14 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar14 + (uint)bVar20 * -2 + 1" (binary_expression "puVar14 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }" if (parenthesized_expression "(iVar8 == 2)" ( (binary_expression "iVar8 == 2" identifier == number_literal) )) (compound_statement "{\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }" { (expression_statement "local_224 = *(undefined4 *)(param_1 + 0x60);" (assignment_expression "local_224 = *(undefined4 *)(param_1 + 0x60)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) })) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc)" identifier = (cast_expression "(undefined4 *)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))))) ;) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" identifier = identifier) ;) (expression_statement "puVar18 = local_440;" (assignment_expression "puVar18 = local_440" identifier = identifier) ;) (for_statement "for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" for ( (assignment_expression "iVar8 = 0x84" identifier = number_literal) ; (binary_expression "iVar8 != 0" identifier != number_literal) ; (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" { (expression_statement "*puVar18 = *puVar15;" (assignment_expression "*puVar18 = *puVar15" (pointer_expression "*puVar18" * identifier) = (pointer_expression "*puVar15" * identifier)) ;) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar18 = puVar18 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar18 = puVar18 + (uint)bVar20 * -2 + 1" identifier = (binary_expression "puVar18 + (uint)bVar20 * -2 + 1" (binary_expression "puVar18 + (uint)bVar20 * -2" identifier + (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "pcVar1 = (code *)*puVar14;" (assignment_expression "pcVar1 = (code *)*puVar14" identifier = (cast_expression "(code *)*puVar14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar14" * identifier))) ;) (expression_statement "pcVar4 = strerror(local_4e4);" (assignment_expression "pcVar4 = strerror(local_4e4)" identifier = (call_expression "strerror(local_4e4)" identifier (argument_list "(local_4e4)" ( identifier )))) ;) (expression_statement "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);" (call_expression "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , identifier , identifier ))) ;) (labeled_statement "LAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_4e4;\n  }" { (return_statement "return local_4e4;" return identifier ;) }))) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT)))) )) (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (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 (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , 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 IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (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 { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression 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 & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = LIT) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT -> field_identifier) [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT -> field_identifier) [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))))) & LIT)) ;) (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (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) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (field_expression IDENT . field_identifier) , IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (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) )))) = 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 = (char_literal ' escape_sequence ')) ;) (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 (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (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 ( (comma_expression (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) & LIT) )) + LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) = (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (break_statement break ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_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 (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 *)) ) (field_expression IDENT -> field_identifier))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) | (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 IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (field_expression (field_expression IDENT . field_identifier) . field_identifier) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT))) ;) (expression_statement (assignment_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT == (binary_expression IDENT - (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression IDENT - LIT) )))))) ))) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int __regparm3 FUN_000bafa0(int param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    \n  FUN_000c60b0();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000bafa0(int param_1)" (identifier "FUN_000bafa0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  ushort uVar10;\n  undefined4 uVar11;\n  char cVar12;\n  ushort uVar13;\n  undefined4 *puVar14;\n  undefined4 *puVar15;\n  socklen_t __len;\n  char cVar16;\n  sockaddr *psVar17;\n  sockaddr *__addr;\n  undefined4 *puVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  byte bVar20;\n  int local_4e4;\n  undefined4 local_4c4;\n  sockaddr local_4c0;\n  undefined4 local_4b0;\n  undefined4 local_4ac;\n  undefined4 local_440 [132];\n  undefined4 local_230 [3];\n  undefined4 local_224;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar20 = 0;\n  uStack_14 = 0xbafab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0009ef40(DAT_0013ba0c,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  uVar11 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0xc);\n  local_230[0] = 1;\n  puVar15 = local_230;\n  puVar18 = local_440;\n  local_224 = uVar11;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar8 == 0) {\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }\n  iVar7 = socket(iVar8,1,0);\n  *(int *)(param_1 + 8) = iVar7;\n  if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }\n  puVar14 = *(undefined4 **)(param_1 + 0x5c);\n  iVar8 = puVar14[2];\n  local_224 = puVar14[3];\n  puVar15 = local_230;\n  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }\n  if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }\n  local_230[0] = 1;\n  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);\n  puVar15 = local_230;\n  puVar18 = local_440;\n  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }\n  pcVar1 = (code *)*puVar14;\n  pcVar4 = strerror(local_4e4);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);\nLAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }\n                    \n  FUN_000c60b0();\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "ushort uVar10;" (type_identifier "ushort") (identifier "uVar10") (; ";")) (declaration "undefined4 uVar11;" (type_identifier "undefined4") (identifier "uVar11") (; ";")) (declaration "char cVar12;" (primitive_type "char") (identifier "cVar12") (; ";")) (declaration "ushort uVar13;" (type_identifier "ushort") (identifier "uVar13") (; ";")) (declaration "undefined4 *puVar14;" (type_identifier "undefined4") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "undefined4 *puVar15;" (type_identifier "undefined4") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "socklen_t __len;" (type_identifier "socklen_t") (identifier "__len") (; ";")) (declaration "char cVar16;" (primitive_type "char") (identifier "cVar16") (; ";")) (declaration "sockaddr *psVar17;" (type_identifier "sockaddr") (pointer_declarator "*psVar17" (* "*") (identifier "psVar17")) (; ";")) (declaration "sockaddr *__addr;" (type_identifier "sockaddr") (pointer_declarator "*__addr" (* "*") (identifier "__addr")) (; ";")) (declaration "undefined4 *puVar18;" (type_identifier "undefined4") (pointer_declarator "*puVar18" (* "*") (identifier "puVar18")) (; ";")) (declaration "int iVar19;" (primitive_type "int") (identifier "iVar19") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar20;" (type_identifier "byte") (identifier "bVar20") (; ";")) (declaration "int local_4e4;" (primitive_type "int") (identifier "local_4e4") (; ";")) (declaration "undefined4 local_4c4;" (type_identifier "undefined4") (identifier "local_4c4") (; ";")) (declaration "sockaddr local_4c0;" (type_identifier "sockaddr") (identifier "local_4c0") (; ";")) (declaration "undefined4 local_4b0;" (type_identifier "undefined4") (identifier "local_4b0") (; ";")) (declaration "undefined4 local_4ac;" (type_identifier "undefined4") (identifier "local_4ac") (; ";")) (declaration "undefined4 local_440 [132];" (type_identifier "undefined4") (array_declarator "local_440 [132]" (identifier "local_440") ([ "[") (number_literal "132") (] "]")) (; ";")) (declaration "undefined4 local_230 [3];" (type_identifier "undefined4") (array_declarator "local_230 [3]" (identifier "local_230") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 local_224;" (type_identifier "undefined4") (identifier "local_224") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar20 = 0;" (assignment_expression "bVar20 = 0" (identifier "bVar20") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0xbafab;" (assignment_expression "uStack_14 = 0xbafab" (identifier "uStack_14") (= "=") (number_literal "0xbafab")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_0009ef40(DAT_0013ba0c,param_1);" (call_expression "FUN_0009ef40(DAT_0013ba0c,param_1)" (identifier "FUN_0009ef40") (argument_list "(DAT_0013ba0c,param_1)" (( "(") (identifier "DAT_0013ba0c") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(param_1 + 8))" (( "(") (binary_expression "-1 < *(int *)(param_1 + 8)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    close(*(int *)(param_1 + 8));\n  }" ({ "{") (expression_statement "close(*(int *)(param_1 + 8));" (call_expression "close(*(int *)(param_1 + 8))" (identifier "close") (argument_list "(*(int *)(param_1 + 8))" (( "(") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0x5c);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0x5c)" (identifier "puVar14") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "iVar8 = puVar14[2];" (assignment_expression "iVar8 = puVar14[2]" (identifier "iVar8") (= "=") (subscript_expression "puVar14[2]" (identifier "puVar14") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar11 = puVar14[3];" (assignment_expression "uVar11 = puVar14[3]" (identifier "uVar11") (= "=") (subscript_expression "puVar14[3]" (identifier "puVar14") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" (identifier "puVar15") (= "=") (identifier "local_230")) (; ";")) (for_statement "for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar7 = 0x84" (identifier "iVar7") (= "=") (number_literal "0x84")) (; ";") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar15 = *puVar14;" (assignment_expression "*puVar15 = *puVar14" (pointer_expression "*puVar15" (* "*") (identifier "puVar15")) (= "=") (pointer_expression "*puVar14" (* "*") (identifier "puVar14"))) (; ";")) (expression_statement "puVar14 = puVar14 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar14 = puVar14 + (uint)bVar20 * -2 + 1" (identifier "puVar14") (= "=") (binary_expression "puVar14 + (uint)bVar20 * -2 + 1" (binary_expression "puVar14 + (uint)bVar20 * -2" (identifier "puVar14") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" (identifier "puVar15") (= "=") (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" (identifier "puVar15") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (iVar8 == 2) {\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }" (if "if") (parenthesized_expression "(iVar8 == 2)" (( "(") (binary_expression "iVar8 == 2" (identifier "iVar8") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar11 = *(undefined4 *)(param_1 + 0x60);\n  }" ({ "{") (expression_statement "uVar11 = *(undefined4 *)(param_1 + 0x60);" (assignment_expression "uVar11 = *(undefined4 *)(param_1 + 0x60)" (identifier "uVar11") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (} "}"))) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0xc)" (identifier "puVar14") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" (identifier "local_230") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" (identifier "puVar15") (= "=") (identifier "local_230")) (; ";")) (expression_statement "puVar18 = local_440;" (assignment_expression "puVar18 = local_440" (identifier "puVar18") (= "=") (identifier "local_440")) (; ";")) (expression_statement "local_224 = uVar11;" (assignment_expression "local_224 = uVar11" (identifier "local_224") (= "=") (identifier "uVar11")) (; ";")) (for_statement "for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar8 = 0x84" (identifier "iVar8") (= "=") (number_literal "0x84")) (; ";") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar18 = *puVar15;" (assignment_expression "*puVar18 = *puVar15" (pointer_expression "*puVar18" (* "*") (identifier "puVar18")) (= "=") (pointer_expression "*puVar15" (* "*") (identifier "puVar15"))) (; ";")) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" (identifier "puVar15") (= "=") (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" (identifier "puVar15") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar18 = puVar18 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar18 = puVar18 + (uint)bVar20 * -2 + 1" (identifier "puVar18") (= "=") (binary_expression "puVar18 + (uint)bVar20 * -2 + 1" (binary_expression "puVar18 + (uint)bVar20 * -2" (identifier "puVar18") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "(**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)*puVar14)" (( "(") (pointer_expression "**(code **)*puVar14" (* "*") (pointer_expression "*(code **)*puVar14" (* "*") (cast_expression "(code **)*puVar14" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*puVar14" (* "*") (identifier "puVar14"))))) () ")")) (argument_list "(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0)" (( "(") (identifier "puVar14") (, ",") (number_literal "0") (, ",") (identifier "local_440") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x5c) + 8)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x5c) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x5c) + 8" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar8 == 0) {\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" ({ "{") (labeled_statement "LAB_000bb59f:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" (statement_identifier "LAB_000bb59f") (: ":") (expression_statement "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" (call_expression "__assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" (identifier "__assert_fail") (argument_list "("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect")" (( "(") (string_literal ""family != AF_UNSPEC"" (" """) (string_content "family != AF_UNSPEC") (" """)) (, ",") (string_literal ""unix/uxnet.c"" (" """) (string_content "unix/uxnet.c") (" """)) (, ",") (number_literal "0x25a") (, ",") (string_literal ""try_connect"" (" """) (string_content "try_connect") (" """)) () ")"))) (; ";"))) (} "}"))) (if_statement "if (iVar8 == 1) {\n    iVar8 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" (if "if") (parenthesized_expression "(iVar8 == 1)" (( "(") (binary_expression "iVar8 == 1" (identifier "iVar8") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    iVar8 = 1;\n  }" ({ "{") (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" (identifier "iVar8") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 0x60) == 0) {\n    iVar8 = 2;\n  }\n  else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x60) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) == 0" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar8 = 2;\n  }" ({ "{") (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" (identifier "iVar8") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" (else "else") (compound_statement "{\n    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (iVar8 == 0) goto LAB_000bb59f;\n  }" ({ "{") (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x60) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + 4" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar8 == 0) goto LAB_000bb59f;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000bb59f;" (goto "goto") (statement_identifier "LAB_000bb59f") (; ";"))) (} "}")))))) (expression_statement "iVar7 = socket(iVar8,1,0);" (assignment_expression "iVar7 = socket(iVar8,1,0)" (identifier "iVar7") (= "=") (call_expression "socket(iVar8,1,0)" (identifier "socket") (argument_list "(iVar8,1,0)" (( "(") (identifier "iVar8") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar7;" (assignment_expression "*(int *)(param_1 + 8) = iVar7" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar7 < 0) {\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }\n  else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" (if "if") (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar5 = __errno_location();\n    local_4e4 = *piVar5;\nLAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n    if (local_4e4 == 0) goto LAB_000bb275;\n  }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" (identifier "local_4e4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (labeled_statement "LAB_000bb25b:\n    FUN_0009eab0(DAT_0013ba0c,param_1);" (statement_identifier "LAB_000bb25b") (: ":") (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" (identifier "FUN_0009eab0") (argument_list "(DAT_0013ba0c,param_1)" (( "(") (identifier "DAT_0013ba0c") (, ",") (identifier "param_1") () ")"))) (; ";"))) (if_statement "if (local_4e4 == 0) goto LAB_000bb275;" (if "if") (parenthesized_expression "(local_4e4 == 0)" (( "(") (binary_expression "local_4e4 == 0" (identifier "local_4e4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000bb275;" (goto "goto") (statement_identifier "LAB_000bb275") (; ";"))) (} "}")) (else_clause "else {\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" (else "else") (compound_statement "{\n    FUN_000ba410(iVar7);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }\nLAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }\n    puVar3 = PTR_in6addr_any_0013afc0;\n    iVar19 = *(int *)(param_1 + 0x54);\n    __addr = &local_4c0;\n    psVar17 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;\n    if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }\n    if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }\n    iVar19 = (int)(short)uVar10;\n    iVar8 = iVar19 + -1;\n    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);\n    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);\n    while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }\n    if (local_4e4 == 0) goto LAB_000bb180;\nLAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);\n  }" ({ "{") (expression_statement "FUN_000ba410(iVar7);" (call_expression "FUN_000ba410(iVar7)" (identifier "FUN_000ba410") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);\n      if (-1 < iVar19) goto LAB_000bb0b8;\nLAB_000bb37a:\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      close(iVar7);\n      goto LAB_000bb25b;\n    }" ({ "{") (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" (identifier "local_4c4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,1,10,&local_4c4,4)" (identifier "iVar19") (= "=") (call_expression "setsockopt(iVar7,1,10,&local_4c4,4)" (identifier "setsockopt") (argument_list "(iVar7,1,10,&local_4c4,4)" (( "(") (identifier "iVar7") (, ",") (number_literal "1") (, ",") (number_literal "10") (, ",") (pointer_expression "&local_4c4" (& "&") (identifier "local_4c4")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (-1 < iVar19) goto LAB_000bb0b8;" (if "if") (parenthesized_expression "(-1 < iVar19)" (( "(") (binary_expression "-1 < iVar19" (number_literal "-1") (< "<") (identifier "iVar19")) () ")")) (goto_statement "goto LAB_000bb0b8;" (goto "goto") (statement_identifier "LAB_000bb0b8") (; ";"))) (labeled_statement "LAB_000bb37a:\n      piVar5 = __errno_location();" (statement_identifier "LAB_000bb37a") (: ":") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" (identifier "local_4e4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "close(iVar7);" (call_expression "close(iVar7)" (identifier "close") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (goto_statement "goto LAB_000bb25b;" (goto "goto") (statement_identifier "LAB_000bb25b") (; ";")) (} "}"))) (labeled_statement "LAB_000bb0b8:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" (statement_identifier "LAB_000bb0b8") (: ":") (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar19 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" ({ "{") (expression_statement "iVar19 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x50)" (identifier "iVar19") (= "=") (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" (else "else") (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n      iVar19 = *(int *)(param_1 + 0x50);\n    }" ({ "{") (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" (identifier "local_4c4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,6,1,&local_4c4,4)" (identifier "iVar19") (= "=") (call_expression "setsockopt(iVar7,6,1,&local_4c4,4)" (identifier "setsockopt") (argument_list "(iVar7,6,1,&local_4c4,4)" (( "(") (identifier "iVar7") (, ",") (number_literal "6") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_4c4" (& "&") (identifier "local_4c4")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar19 < 0) goto LAB_000bb37a;" (if "if") (parenthesized_expression "(iVar19 < 0)" (( "(") (binary_expression "iVar19 < 0" (identifier "iVar19") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_000bb37a;" (goto "goto") (statement_identifier "LAB_000bb37a") (; ";"))) (expression_statement "iVar19 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x50)" (identifier "iVar19") (= "=") (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (} "}"))))) (if_statement "if (iVar19 != 0) {\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }" (if "if") (parenthesized_expression "(iVar19 != 0)" (( "(") (binary_expression "iVar19 != 0" (identifier "iVar19") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_4c4 = 1;\n      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);\n      if (iVar19 < 0) goto LAB_000bb37a;\n    }" ({ "{") (expression_statement "local_4c4 = 1;" (assignment_expression "local_4c4 = 1" (identifier "local_4c4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);" (assignment_expression "iVar19 = setsockopt(iVar7,1,9,&local_4c4,4)" (identifier "iVar19") (= "=") (call_expression "setsockopt(iVar7,1,9,&local_4c4,4)" (identifier "setsockopt") (argument_list "(iVar7,1,9,&local_4c4,4)" (( "(") (identifier "iVar7") (, ",") (number_literal "1") (, ",") (number_literal "9") (, ",") (pointer_expression "&local_4c4" (& "&") (identifier "local_4c4")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar19 < 0) goto LAB_000bb37a;" (if "if") (parenthesized_expression "(iVar19 < 0)" (( "(") (binary_expression "iVar19 < 0" (identifier "iVar19") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_000bb37a;" (goto "goto") (statement_identifier "LAB_000bb37a") (; ";"))) (} "}"))) (expression_statement "puVar3 = PTR_in6addr_any_0013afc0;" (assignment_expression "puVar3 = PTR_in6addr_any_0013afc0" (identifier "puVar3") (= "=") (identifier "PTR_in6addr_any_0013afc0")) (; ";")) (expression_statement "iVar19 = *(int *)(param_1 + 0x54);" (assignment_expression "iVar19 = *(int *)(param_1 + 0x54)" (identifier "iVar19") (= "=") (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "__addr = &local_4c0;" (assignment_expression "__addr = &local_4c0" (identifier "__addr") (= "=") (pointer_expression "&local_4c0" (& "&") (identifier "local_4c0"))) (; ";")) (expression_statement "psVar17 = __addr;" (assignment_expression "psVar17 = __addr" (identifier "psVar17") (= "=") (identifier "__addr")) (; ";")) (for_statement "for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }" (for "for") (( "(") (assignment_expression "iVar9 = 0x20" (identifier "iVar9") (= "=") (number_literal "0x20")) (; ";") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar9 = iVar9 + -1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + -1" (identifier "iVar9") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      psVar17->sa_family = 0;\n      psVar17->sa_data[0] = '\0';\n      psVar17->sa_data[1] = '\0';\n      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);\n    }" ({ "{") (expression_statement "psVar17->sa_family = 0;" (assignment_expression "psVar17->sa_family = 0" (field_expression "psVar17->sa_family" (identifier "psVar17") (-> "->") (field_identifier "sa_family")) (= "=") (number_literal "0")) (; ";")) (expression_statement "psVar17->sa_data[0] = '\0';" (assignment_expression "psVar17->sa_data[0] = '\0'" (subscript_expression "psVar17->sa_data[0]" (field_expression "psVar17->sa_data" (identifier "psVar17") (-> "->") (field_identifier "sa_data")) ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "psVar17->sa_data[1] = '\0';" (assignment_expression "psVar17->sa_data[1] = '\0'" (subscript_expression "psVar17->sa_data[1]" (field_expression "psVar17->sa_data" (identifier "psVar17") (-> "->") (field_identifier "sa_data")) ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);" (assignment_expression "psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4)" (identifier "psVar17") (= "=") (cast_expression "(sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4)" (( "(") (type_descriptor "sockaddr *" (type_identifier "sockaddr") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar17 + (uint)bVar20 * -8 + 4)" (( "(") (binary_expression "(int)psVar17 + (uint)bVar20 * -8 + 4" (binary_expression "(int)psVar17 + (uint)bVar20 * -8" (cast_expression "(int)psVar17" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar17")) (+ "+") (binary_expression "(uint)bVar20 * -8" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-8"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}"))) (expression_statement "uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;" (assignment_expression "uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff" (identifier "uVar10") (= "=") (binary_expression "~-(ushort)(iVar19 == 0) & 0x3ff" (unary_expression "~-(ushort)(iVar19 == 0)" (~ "~") (unary_expression "-(ushort)(iVar19 == 0)" (- "-") (call_expression "(ushort)(iVar19 == 0)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(iVar19 == 0)" (( "(") (binary_expression "iVar19 == 0" (identifier "iVar19") (== "==") (number_literal "0")) () ")"))))) (& "&") (number_literal "0x3ff"))) (; ";")) (if_statement "if (iVar8 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" (if "if") (parenthesized_expression "(iVar8 == 1)" (( "(") (binary_expression "iVar8 == 1" (identifier "iVar8") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar6 = strlen(pcVar4);\n      if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_4c0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);\nLAB_000bb195:\n      FUN_000ba530(iVar7);\n      iVar8 = connect(iVar7,__addr,__len);\n      if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      cVar12 = '\0';\n      if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }\n      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);\n      FUN_0009eab0(DAT_0013ba0c,param_1);\n      local_4e4 = 0;\n      goto LAB_000bb275;\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }" ({ "{") (expression_statement "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");" (call_expression "__assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" (identifier "__assert_fail") (argument_list "("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect")" (( "(") (string_literal ""sock->port == 0"" (" """) (string_content "sock->port == 0") (" """)) (, ",") (string_literal ""unix/uxnet.c"" (" """) (string_content "unix/uxnet.c") (" """)) (, ",") (number_literal "0x2d5") (, ",") (string_literal ""try_connect"" (" """) (string_content "try_connect") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);" (assignment_expression "pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10)" (identifier "pcVar4") (= "=") (cast_expression "(char *)(*(int *)(param_1 + 0x5c) + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x5c) + 0x10" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "sVar6 = strlen(pcVar4);" (assignment_expression "sVar6 = strlen(pcVar4)" (identifier "sVar6") (= "=") (call_expression "strlen(pcVar4)" (identifier "strlen") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (if_statement "if (0x6b < sVar6) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" (if "if") (parenthesized_expression "(0x6b < sVar6)" (( "(") (binary_expression "0x6b < sVar6" (number_literal "0x6b") (< "<") (identifier "sVar6")) () ")")) (compound_statement "{\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }" ({ "{") (expression_statement "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");" (call_expression "__assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" (identifier "__assert_fail") (argument_list "("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect")" (( "(") (string_literal ""strlen(sock->addr->hostname) < sizeof u.su.sun_path"" (" """) (string_content "strlen(sock->addr->hostname) < sizeof u.su.sun_path") (" """)) (, ",") (string_literal ""unix/uxnet.c"" (" """) (string_content "unix/uxnet.c") (" """)) (, ",") (number_literal "0x2d6") (, ",") (string_literal ""try_connect"" (" """) (string_content "try_connect") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "local_4c0.sa_family = 1;" (assignment_expression "local_4c0.sa_family = 1" (field_expression "local_4c0.sa_family" (identifier "local_4c0") (. ".") (field_identifier "sa_family")) (= "=") (number_literal "1")) (; ";")) (expression_statement "__len = 0x6e;" (assignment_expression "__len = 0x6e" (identifier "__len") (= "=") (number_literal "0x6e")) (; ";")) (expression_statement "__memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);" (call_expression "__memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c)" (identifier "__memcpy_chk") (argument_list "(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c)" (( "(") (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) (, ",") (identifier "pcVar4") (, ",") (binary_expression "sVar6 + 1" (identifier "sVar6") (+ "+") (number_literal "1")) (, ",") (number_literal "0x6c") () ")"))) (; ";")) (labeled_statement "LAB_000bb195:\n      FUN_000ba530(iVar7);" (statement_identifier "LAB_000bb195") (: ":") (expression_statement "FUN_000ba530(iVar7);" (call_expression "FUN_000ba530(iVar7)" (identifier "FUN_000ba530") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";"))) (expression_statement "iVar8 = connect(iVar7,__addr,__len);" (assignment_expression "iVar8 = connect(iVar7,__addr,__len)" (identifier "iVar8") (= "=") (call_expression "connect(iVar7,__addr,__len)" (identifier "connect") (argument_list "(iVar7,__addr,__len)" (( "(") (identifier "iVar7") (, ",") (identifier "__addr") (, ",") (identifier "__len") () ")")))) (; ";")) (if_statement "if (iVar8 < 0) {\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" (if "if") (parenthesized_expression "(iVar8 < 0)" (( "(") (binary_expression "iVar8 < 0" (identifier "iVar8") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x73) goto LAB_000bb25b;\n      }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" (identifier "local_4e4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (if_statement "if (local_4e4 != 0x73) goto LAB_000bb25b;" (if "if") (parenthesized_expression "(local_4e4 != 0x73)" (( "(") (binary_expression "local_4e4 != 0x73" (identifier "local_4e4") (!= "!=") (number_literal "0x73")) () ")")) (goto_statement "goto LAB_000bb25b;" (goto "goto") (statement_identifier "LAB_000bb25b") (; ";"))) (} "}")) (else_clause "else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" (else "else") (compound_statement "{\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "cVar12 = '\0';" (assignment_expression "cVar12 = '\0'" (identifier "cVar12") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x48) == 0) {\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }\n        else {\n          cVar12 = '\x01';\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }\n          iVar8 = FUN_000326a0(param_1 + 0x10);\n          if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }\n        }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }\n          else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            cVar16 = '\x02';\n            cVar12 = '\x02';\n          }" ({ "{") (expression_statement "cVar16 = '\x02';" (assignment_expression "cVar16 = '\x02'" (identifier "cVar16") (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (expression_statement "cVar12 = '\x02';" (assignment_expression "cVar12 = '\x02'" (identifier "cVar12") (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" (else "else") (compound_statement "{\n            cVar16 = '\x02';\n            cVar12 = '\0';\n            if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }\n          }" ({ "{") (expression_statement "cVar16 = '\x02';" (assignment_expression "cVar16 = '\x02'" (identifier "cVar16") (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (expression_statement "cVar12 = '\0';" (assignment_expression "cVar12 = '\0'" (identifier "cVar12") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               ) {\n              cVar12 = '\x05';\n            }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)\n               )" (( "(") (binary_expression "(*(int *)(param_1 + 0x24) == 0) &&\n               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)" (( "(") (comma_expression "cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0" (assignment_expression "cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (identifier "cVar16") (= "=") (binary_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2" (parenthesized_expression "(-(*(int *)(param_1 + 0x40) == 0) & 5U)" (( "(") (binary_expression "-(*(int *)(param_1 + 0x40) == 0) & 5U" (unary_expression "-(*(int *)(param_1 + 0x40) == 0)" (- "-") (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0")) () ")"))) (& "&") (number_literal "5U")) () ")")) (+ "+") (number_literal "2"))) (, ",") (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n              cVar12 = '\x05';\n            }" ({ "{") (expression_statement "cVar12 = '\x05';" (assignment_expression "cVar12 = '\x05'" (identifier "cVar12") (= "=") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar8 = FUN_000326a0(param_1 + 0x10);" (assignment_expression "iVar8 = FUN_000326a0(param_1 + 0x10)" (identifier "iVar8") (= "=") (call_expression "FUN_000326a0(param_1 + 0x10)" (identifier "FUN_000326a0") (argument_list "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (if_statement "if (iVar8 != 0) {\n            cVar12 = cVar16;\n          }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            cVar12 = cVar16;\n          }" ({ "{") (expression_statement "cVar12 = cVar16;" (assignment_expression "cVar12 = cVar16" (identifier "cVar12") (= "=") (identifier "cVar16")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          cVar12 = '\x01';\n        }" (else "else") (compound_statement "{\n          cVar12 = '\x01';\n        }" ({ "{") (expression_statement "cVar12 = '\x01';" (assignment_expression "cVar12 = '\x01'" (identifier "cVar12") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);" (call_expression "FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0)" (identifier "FUN_000bf210") (argument_list "(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "cVar12") (, ",") (identifier "FUN_000bc6b0") () ")"))) (; ";")) (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" (identifier "FUN_0009eab0") (argument_list "(DAT_0013ba0c,param_1)" (( "(") (identifier "DAT_0013ba0c") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "local_4e4 = 0;" (assignment_expression "local_4e4 = 0" (identifier "local_4e4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000bb275;" (goto "goto") (statement_identifier "LAB_000bb275") (; ";")) (} "}"))) (if_statement "if (iVar8 != 10) {\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }" (if "if") (parenthesized_expression "(iVar8 != 10)" (( "(") (binary_expression "iVar8 != 10" (identifier "iVar8") (!= "!=") (number_literal "10")) () ")")) (compound_statement "{\n      uVar13 = uVar10;\n      if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }\nLAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);\n      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);\n      *(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;\n      goto LAB_000bb195;\n    }" ({ "{") (expression_statement "uVar13 = uVar10;" (assignment_expression "uVar13 = uVar10" (identifier "uVar13") (= "=") (identifier "uVar10")) (; ";")) (if_statement "if (iVar8 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" (if "if") (parenthesized_expression "(iVar8 != 2)" (( "(") (binary_expression "iVar8 != 2" (identifier "iVar8") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" ({ "{") (expression_statement "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");" (call_expression "__assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" (identifier "__assert_fail") (argument_list "("family == AF_INET","unix/uxnet.c",0x29f,"try_connect")" (( "(") (string_literal ""family == AF_INET"" (" """) (string_content "family == AF_INET") (" """)) (, ",") (string_literal ""unix/uxnet.c"" (" """) (string_content "unix/uxnet.c") (" """)) (, ",") (number_literal "0x29f") (, ",") (string_literal ""try_connect"" (" """) (string_content "try_connect") (" """)) () ")"))) (; ";")) (} "}"))) (while_statement "while( true ) {\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        uVar13 = uVar13 - 1;\n        local_4c0.sa_data[2] = '\0';\n        local_4c0.sa_data[3] = '\0';\n        local_4c0.sa_data[4] = '\0';\n        local_4c0.sa_data[5] = '\0';\n        local_4c0.sa_family = 2;\n        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;\n        iVar8 = bind(iVar7,__addr,0x10);\n        if (-1 < iVar8) break;\n        piVar5 = __errno_location();\n        local_4e4 = *piVar5;\n        if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }\n        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;\n        uVar10 = uVar10 - 1;\n      }" ({ "{") (expression_statement "uVar13 = uVar13 - 1;" (assignment_expression "uVar13 = uVar13 - 1" (identifier "uVar13") (= "=") (binary_expression "uVar13 - 1" (identifier "uVar13") (- "-") (number_literal "1"))) (; ";")) (expression_statement "local_4c0.sa_data[2] = '\0';" (assignment_expression "local_4c0.sa_data[2] = '\0'" (subscript_expression "local_4c0.sa_data[2]" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_4c0.sa_data[3] = '\0';" (assignment_expression "local_4c0.sa_data[3] = '\0'" (subscript_expression "local_4c0.sa_data[3]" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_4c0.sa_data[4] = '\0';" (assignment_expression "local_4c0.sa_data[4] = '\0'" (subscript_expression "local_4c0.sa_data[4]" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_4c0.sa_data[5] = '\0';" (assignment_expression "local_4c0.sa_data[5] = '\0'" (subscript_expression "local_4c0.sa_data[5]" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "5") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_4c0.sa_family = 2;" (assignment_expression "local_4c0.sa_family = 2" (field_expression "local_4c0.sa_family" (identifier "local_4c0") (. ".") (field_identifier "sa_family")) (= "=") (number_literal "2")) (; ";")) (expression_statement "local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;" (assignment_expression "local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8" (field_expression "local_4c0.sa_data._0_2_" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_0_2_")) (= "=") (binary_expression "uVar10 << 8 | uVar10 >> 8" (binary_expression "uVar10 << 8" (identifier "uVar10") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar10 >> 8" (identifier "uVar10") (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "iVar8 = bind(iVar7,__addr,0x10);" (assignment_expression "iVar8 = bind(iVar7,__addr,0x10)" (identifier "iVar8") (= "=") (call_expression "bind(iVar7,__addr,0x10)" (identifier "bind") (argument_list "(iVar7,__addr,0x10)" (( "(") (identifier "iVar7") (, ",") (identifier "__addr") (, ",") (number_literal "0x10") () ")")))) (; ";")) (if_statement "if (-1 < iVar8) break;" (if "if") (parenthesized_expression "(-1 < iVar8)" (( "(") (binary_expression "-1 < iVar8" (number_literal "-1") (< "<") (identifier "iVar8")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" (identifier "local_4e4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (if_statement "if (local_4e4 != 0x62) {\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" (if "if") (parenthesized_expression "(local_4e4 != 0x62)" (( "(") (binary_expression "local_4e4 != 0x62" (identifier "local_4e4") (!= "!=") (number_literal "0x62")) () ")")) (compound_statement "{\n          if (local_4e4 != 0) goto LAB_000bb2a8;\n          break;\n        }" ({ "{") (if_statement "if (local_4e4 != 0) goto LAB_000bb2a8;" (if "if") (parenthesized_expression "(local_4e4 != 0)" (( "(") (binary_expression "local_4e4 != 0" (identifier "local_4e4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000bb2a8;" (goto "goto") (statement_identifier "LAB_000bb2a8") (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;" (if "if") (parenthesized_expression "((uVar13 == 0xffff) || (uVar13 == 0))" (( "(") (binary_expression "(uVar13 == 0xffff) || (uVar13 == 0)" (parenthesized_expression "(uVar13 == 0xffff)" (( "(") (binary_expression "uVar13 == 0xffff" (identifier "uVar13") (== "==") (number_literal "0xffff")) () ")")) (|| "||") (parenthesized_expression "(uVar13 == 0)" (( "(") (binary_expression "uVar13 == 0" (identifier "uVar13") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_000bb2a8;" (goto "goto") (statement_identifier "LAB_000bb2a8") (; ";"))) (expression_statement "uVar10 = uVar10 - 1;" (assignment_expression "uVar10 = uVar10 - 1" (identifier "uVar10") (= "=") (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1"))) (; ";")) (} "}"))) (labeled_statement "LAB_000bb180:\n      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);" (statement_identifier "LAB_000bb180") (: ":") (expression_statement "__addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);" (assignment_expression "__addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" (identifier "__addr") (= "=") (pointer_expression "*(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" (* "*") (cast_expression "(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14)" (( "(") (type_descriptor "sockaddr **" (type_identifier "sockaddr") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x14)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + 0x14" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";"))) (expression_statement "__len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);" (assignment_expression "__len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" (identifier "__len") (= "=") (pointer_expression "*(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" (* "*") (cast_expression "(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10)" (( "(") (type_descriptor "socklen_t *" (type_identifier "socklen_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + 0x10" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;" (assignment_expression "*(ushort *)__addr->sa_data =\n           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8" (pointer_expression "*(ushort *)__addr->sa_data" (* "*") (cast_expression "(ushort *)__addr->sa_data" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__addr->sa_data" (identifier "__addr") (-> "->") (field_identifier "sa_data")))) (= "=") (binary_expression "*(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8" (binary_expression "*(ushort *)(param_1 + 0x58) << 8" (pointer_expression "*(ushort *)(param_1 + 0x58)" (* "*") (cast_expression "(ushort *)(param_1 + 0x58)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (<< "<<") (number_literal "8")) (| "|") (binary_expression "*(ushort *)(param_1 + 0x58) >> 8" (pointer_expression "*(ushort *)(param_1 + 0x58)" (* "*") (cast_expression "(ushort *)(param_1 + 0x58)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (>> ">>") (number_literal "8")))) (; ";")) (goto_statement "goto LAB_000bb195;" (goto "goto") (statement_identifier "LAB_000bb195") (; ";")) (} "}"))) (expression_statement "iVar19 = (int)(short)uVar10;" (assignment_expression "iVar19 = (int)(short)uVar10" (identifier "iVar19") (= "=") (cast_expression "(int)(short)uVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(short)uVar10" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar10")))) (; ";")) (expression_statement "iVar8 = iVar19 + -1;" (assignment_expression "iVar8 = iVar19 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar19 + -1" (identifier "iVar19") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);" (assignment_expression "uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" (identifier "uVar11") (= "=") (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" (* "*") (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 4)" (( "(") (binary_expression "PTR_in6addr_any_0013afc0 + 4" (identifier "PTR_in6addr_any_0013afc0") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" (* "*") (cast_expression "(undefined4 *)(PTR_in6addr_any_0013afc0 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_in6addr_any_0013afc0 + 8)" (( "(") (binary_expression "PTR_in6addr_any_0013afc0 + 8" (identifier "PTR_in6addr_any_0013afc0") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      local_4c0.sa_family = 10;\n      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;\n      local_4ac = *(undefined4 *)(puVar3 + 0xc);\n      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;\n      local_4c0.sa_data._10_4_ = uVar11;\n      local_4b0 = uVar2;\n      iVar9 = bind(iVar7,__addr,0x1c);\n      if (-1 < iVar9) goto LAB_000bb180;\n      piVar5 = __errno_location();\n      local_4e4 = *piVar5;\n      if (local_4e4 != 0x62) break;\n      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;\n    }" ({ "{") (expression_statement "local_4c0.sa_family = 10;" (assignment_expression "local_4c0.sa_family = 10" (field_expression "local_4c0.sa_family" (identifier "local_4c0") (. ".") (field_identifier "sa_family")) (= "=") (number_literal "10")) (; ";")) (expression_statement "local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;" (assignment_expression "local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3" (field_expression "local_4c0.sa_data._6_4_" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_6_4_")) (= "=") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) (; ";")) (expression_statement "local_4ac = *(undefined4 *)(puVar3 + 0xc);" (assignment_expression "local_4ac = *(undefined4 *)(puVar3 + 0xc)" (identifier "local_4ac") (= "=") (pointer_expression "*(undefined4 *)(puVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0xc)" (( "(") (binary_expression "puVar3 + 0xc" (identifier "puVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;" (assignment_expression "local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8" (field_expression "local_4c0.sa_data._0_2_" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_0_2_")) (= "=") (binary_expression "(ushort)iVar19 << 8 | (ushort)iVar19 >> 8" (binary_expression "(ushort)iVar19 << 8" (cast_expression "(ushort)iVar19" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "iVar19")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(ushort)iVar19 >> 8" (cast_expression "(ushort)iVar19" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "iVar19")) (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "local_4c0.sa_data._10_4_ = uVar11;" (assignment_expression "local_4c0.sa_data._10_4_ = uVar11" (field_expression "local_4c0.sa_data._10_4_" (field_expression "local_4c0.sa_data" (identifier "local_4c0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_10_4_")) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "local_4b0 = uVar2;" (assignment_expression "local_4b0 = uVar2" (identifier "local_4b0") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar9 = bind(iVar7,__addr,0x1c);" (assignment_expression "iVar9 = bind(iVar7,__addr,0x1c)" (identifier "iVar9") (= "=") (call_expression "bind(iVar7,__addr,0x1c)" (identifier "bind") (argument_list "(iVar7,__addr,0x1c)" (( "(") (identifier "iVar7") (, ",") (identifier "__addr") (, ",") (number_literal "0x1c") () ")")))) (; ";")) (if_statement "if (-1 < iVar9) goto LAB_000bb180;" (if "if") (parenthesized_expression "(-1 < iVar9)" (( "(") (binary_expression "-1 < iVar9" (number_literal "-1") (< "<") (identifier "iVar9")) () ")")) (goto_statement "goto LAB_000bb180;" (goto "goto") (statement_identifier "LAB_000bb180") (; ";"))) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_4e4 = *piVar5;" (assignment_expression "local_4e4 = *piVar5" (identifier "local_4e4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (if_statement "if (local_4e4 != 0x62) break;" (if "if") (parenthesized_expression "(local_4e4 != 0x62)" (( "(") (binary_expression "local_4e4 != 0x62" (identifier "local_4e4") (!= "!=") (number_literal "0x62")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))\n      goto LAB_000bb2a8;" (if "if") (parenthesized_expression "((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))" (( "(") (binary_expression "(iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1))" (parenthesized_expression "(iVar19 == 0)" (( "(") (binary_expression "iVar19 == 0" (identifier "iVar19") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1))" (( "(") (comma_expression "iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)" (assignment_expression "iVar19 = iVar19 + -1" (identifier "iVar19") (= "=") (binary_expression "iVar19 + -1" (identifier "iVar19") (+ "+") (number_literal "-1"))) (, ",") (binary_expression "iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)" (identifier "iVar19") (== "==") (binary_expression "iVar8 - (uint)(ushort)(uVar10 - 1)" (identifier "iVar8") (- "-") (call_expression "(uint)(ushort)(uVar10 - 1)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (argument_list "(uVar10 - 1)" (( "(") (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1")) () ")")))))) () ")"))) () ")")) (goto_statement "goto LAB_000bb2a8;" (goto "goto") (statement_identifier "LAB_000bb2a8") (; ";"))) (} "}"))) (if_statement "if (local_4e4 == 0) goto LAB_000bb180;" (if "if") (parenthesized_expression "(local_4e4 == 0)" (( "(") (binary_expression "local_4e4 == 0" (identifier "local_4e4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000bb180;" (goto "goto") (statement_identifier "LAB_000bb180") (; ";"))) (labeled_statement "LAB_000bb2a8:\n    FUN_0009eab0(DAT_0013ba0c,param_1);" (statement_identifier "LAB_000bb2a8") (: ":") (expression_statement "FUN_0009eab0(DAT_0013ba0c,param_1);" (call_expression "FUN_0009eab0(DAT_0013ba0c,param_1)" (identifier "FUN_0009eab0") (argument_list "(DAT_0013ba0c,param_1)" (( "(") (identifier "DAT_0013ba0c") (, ",") (identifier "param_1") () ")"))) (; ";"))) (} "}")))) (expression_statement "puVar14 = *(undefined4 **)(param_1 + 0x5c);" (assignment_expression "puVar14 = *(undefined4 **)(param_1 + 0x5c)" (identifier "puVar14") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "iVar8 = puVar14[2];" (assignment_expression "iVar8 = puVar14[2]" (identifier "iVar8") (= "=") (subscript_expression "puVar14[2]" (identifier "puVar14") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_224 = puVar14[3];" (assignment_expression "local_224 = puVar14[3]" (identifier "local_224") (= "=") (subscript_expression "puVar14[3]" (identifier "puVar14") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" (identifier "puVar15") (= "=") (identifier "local_230")) (; ";")) (for_statement "for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar7 = 0x84" (identifier "iVar7") (= "=") (number_literal "0x84")) (; ";") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar15 = *puVar14;\n    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar15 = *puVar14;" (assignment_expression "*puVar15 = *puVar14" (pointer_expression "*puVar15" (* "*") (identifier "puVar15")) (= "=") (pointer_expression "*puVar14" (* "*") (identifier "puVar14"))) (; ";")) (expression_statement "puVar14 = puVar14 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar14 = puVar14 + (uint)bVar20 * -2 + 1" (identifier "puVar14") (= "=") (binary_expression "puVar14 + (uint)bVar20 * -2 + 1" (binary_expression "puVar14 + (uint)bVar20 * -2" (identifier "puVar14") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" (identifier "puVar15") (= "=") (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" (identifier "puVar15") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (iVar8 == 2) {\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }" (if "if") (parenthesized_expression "(iVar8 == 2)" (( "(") (binary_expression "iVar8 == 2" (identifier "iVar8") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    local_224 = *(undefined4 *)(param_1 + 0x60);\n  }" ({ "{") (expression_statement "local_224 = *(undefined4 *)(param_1 + 0x60);" (assignment_expression "local_224 = *(undefined4 *)(param_1 + 0x60)" (identifier "local_224") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (} "}"))) (expression_statement "local_230[0] = 1;" (assignment_expression "local_230[0] = 1" (subscript_expression "local_230[0]" (identifier "local_230") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc)" (identifier "puVar14") (= "=") (cast_expression "(undefined4 *)**(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 0xc)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))))) (; ";")) (expression_statement "puVar15 = local_230;" (assignment_expression "puVar15 = local_230" (identifier "puVar15") (= "=") (identifier "local_230")) (; ";")) (expression_statement "puVar18 = local_440;" (assignment_expression "puVar18 = local_440" (identifier "puVar18") (= "=") (identifier "local_440")) (; ";")) (for_statement "for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar8 = 0x84" (identifier "iVar8") (= "=") (number_literal "0x84")) (; ";") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar18 = *puVar15;\n    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;\n    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar18 = *puVar15;" (assignment_expression "*puVar18 = *puVar15" (pointer_expression "*puVar18" (* "*") (identifier "puVar18")) (= "=") (pointer_expression "*puVar15" (* "*") (identifier "puVar15"))) (; ";")) (expression_statement "puVar15 = puVar15 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar15 = puVar15 + (uint)bVar20 * -2 + 1" (identifier "puVar15") (= "=") (binary_expression "puVar15 + (uint)bVar20 * -2 + 1" (binary_expression "puVar15 + (uint)bVar20 * -2" (identifier "puVar15") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar18 = puVar18 + (uint)bVar20 * -2 + 1;" (assignment_expression "puVar18 = puVar18 + (uint)bVar20 * -2 + 1" (identifier "puVar18") (= "=") (binary_expression "puVar18 + (uint)bVar20 * -2 + 1" (binary_expression "puVar18 + (uint)bVar20 * -2" (identifier "puVar18") (+ "+") (binary_expression "(uint)bVar20 * -2" (cast_expression "(uint)bVar20" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar20")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "pcVar1 = (code *)*puVar14;" (assignment_expression "pcVar1 = (code *)*puVar14" (identifier "pcVar1") (= "=") (cast_expression "(code *)*puVar14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar14" (* "*") (identifier "puVar14")))) (; ";")) (expression_statement "pcVar4 = strerror(local_4e4);" (assignment_expression "pcVar4 = strerror(local_4e4)" (identifier "pcVar4") (= "=") (call_expression "strerror(local_4e4)" (identifier "strerror") (argument_list "(local_4e4)" (( "(") (identifier "local_4e4") () ")")))) (; ";")) (expression_statement "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4);" (call_expression "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,\n            local_4e4)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "1") (, ",") (identifier "local_440") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (, ",") (identifier "pcVar4") (, ",") (identifier "local_4e4") () ")"))) (; ";")) (labeled_statement "LAB_000bb275:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" (statement_identifier "LAB_000bb275") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_4e4;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return local_4e4;\n  }" ({ "{") (return_statement "return local_4e4;" (return "return") (identifier "local_4e4") (; ";")) (} "}")))) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" (identifier "FUN_000c60b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int __regparm3 function_1(type_1 sock)

{
  type_2 pppVar1;
  type_3 *ppVar2;
  type_4 *p_Var3;
  type_5 uVar4;
  type_5 uVar5;
  type_6 var_6;
  type_7 *var_32;
  int var_13;
  int var_19;
  char *pcVar10;
  int *var_5;
  size_t var_22;
  int var_4;
  int var_20;
  type_8 var_29;
  type_9 *var_11;
  type_8 var_28;
  type_10 pSVar18;
  type_11 __len;
  type_12 *pSVar19;
  type_13 *psVar20;
  type_13 *__addr;
  int var_1;
  type_14 bVar21;
  int var_16;
  int b;
  type_13 u;
  type_12 thisaddr;
  int local_230 [3];
  type_9 *local_224;
  int var_34;
  type_5 uStack_14;
  
  bVar21 = 0;
  uStack_14 = 0xbafab;
  var_34 = *(int *)(var_1 + 0x14);
  var_2(sktree,sock);
  if (-1 < sock->s) {
    var_3(sock->s);
  }
  pSVar18 = sock->addr;
  var_6 = pSVar18->superfamily;
  var_11 = pSVar18->ais;
  var_5 = local_230;
  for (var_4 = 0x84; var_4 != 0; var_4 = var_4 + -1) {
    *var_5 = pSVar18->refcount;
    pSVar18 = (type_10)((int)pSVar18 + (type_15)bVar21 * -8 + 4);
    var_5 = var_5 + (type_15)bVar21 * -2 + 1;
  }
  if (var_6 == var_7) {
    var_11 = (sock->step).ai;
  }
  pppVar1 = sock->plug;
  local_230[0] = 1;
  var_5 = local_230;
  pSVar19 = &thisaddr;
  local_224 = var_11;
  for (var_4 = 0x84; var_4 != 0; var_4 = var_4 + -1) {
    pSVar19->refcount = *var_5;
    var_5 = var_5 + (type_15)bVar21 * -2 + 1;
    pSVar19 = (type_12 *)((int)pSVar19 + (type_15)bVar21 * -8 + 4);
  }
  (*(*pppVar1)->log)(pppVar1,0,&thisaddr,sock->port,(char *)0x0,0);
  var_6 = sock->addr->superfamily;
  if (var_6 == var_8) {
LAB_000bb59f:
                    /* WARNING: Subroutine does not return */
    var_9("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (var_6 == var_10) {
    var_4 = 1;
  }
  else {
    var_11 = (sock->step).ai;
    if (var_11 == (type_9 *)0x0) {
      var_4 = 2;
    }
    else {
      var_4 = var_11->ai_family;
      if (var_4 == 0) goto LAB_000bb59f;
    }
  }
  var_13 = var_12(var_4,1,0);
  sock->s = var_13;
  if (var_13 < 0) {
    var_5 = var_14();
    var_16 = *var_5;
LAB_000bb25b:
    var_15(sktree,sock);
    if (var_16 == 0) goto LAB_000bb275;
  }
  else {
    var_17(var_13);
    if (sock->oobinline != 0) {
      b = 1;
      var_19 = var_18(var_13,1,10,&b,4);
      if (-1 < var_19) goto LAB_000bb0b8;
LAB_000bb37a:
      var_5 = var_14();
      var_16 = *var_5;
      var_3(var_13);
      goto LAB_000bb25b;
    }
LAB_000bb0b8:
    if (sock->nodelay == 0) {
      var_19 = sock->keepalive;
    }
    else {
      b = 1;
      var_19 = var_18(var_13,6,1,&b,4);
      if (var_19 < 0) goto LAB_000bb37a;
      var_19 = sock->keepalive;
    }
    if (var_19 != 0) {
      b = 1;
      var_19 = var_18(var_13,1,9,&b,4);
      if (var_19 < 0) goto LAB_000bb37a;
    }
    var_32 = var_31;
    var_19 = sock->privport;
    __addr = &u;
    psVar20 = __addr;
    for (var_20 = 0x20; var_20 != 0; var_20 = var_20 + -1) {
      *(type_5 *)psVar20 = 0;
      psVar20 = (type_13 *)((int)psVar20 + (type_15)bVar21 * -8 + 4);
    }
    var_29 = ~-(type_8)(var_19 == 0) & 0x3ff;
    if (var_4 == 1) {
      if (sock->port != 0) {
                    /* WARNING: Subroutine does not return */
        var_9("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");
      }
      pcVar10 = sock->addr->hostname;
      var_22 = var_21(pcVar10);
      if (0x6b < var_22) {
                    /* WARNING: Subroutine does not return */
        var_9("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,
                      "try_connect");
      }
      u.storage.ss_family = 1;
      __len = 0x6e;
      var_23(u.storage.__ss_padding,pcVar10,var_22 + 1,0x6c);
LAB_000bb195:
      var_24(var_13);
      var_4 = var_25(var_13,(type_16 *)&__addr->storage,__len);
      if (var_4 < 0) {
        var_5 = var_14();
        var_16 = *var_5;
        if (var_16 != 0x73) goto LAB_000bb25b;
      }
      else {
        sock->connected = 1;
        sock->writable = 1;
      }
      var_4 = 0;
      if (sock->pending_error == 0) {
        if (sock->listener == 0) {
          if (sock->connected == 0) {
            var_13 = 2;
            var_4 = 2;
          }
          else {
            var_13 = 2;
            var_4 = 0;
            if ((sock->frozen == 0) &&
               (var_13 = (-(type_15)(sock->incomingeof == 0) & 5) + 2, sock->incomingeof == 0)) {
              var_4 = 5;
            }
          }
          var_19 = var_26(&sock->output_data);
          if (var_19 != 0) {
            var_4 = var_13;
          }
        }
        else {
          var_4 = 1;
        }
      }
      var_27(sock->s,var_4,net_select_result);
      var_15(sktree,sock);
      var_16 = 0;
      goto LAB_000bb275;
    }
    if (var_4 != 10) {
      var_28 = var_29;
      if (var_4 != 2) {
                    /* WARNING: Subroutine does not return */
        var_9("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      while( true ) {
        var_28 = var_28 - 1;
        u.sin6.sin6_flowinfo = 0;
        u.storage.ss_family = 2;
        u.sin.sin_port = var_29 << 8 | var_29 >> 8;
        var_4 = var_30(var_13,(type_16 *)&__addr->storage,0x10);
        if (-1 < var_4) break;
        var_5 = var_14();
        var_16 = *var_5;
        if (var_16 != 0x62) {
          if (var_16 != 0) goto LAB_000bb2a8;
          break;
        }
        if ((var_28 == 0xffff) || (var_28 == 0)) goto LAB_000bb2a8;
        var_29 = var_29 - 1;
      }
LAB_000bb180:
      var_11 = (sock->step).ai;
      var_29 = (type_8)sock->port;
      __addr = (type_13 *)var_11->ai_addr;
      __len = var_11->ai_addrlen;
      (__addr->sin).sin_port = var_29 << 8 | var_29 >> 8;
      goto LAB_000bb195;
    }
    var_19 = (int)(short)var_29;
    var_4 = var_19 + -1;
    uVar4 = *(type_5 *)(var_31 + 4);
    uVar5 = *(type_5 *)(var_31 + 8);
    while( true ) {
      u.storage.ss_family = 10;
      u._8_4_ = *(type_5 *)var_32;
      u._20_4_ = *(type_5 *)(var_32 + 0xc);
      u.sin.sin_port = (type_8)var_19 << 8 | (type_8)var_19 >> 8;
      u._12_4_ = uVar4;
      u._16_4_ = uVar5;
      var_20 = var_30(var_13,(type_16 *)&__addr->storage,0x1c);
      if (-1 < var_20) goto LAB_000bb180;
      var_5 = var_14();
      var_16 = *var_5;
      if (var_16 != 0x62) break;
      if ((var_19 == 0) || (var_19 = var_19 + -1, var_19 == var_4 - (type_15)(type_8)(var_29 - 1)))
      goto LAB_000bb2a8;
    }
    if (var_16 == 0) goto LAB_000bb180;
LAB_000bb2a8:
    var_15(sktree,sock);
  }
  pSVar18 = sock->addr;
  var_6 = pSVar18->superfamily;
  local_224 = pSVar18->ais;
  var_5 = local_230;
  for (var_4 = 0x84; var_4 != 0; var_4 = var_4 + -1) {
    *var_5 = pSVar18->refcount;
    pSVar18 = (type_10)((int)pSVar18 + (type_15)bVar21 * -8 + 4);
    var_5 = var_5 + (type_15)bVar21 * -2 + 1;
  }
  if (var_6 == var_7) {
    local_224 = (sock->step).ai;
  }
  local_230[0] = 1;
  ppVar2 = *sock->plug;
  var_5 = local_230;
  pSVar18 = &thisaddr;
  for (var_4 = 0x84; var_4 != 0; var_4 = var_4 + -1) {
    pSVar18->refcount = *var_5;
    var_5 = var_5 + (type_15)bVar21 * -2 + 1;
    pSVar18 = (type_10)((int)pSVar18 + (type_15)bVar21 * -8 + 4);
  }
  p_Var3 = ppVar2->log;
  pcVar10 = var_33(var_16);
  (*p_Var3)(sock->plug,1,&thisaddr,sock->port,pcVar10,var_16);
LAB_000bb275:
  if (var_34 == *(int *)(var_1 + 0x14)) {
    return var_16;
  }
                    /* WARNING: Subroutine does not return */
  var_35();
}


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

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

int __regparm3 MASKED(int param_1)

{
  code *pcVar1;
  undefined4 uVar2;
  undefined *puVar3;
  char *pcVar4;
  int *piVar5;
  size_t sVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  ushort uVar10;
  undefined4 uVar11;
  char cVar12;
  ushort uVar13;
  undefined4 *puVar14;
  undefined4 *puVar15;
  socklen_t __len;
  char cVar16;
  sockaddr *psVar17;
  sockaddr *__addr;
  undefined4 *puVar18;
  int iVar19;
  int in_GS_OFFSET;
  byte bVar20;
  int local_4e4;
  undefined4 local_4c4;
  sockaddr local_4c0;
  undefined4 local_4b0;
  undefined4 local_4ac;
  undefined4 local_440 [132];
  undefined4 local_230 [3];
  undefined4 local_224;
  int local_20;
  undefined4 uStack_14;
  
  bVar20 = 0;
  uStack_14 = 0xbafab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0009ef40(DAT_0013ba0c,param_1);
  if (-1 < *(int *)(param_1 + 8)) {
    close(*(int *)(param_1 + 8));
  }
  puVar14 = *(undefined4 **)(param_1 + 0x5c);
  iVar8 = puVar14[2];
  uVar11 = puVar14[3];
  puVar15 = local_230;
  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {
    *puVar15 = *puVar14;
    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
  }
  if (iVar8 == 2) {
    uVar11 = *(undefined4 *)(param_1 + 0x60);
  }
  puVar14 = *(undefined4 **)(param_1 + 0xc);
  local_230[0] = 1;
  puVar15 = local_230;
  puVar18 = local_440;
  local_224 = uVar11;
  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {
    *puVar18 = *puVar15;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;
  }
  (**(code **)*puVar14)(puVar14,0,local_440,*(undefined4 *)(param_1 + 0x58),0,0);
  iVar8 = *(int *)(*(int *)(param_1 + 0x5c) + 8);
  if (iVar8 == 0) {
LAB_000bb59f:
                    /* WARNING: Subroutine does not return */
    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (iVar8 == 1) {
    iVar8 = 1;
  }
  else if (*(int *)(param_1 + 0x60) == 0) {
    iVar8 = 2;
  }
  else {
    iVar8 = *(int *)(*(int *)(param_1 + 0x60) + 4);
    if (iVar8 == 0) goto LAB_000bb59f;
  }
  iVar7 = socket(iVar8,1,0);
  *(int *)(param_1 + 8) = iVar7;
  if (iVar7 < 0) {
    piVar5 = __errno_location();
    local_4e4 = *piVar5;
LAB_000bb25b:
    FUN_0009eab0(DAT_0013ba0c,param_1);
    if (local_4e4 == 0) goto LAB_000bb275;
  }
  else {
    FUN_000ba410(iVar7);
    if (*(int *)(param_1 + 0x38) != 0) {
      local_4c4 = 1;
      iVar19 = setsockopt(iVar7,1,10,&local_4c4,4);
      if (-1 < iVar19) goto LAB_000bb0b8;
LAB_000bb37a:
      piVar5 = __errno_location();
      local_4e4 = *piVar5;
      close(iVar7);
      goto LAB_000bb25b;
    }
LAB_000bb0b8:
    if (*(int *)(param_1 + 0x4c) == 0) {
      iVar19 = *(int *)(param_1 + 0x50);
    }
    else {
      local_4c4 = 1;
      iVar19 = setsockopt(iVar7,6,1,&local_4c4,4);
      if (iVar19 < 0) goto LAB_000bb37a;
      iVar19 = *(int *)(param_1 + 0x50);
    }
    if (iVar19 != 0) {
      local_4c4 = 1;
      iVar19 = setsockopt(iVar7,1,9,&local_4c4,4);
      if (iVar19 < 0) goto LAB_000bb37a;
    }
    puVar3 = PTR_in6addr_any_0013afc0;
    iVar19 = *(int *)(param_1 + 0x54);
    __addr = &local_4c0;
    psVar17 = __addr;
    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {
      psVar17->sa_family = 0;
      psVar17->sa_data[0] = '\0';
      psVar17->sa_data[1] = '\0';
      psVar17 = (sockaddr *)((int)psVar17 + (uint)bVar20 * -8 + 4);
    }
    uVar10 = ~-(ushort)(iVar19 == 0) & 0x3ff;
    if (iVar8 == 1) {
      if (*(int *)(param_1 + 0x58) != 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");
      }
      pcVar4 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);
      sVar6 = strlen(pcVar4);
      if (0x6b < sVar6) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,
                      "try_connect");
      }
      local_4c0.sa_family = 1;
      __len = 0x6e;
      __memcpy_chk(local_4c0.sa_data,pcVar4,sVar6 + 1,0x6c);
LAB_000bb195:
      FUN_000ba530(iVar7);
      iVar8 = connect(iVar7,__addr,__len);
      if (iVar8 < 0) {
        piVar5 = __errno_location();
        local_4e4 = *piVar5;
        if (local_4e4 != 0x73) goto LAB_000bb25b;
      }
      else {
        *(undefined4 *)(param_1 + 0x1c) = 1;
        *(undefined4 *)(param_1 + 0x20) = 1;
      }
      cVar12 = '\0';
      if (*(int *)(param_1 + 0x44) == 0) {
        if (*(int *)(param_1 + 0x48) == 0) {
          if (*(int *)(param_1 + 0x1c) == 0) {
            cVar16 = '\x02';
            cVar12 = '\x02';
          }
          else {
            cVar16 = '\x02';
            cVar12 = '\0';
            if ((*(int *)(param_1 + 0x24) == 0) &&
               (cVar16 = (-(*(int *)(param_1 + 0x40) == 0) & 5U) + 2, *(int *)(param_1 + 0x40) == 0)
               ) {
              cVar12 = '\x05';
            }
          }
          iVar8 = FUN_000326a0(param_1 + 0x10);
          if (iVar8 != 0) {
            cVar12 = cVar16;
          }
        }
        else {
          cVar12 = '\x01';
        }
      }
      FUN_000bf210(*(undefined4 *)(param_1 + 8),cVar12,FUN_000bc6b0);
      FUN_0009eab0(DAT_0013ba0c,param_1);
      local_4e4 = 0;
      goto LAB_000bb275;
    }
    if (iVar8 != 10) {
      uVar13 = uVar10;
      if (iVar8 != 2) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      while( true ) {
        uVar13 = uVar13 - 1;
        local_4c0.sa_data[2] = '\0';
        local_4c0.sa_data[3] = '\0';
        local_4c0.sa_data[4] = '\0';
        local_4c0.sa_data[5] = '\0';
        local_4c0.sa_family = 2;
        local_4c0.sa_data._0_2_ = uVar10 << 8 | uVar10 >> 8;
        iVar8 = bind(iVar7,__addr,0x10);
        if (-1 < iVar8) break;
        piVar5 = __errno_location();
        local_4e4 = *piVar5;
        if (local_4e4 != 0x62) {
          if (local_4e4 != 0) goto LAB_000bb2a8;
          break;
        }
        if ((uVar13 == 0xffff) || (uVar13 == 0)) goto LAB_000bb2a8;
        uVar10 = uVar10 - 1;
      }
LAB_000bb180:
      __addr = *(sockaddr **)(*(int *)(param_1 + 0x60) + 0x14);
      __len = *(socklen_t *)(*(int *)(param_1 + 0x60) + 0x10);
      *(ushort *)__addr->sa_data =
           *(ushort *)(param_1 + 0x58) << 8 | *(ushort *)(param_1 + 0x58) >> 8;
      goto LAB_000bb195;
    }
    iVar19 = (int)(short)uVar10;
    iVar8 = iVar19 + -1;
    uVar11 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 4);
    uVar2 = *(undefined4 *)(PTR_in6addr_any_0013afc0 + 8);
    while( true ) {
      local_4c0.sa_family = 10;
      local_4c0.sa_data._6_4_ = *(undefined4 *)puVar3;
      local_4ac = *(undefined4 *)(puVar3 + 0xc);
      local_4c0.sa_data._0_2_ = (ushort)iVar19 << 8 | (ushort)iVar19 >> 8;
      local_4c0.sa_data._10_4_ = uVar11;
      local_4b0 = uVar2;
      iVar9 = bind(iVar7,__addr,0x1c);
      if (-1 < iVar9) goto LAB_000bb180;
      piVar5 = __errno_location();
      local_4e4 = *piVar5;
      if (local_4e4 != 0x62) break;
      if ((iVar19 == 0) || (iVar19 = iVar19 + -1, iVar19 == iVar8 - (uint)(ushort)(uVar10 - 1)))
      goto LAB_000bb2a8;
    }
    if (local_4e4 == 0) goto LAB_000bb180;
LAB_000bb2a8:
    FUN_0009eab0(DAT_0013ba0c,param_1);
  }
  puVar14 = *(undefined4 **)(param_1 + 0x5c);
  iVar8 = puVar14[2];
  local_224 = puVar14[3];
  puVar15 = local_230;
  for (iVar7 = 0x84; iVar7 != 0; iVar7 = iVar7 + -1) {
    *puVar15 = *puVar14;
    puVar14 = puVar14 + (uint)bVar20 * -2 + 1;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
  }
  if (iVar8 == 2) {
    local_224 = *(undefined4 *)(param_1 + 0x60);
  }
  local_230[0] = 1;
  puVar14 = (undefined4 *)**(undefined4 **)(param_1 + 0xc);
  puVar15 = local_230;
  puVar18 = local_440;
  for (iVar8 = 0x84; iVar8 != 0; iVar8 = iVar8 + -1) {
    *puVar18 = *puVar15;
    puVar15 = puVar15 + (uint)bVar20 * -2 + 1;
    puVar18 = puVar18 + (uint)bVar20 * -2 + 1;
  }
  pcVar1 = (code *)*puVar14;
  pcVar4 = strerror(local_4e4);
  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_440,*(undefined4 *)(param_1 + 0x58),pcVar4,
            local_4e4);
LAB_000bb275:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_4e4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}

