
/* 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)

{
  int iVar1;
  anon_enum_32 aVar2;
  addrinfo *paVar3;
  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var4;
  undefined *puVar5;
  ushort uVar6;
  int iVar7;
  int *piVar8;
  int iVar9;
  char *pcVar10;
  size_t sVar11;
  int iVar12;
  ushort uVar13;
  int iVar14;
  socklen_t __len;
  sockaddr_union *psVar15;
  sockaddr_union *__addr;
  int in_GS_OFFSET;
  byte bVar16;
  int local_2d4;
  int b;
  sockaddr_union u;
  SockAddr_tag thisaddr;
  
  bVar16 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  del234(sktree,sock);
  if (-1 < sock->s) {
    close(sock->s);
  }
  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);
  (*(*sock->plug)->log)(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0);
  aVar2 = sock->addr->superfamily;
  if (aVar2 == ADDRTYPE_UNSPEC) {
LAB_00066c28:
                    /* WARNING: Subroutine does not return */
    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (aVar2 == ADDRTYPE_IPV4) {
    local_2d4 = 1;
  }
  else {
    paVar3 = (sock->step).ai;
    if (paVar3 == (addrinfo *)0x0) {
      local_2d4 = 2;
    }
    else {
      local_2d4 = paVar3->ai_family;
      if (local_2d4 == 0) goto LAB_00066c28;
    }
  }
  iVar7 = socket(local_2d4,1,0);
  sock->s = iVar7;
  if (iVar7 < 0) {
    piVar8 = __errno_location();
    iVar9 = *piVar8;
LAB_000669b7:
    add234(sktree,sock);
    if (iVar9 == 0) goto LAB_000669cd;
  }
  else {
    cloexec(iVar7);
    if (sock->oobinline != 0) {
      b = 1;
      iVar9 = setsockopt(iVar7,1,10,&b,4);
      if (-1 < iVar9) goto LAB_00066889;
LAB_00066a8a:
      piVar8 = __errno_location();
      iVar9 = *piVar8;
      close(iVar7);
      goto LAB_000669b7;
    }
LAB_00066889:
    if (sock->nodelay == 0) {
      iVar9 = sock->keepalive;
    }
    else {
      b = 1;
      iVar9 = setsockopt(iVar7,6,1,&b,4);
      if (iVar9 < 0) goto LAB_00066a8a;
      iVar9 = sock->keepalive;
    }
    if (iVar9 != 0) {
      b = 1;
      iVar9 = setsockopt(iVar7,1,9,&b,4);
      if (iVar9 < 0) goto LAB_00066a8a;
    }
    puVar5 = PTR_in6addr_any_000a9fc8;
    iVar9 = sock->privport;
    __addr = &u;
    psVar15 = __addr;
    for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {
      *(undefined4 *)psVar15 = 0;
      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);
    }
    uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;
    if (local_2d4 == 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;
      sVar11 = strlen(pcVar10);
      if (0x6b < sVar11) {
                    /* 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,sVar11 + 1,0x6c);
LAB_00066b3d:
      nonblock(iVar7);
      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);
      if (iVar7 < 0) {
        piVar8 = __errno_location();
        iVar9 = *piVar8;
        if (iVar9 != 0x73) goto LAB_000669b7;
      }
      else {
        sock->connected = 1;
        sock->writable = 1;
      }
      iVar9 = 0;
      uxsel_tell(sock);
      add234(sktree,sock);
      goto LAB_000669cd;
    }
    iVar14 = (int)(short)uVar13;
    iVar12 = iVar14 + -1;
LAB_0006695d:
    uVar6 = (ushort)iVar14;
    if (local_2d4 == 10) {
      u.storage.ss_family = 10;
      u._8_4_ = *(undefined4 *)puVar5;
      u._12_4_ = *(undefined4 *)(puVar5 + 4);
      u._16_4_ = *(undefined4 *)(puVar5 + 8);
      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);
      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;
      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);
    }
    else {
      if (local_2d4 != 2) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      u.sin6.sin6_flowinfo = 0;
      u.storage.ss_family = 2;
      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;
      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);
    }
    if (-1 < iVar9) {
LAB_00066b16:
      if ((local_2d4 != 2) && (local_2d4 != 10)) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");
      }
      paVar3 = (sock->step).ai;
      uVar13 = (ushort)sock->port;
      __addr = (sockaddr_union *)paVar3->ai_addr;
      __len = paVar3->ai_addrlen;
      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;
      goto LAB_00066b3d;
    }
    piVar8 = __errno_location();
    iVar9 = *piVar8;
    if (iVar9 == 0x62) {
      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))
      goto LAB_000669f6;
      goto LAB_0006695d;
    }
    if (iVar9 == 0) goto LAB_00066b16;
LAB_000669f6:
    add234(sktree,sock);
  }
  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);
  p_Var4 = (*sock->plug)->log;
  pcVar10 = strerror(iVar9);
  (*p_Var4)(sock->plug,1,&thisaddr,sock->port,pcVar10,iVar9);
LAB_000669cd:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar9;
  }
                    /* 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_000667a0(int param_1)

{
  code *pcVar1;
  undefined *puVar2;
  ushort uVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  char *pcVar7;
  size_t sVar8;
  int iVar9;
  ushort uVar10;
  int iVar11;
  socklen_t __len;
  sockaddr *psVar12;
  sockaddr *__addr;
  int in_GS_OFFSET;
  byte bVar13;
  int local_2d4;
  undefined4 local_2b4;
  sockaddr local_2b0;
  undefined4 local_2a0;
  undefined4 local_29c;
  undefined1 local_230 [528];
  int local_20;
  undefined4 uStack_14;
  
  bVar13 = 0;
  uStack_14 = 0x667ab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00064020(DAT_000aab00,param_1);
  if (-1 < *(int *)(param_1 + 8)) {
    close(*(int *)(param_1 + 8));
  }
  FUN_00066710();
  (**(code **)**(undefined4 **)(param_1 + 0xc))
            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);
  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);
  if (iVar4 == 0) {
LAB_00066c28:
                    /* WARNING: Subroutine does not return */
    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (iVar4 == 1) {
    local_2d4 = 1;
  }
  else if (*(int *)(param_1 + 0x60) == 0) {
    local_2d4 = 2;
  }
  else {
    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);
    if (local_2d4 == 0) goto LAB_00066c28;
  }
  iVar4 = socket(local_2d4,1,0);
  *(int *)(param_1 + 8) = iVar4;
  if (iVar4 < 0) {
    piVar5 = __errno_location();
    iVar6 = *piVar5;
LAB_000669b7:
    FUN_00063d00(DAT_000aab00,param_1);
    if (iVar6 == 0) goto LAB_000669cd;
  }
  else {
    FUN_00065c90(iVar4);
    if (*(int *)(param_1 + 0x38) != 0) {
      local_2b4 = 1;
      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);
      if (-1 < iVar6) goto LAB_00066889;
LAB_00066a8a:
      piVar5 = __errno_location();
      iVar6 = *piVar5;
      close(iVar4);
      goto LAB_000669b7;
    }
LAB_00066889:
    if (*(int *)(param_1 + 0x4c) == 0) {
      iVar6 = *(int *)(param_1 + 0x50);
    }
    else {
      local_2b4 = 1;
      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);
      if (iVar6 < 0) goto LAB_00066a8a;
      iVar6 = *(int *)(param_1 + 0x50);
    }
    if (iVar6 != 0) {
      local_2b4 = 1;
      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);
      if (iVar6 < 0) goto LAB_00066a8a;
    }
    puVar2 = PTR_in6addr_any_000a9fc8;
    iVar6 = *(int *)(param_1 + 0x54);
    __addr = &local_2b0;
    psVar12 = __addr;
    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {
      psVar12->sa_family = 0;
      psVar12->sa_data[0] = '\0';
      psVar12->sa_data[1] = '\0';
      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);
    }
    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;
    if (local_2d4 == 1) {
      if (*(int *)(param_1 + 0x58) != 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");
      }
      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);
      sVar8 = strlen(pcVar7);
      if (0x6b < sVar8) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,
                      "try_connect");
      }
      local_2b0.sa_family = 1;
      __len = 0x6e;
      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);
LAB_00066b3d:
      FUN_00065db0(iVar4);
      iVar4 = connect(iVar4,__addr,__len);
      if (iVar4 < 0) {
        piVar5 = __errno_location();
        iVar6 = *piVar5;
        if (iVar6 != 0x73) goto LAB_000669b7;
      }
      else {
        *(undefined4 *)(param_1 + 0x1c) = 1;
        *(undefined4 *)(param_1 + 0x20) = 1;
      }
      iVar6 = 0;
      FUN_00066500();
      FUN_00063d00(DAT_000aab00,param_1);
      goto LAB_000669cd;
    }
    iVar11 = (int)(short)uVar10;
    iVar9 = iVar11 + -1;
LAB_0006695d:
    uVar3 = (ushort)iVar11;
    if (local_2d4 == 10) {
      local_2b0.sa_family = 10;
      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;
      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);
      local_2a0 = *(undefined4 *)(puVar2 + 8);
      local_29c = *(undefined4 *)(puVar2 + 0xc);
      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;
      iVar6 = bind(iVar4,__addr,0x1c);
    }
    else {
      if (local_2d4 != 2) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      local_2b0.sa_data[2] = '\0';
      local_2b0.sa_data[3] = '\0';
      local_2b0.sa_data[4] = '\0';
      local_2b0.sa_data[5] = '\0';
      local_2b0.sa_family = 2;
      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;
      iVar6 = bind(iVar4,__addr,0x10);
    }
    if (-1 < iVar6) {
LAB_00066b16:
      if ((local_2d4 != 2) && (local_2d4 != 10)) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");
      }
      __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_00066b3d;
    }
    piVar5 = __errno_location();
    iVar6 = *piVar5;
    if (iVar6 == 0x62) {
      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))
      goto LAB_000669f6;
      goto LAB_0006695d;
    }
    if (iVar6 == 0) goto LAB_00066b16;
LAB_000669f6:
    FUN_00063d00(DAT_000aab00,param_1);
  }
  FUN_00066710();
  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);
  pcVar7 = strerror(iVar6);
  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)
  ;
LAB_000669cd:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar6;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x435e5
SUB ESP,0x2d4
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c4],EAX
XOR EAX,EAX
PUSH EBP
PUSH dword ptr [EBX + 0xd70]
CALL 0x00064020
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
TEST EAX,EAX
JS 0x000667e8
SUB ESP,0xc
PUSH EAX
CALL 0x00014810
ADD ESP,0x10
MOV EDX,dword ptr [EBP + 0x5c]
LEA EAX,[ESP + 0xac]
LEA ECX,[EBP + 0x60]
MOV dword ptr [ESP + 0xc],EAX
MOV ESI,EAX
MOV dword ptr [ESP + 0x10],ECX
CALL 0x00066710
MOV EAX,dword ptr [EBP + 0xc]
SUB ESP,0x8
MOV EDX,dword ptr [EAX]
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBP + 0x58]
PUSH ESI
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 0x00066c28
CMP EAX,0x1
JZ 0x00066a50
MOV EAX,dword ptr [EBP + 0x60]
TEST EAX,EAX
JZ 0x00066a40
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JZ 0x00066c28
SUB ESP,0x4
PUSH 0x0
PUSH 0x1
PUSH dword ptr [ESP + 0x14]
CALL 0x00014720
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x10
MOV dword ptr [EBP + 0x8],EAX
TEST EAX,EAX
JS 0x000669b0
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x00065c90
MOV EAX,dword ptr [EBP + 0x38]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00066a60
MOV EAX,dword ptr [EBP + 0x4c]
TEST EAX,EAX
JNZ 0x00066aa8
MOV EAX,dword ptr [EBP + 0x50]
TEST EAX,EAX
JNZ 0x00066ad9
CMP dword ptr [EBP + 0x54],0x1
LEA EDI,[ESP + 0x2c]
MOV ECX,0x20
SBB EDX,EDX
XOR EAX,EAX
MOV dword ptr [ESP + 0x18],EDI
STOSD.REP ES:EDI
MOV ECX,dword ptr [ESP + 0x8]
NOT EDX
AND DX,0x3ff
CMP ECX,0x1
JZ 0x00066ba8
MOVSX ESI,DX
SUB EDX,0x1
MOV dword ptr [ESP + 0x1c],EBP
MOV EBP,ECX
LEA EAX,[ESI + -0x1]
MOVZX EDX,DX
MOV EDI,ESI
MOV ESI,dword ptr [ESP + 0x18]
SUB EAX,EDX
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [EBX + 0x238]
MOV dword ptr [ESP + 0x14],EAX
JMP 0x0006695d
CMP EBP,0x2
JNZ 0x00066c09
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 ESI
PUSH dword ptr [ESP + 0xc]
CALL 0x000144d0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00066c00
CALL 0x00014550
MOV EAX,dword ptr [EAX]
CMP EAX,0x62
JNZ 0x00066b08
TEST EDI,EDI
JZ 0x000669f0
SUB EDI,0x1
CMP EDI,dword ptr [ESP + 0x4]
JZ 0x000669f0
CMP EBP,0xa
JNZ 0x000668f8
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,0xa
SUB ESP,0x4
MOV word ptr [ESP + 0x30],AX
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP + 0x38],EAX
MOV EAX,dword ptr [ECX + 0x4]
MOV dword ptr [ESP + 0x3c],EAX
MOV EAX,dword ptr [ECX + 0x8]
MOV dword ptr [ESP + 0x40],EAX
MOV EAX,dword ptr [ECX + 0xc]
MOV dword ptr [ESP + 0x44],EAX
MOV EAX,EDI
ROL AX,0x8
MOV word ptr [ESP + 0x32],AX
PUSH 0x1c
PUSH ESI
PUSH dword ptr [ESP + 0xc]
CALL 0x000144d0
ADD ESP,0x10
JMP 0x00066930
CALL 0x00014550
MOV EDI,dword ptr [EAX]
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EBX + 0xd70]
CALL 0x00063d00
ADD ESP,0x10
TEST EDI,EDI
JNZ 0x00066a08
MOV ESI,dword ptr [ESP + 0x2bc]
XOR ESI,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00066c47
ADD ESP,0x2cc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0x1c]
MOV EDI,EAX
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EBX + 0xd70]
CALL 0x00063d00
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EBP + 0x5c]
CALL 0x00066710
MOV EAX,dword ptr [EBP + 0xc]
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
MOV ESI,dword ptr [EAX]
PUSH EDI
CALL 0x00014390
POP EDX
POP ECX
PUSH EDI
PUSH EAX
PUSH dword ptr [EBP + 0x58]
PUSH dword ptr [ESP + 0x20]
PUSH 0x1
PUSH dword ptr [EBP + 0xc]
CALL ESI
ADD ESP,0x20
JMP 0x000669cd
MOV dword ptr [ESP + 0x8],0x2
JMP 0x0006684d
MOV dword ptr [ESP + 0x8],0x1
JMP 0x0006684d
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 + 0x1c]
CALL 0x00014040
ADD ESP,0x20
TEST EAX,EAX
JNS 0x00066889
CALL 0x00014550
SUB ESP,0xc
MOV EDI,dword ptr [EAX]
PUSH dword ptr [ESP + 0xc]
CALL 0x00014810
ADD ESP,0x10
JMP 0x000669b7
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 + 0x1c]
CALL 0x00014040
ADD ESP,0x20
TEST EAX,EAX
JS 0x00066a8a
MOV EAX,dword ptr [EBP + 0x50]
TEST EAX,EAX
JZ 0x0006689f
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 + 0x1c]
CALL 0x00014040
ADD ESP,0x20
TEST EAX,EAX
JNS 0x0006689f
JMP 0x00066a8a
MOV EDI,EAX
MOV EBP,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JNZ 0x000669f6
MOV EAX,dword ptr [ESP + 0x8]
CMP EAX,0x2
JZ 0x00066b28
CMP EAX,0xa
JNZ 0x00066c4c
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 + 0xc]
CALL 0x00065db0
ADD ESP,0xc
PUSH ESI
PUSH EDI
PUSH dword ptr [ESP + 0xc]
CALL 0x000147f0
ADD ESP,0x10
TEST EAX,EAX
JS 0x00066b90
MOV dword ptr [EBP + 0x1c],0x1
MOV dword ptr [EBP + 0x20],0x1
MOV EAX,EBP
XOR EDI,EDI
CALL 0x00066500
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EBX + 0xd70]
CALL 0x00063d00
ADD ESP,0x10
JMP 0x000669cd
CALL 0x00014550
MOV EDI,dword ptr [EAX]
CMP EDI,0x73
JNZ 0x000669b7
JMP 0x00066b6c
MOV EAX,dword ptr [EBP + 0x58]
TEST EAX,EAX
JNZ 0x00066c8a
MOV EAX,dword ptr [EBP + 0x5c]
SUB ESP,0xc
LEA ESI,[EAX + 0x10]
PUSH ESI
CALL 0x00014470
ADD ESP,0x10
CMP EAX,0x6b
JA 0x00066c6b
MOV EDI,0x1
ADD EAX,0x1
MOV word ptr [ESP + 0x2c],DI
PUSH 0x6c
PUSH EAX
PUSH ESI
MOV ESI,0x6e
LEA EAX,[ESP + 0x3a]
PUSH EAX
CALL 0x000143a0
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x18]
JMP 0x00066b3d
MOV EBP,dword ptr [ESP + 0x1c]
JMP 0x00066b16
LEA EAX,[EBX + 0xfffd7ba0]
PUSH EAX
LEA EAX,[EBX + 0xfffd79ea]
PUSH 0x29f
PUSH EAX
LEA EAX,[EBX + 0xfffd7a0b]
PUSH EAX
CALL 0x00014870
LEA EAX,[EBX + 0xfffd7ba0]
PUSH EAX
LEA EAX,[EBX + 0xfffd79ea]
PUSH 0x25a
PUSH EAX
LEA EAX,[EBX + 0xfffd79f7]
PUSH EAX
CALL 0x00014870
CALL 0x0006f430
LEA EAX,[EBX + 0xfffd7ba0]
PUSH EAX
LEA EAX,[EBX + 0xfffd79ea]
PUSH 0x2de
PUSH EAX
LEA EAX,[EBX + 0xfffd7a2d]
PUSH EAX
CALL 0x00014870
LEA EAX,[EBX + 0xfffd7ba0]
PUSH EAX
LEA EAX,[EBX + 0xfffd79ea]
PUSH 0x2d6
PUSH EAX
LEA EAX,[EBX + 0xfffd7b28]
PUSH EAX
CALL 0x00014870
LEA EAX,[EBX + 0xfffd7ba0]
PUSH EAX
LEA EAX,[EBX + 0xfffd79ea]
PUSH 0x2d5
PUSH EAX
LEA EAX,[EBX + 0xfffd7a1d]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000667a0(int param_1)\n\n{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "int __regparm3 FUN_000667a0(int param_1)\n\n{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000667a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "ushort uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "sockaddr *psVar12;" type_identifier (pointer_declarator "*psVar12" * identifier) ;) (declaration "sockaddr *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar13;" type_identifier identifier ;) (declaration "int local_2d4;" primitive_type identifier ;) (declaration "undefined4 local_2b4;" type_identifier identifier ;) (declaration "sockaddr local_2b0;" type_identifier identifier ;) (declaration "undefined4 local_2a0;" type_identifier identifier ;) (declaration "undefined4 local_29c;" type_identifier identifier ;) (declaration "undefined1 local_230 [528];" type_identifier (array_declarator "local_230 [528]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x667ab;" (assignment_expression "uStack_14 = 0x667ab" 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_00064020(DAT_000aab00,param_1);" (call_expression "FUN_00064020(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,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 "FUN_00066710();" (call_expression "FUN_00066710()" identifier (argument_list "()" ( ))) ;) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" ( (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (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) )))))))) )) (argument_list "(*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0)" ( (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) )))) , 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 "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar4 = *(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 (iVar4 == 0) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" { (labeled_statement "LAB_00066c28:\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 (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n    local_2d4 = 1;\n  }" { (expression_statement "local_2d4 = 1;" (assignment_expression "local_2d4 = 1" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" else (if_statement "if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\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    local_2d4 = 2;\n  }" { (expression_statement "local_2d4 = 2;" (assignment_expression "local_2d4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" else (compound_statement "{\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" { (expression_statement "local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);" (assignment_expression "local_2d4 = *(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 (local_2d4 == 0) goto LAB_00066c28;" if (parenthesized_expression "(local_2d4 == 0)" ( (binary_expression "local_2d4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066c28;" goto statement_identifier ;)) }))))) (expression_statement "iVar4 = socket(local_2d4,1,0);" (assignment_expression "iVar4 = socket(local_2d4,1,0)" identifier = (call_expression "socket(local_2d4,1,0)" identifier (argument_list "(local_2d4,1,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar4;" (assignment_expression "*(int *)(param_1 + 8) = iVar4" (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 (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (labeled_statement "LAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);" statement_identifier : (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,param_1)" ( identifier , identifier ))) ;)) (if_statement "if (iVar6 == 0) goto LAB_000669cd;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000669cd;" goto statement_identifier ;)) }) (else_clause "else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" else (compound_statement "{\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" { (expression_statement "FUN_00065c90(iVar4);" (call_expression "FUN_00065c90(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\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_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }" { (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,1,10,&local_2b4,4)" identifier = (call_expression "setsockopt(iVar4,1,10,&local_2b4,4)" identifier (argument_list "(iVar4,1,10,&local_2b4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2b4" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar6) goto LAB_00066889;" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (goto_statement "goto LAB_00066889;" goto statement_identifier ;)) (labeled_statement "LAB_00066a8a:\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 "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_000669b7;" goto statement_identifier ;) })) (labeled_statement "LAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(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      iVar6 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "iVar6 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar6 = *(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_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" else (compound_statement "{\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,6,1,&local_2b4,4)" identifier = (call_expression "setsockopt(iVar4,6,1,&local_2b4,4)" identifier (argument_list "(iVar4,6,1,&local_2b4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2b4" & identifier) , number_literal )))) ;) (if_statement "if (iVar6 < 0) goto LAB_00066a8a;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00066a8a;" goto statement_identifier ;)) (expression_statement "iVar6 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar6 = *(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 (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }" { (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,1,9,&local_2b4,4)" identifier = (call_expression "setsockopt(iVar4,1,9,&local_2b4,4)" identifier (argument_list "(iVar4,1,9,&local_2b4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2b4" & identifier) , number_literal )))) ;) (if_statement "if (iVar6 < 0) goto LAB_00066a8a;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00066a8a;" goto statement_identifier ;)) })) (expression_statement "puVar2 = PTR_in6addr_any_000a9fc8;" (assignment_expression "puVar2 = PTR_in6addr_any_000a9fc8" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x54);" (assignment_expression "iVar6 = *(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_2b0;" (assignment_expression "__addr = &local_2b0" identifier = (pointer_expression "&local_2b0" & identifier)) ;) (expression_statement "psVar12 = __addr;" (assignment_expression "psVar12 = __addr" identifier = identifier) ;) (for_statement "for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -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      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }" { (expression_statement "psVar12->sa_family = 0;" (assignment_expression "psVar12->sa_family = 0" (field_expression "psVar12->sa_family" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar12->sa_data[0] = '\0';" (assignment_expression "psVar12->sa_data[0] = '\0'" (subscript_expression "psVar12->sa_data[0]" (field_expression "psVar12->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar12->sa_data[1] = '\0';" (assignment_expression "psVar12->sa_data[1] = '\0'" (subscript_expression "psVar12->sa_data[1]" (field_expression "psVar12->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);" (assignment_expression "psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4)" identifier = (cast_expression "(sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar12 + (uint)bVar13 * -8 + 4)" ( (binary_expression "(int)psVar12 + (uint)bVar13 * -8 + 4" (binary_expression "(int)psVar12 + (uint)bVar13 * -8" (cast_expression "(int)psVar12" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar13 * -8" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;" (assignment_expression "uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff" identifier = (binary_expression "~-(ushort)(iVar6 == 0) & 0x3ff" (unary_expression "~-(ushort)(iVar6 == 0)" ~ (unary_expression "-(ushort)(iVar6 == 0)" - (call_expression "(ushort)(iVar6 == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) ))))) & number_literal)) ;) (if_statement "if (local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }" if (parenthesized_expression "(local_2d4 == 1)" ( (binary_expression "local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\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_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\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 "pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);" (assignment_expression "pcVar7 = (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 "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (if_statement "if (0x6b < sVar8) {\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 < sVar8)" ( (binary_expression "0x6b < sVar8" 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_2b0.sa_family = 1;" (assignment_expression "local_2b0.sa_family = 1" (field_expression "local_2b0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "__len = 0x6e;" (assignment_expression "__len = 0x6e" identifier = number_literal) ;) (expression_statement "__memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);" (call_expression "__memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c)" identifier (argument_list "(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c)" ( (field_expression "local_2b0.sa_data" identifier . field_identifier) , identifier , (binary_expression "sVar8 + 1" identifier + number_literal) , number_literal ))) ;) (labeled_statement "LAB_00066b3d:\n      FUN_00065db0(iVar4);" statement_identifier : (expression_statement "FUN_00065db0(iVar4);" (call_expression "FUN_00065db0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = connect(iVar4,__addr,__len);" (assignment_expression "iVar4 = connect(iVar4,__addr,__len)" identifier = (call_expression "connect(iVar4,__addr,__len)" identifier (argument_list "(iVar4,__addr,__len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (iVar6 != 0x73) goto LAB_000669b7;" if (parenthesized_expression "(iVar6 != 0x73)" ( (binary_expression "iVar6 != 0x73" identifier != number_literal) )) (goto_statement "goto LAB_000669b7;" 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 "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "FUN_00066500();" (call_expression "FUN_00066500()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,param_1)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_000669cd;" goto statement_identifier ;) })) (expression_statement "iVar11 = (int)(short)uVar10;" (assignment_expression "iVar11 = (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 "iVar9 = iVar11 + -1;" (assignment_expression "iVar9 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (labeled_statement "LAB_0006695d:\n    uVar3 = (ushort)iVar11;" statement_identifier : (expression_statement "uVar3 = (ushort)iVar11;" (assignment_expression "uVar3 = (ushort)iVar11" identifier = (cast_expression "(ushort)iVar11" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;)) (if_statement "if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" if (parenthesized_expression "(local_2d4 == 10)" ( (binary_expression "local_2d4 == 10" identifier == number_literal) )) (compound_statement "{\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }" { (expression_statement "local_2b0.sa_family = 10;" (assignment_expression "local_2b0.sa_family = 10" (field_expression "local_2b0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;" (assignment_expression "local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2" (field_expression "local_2b0.sa_data._6_4_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);" (assignment_expression "local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4)" (field_expression "local_2b0.sa_data._10_4_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)(puVar2 + 4)" * (cast_expression "(undefined4 *)(puVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_2a0 = *(undefined4 *)(puVar2 + 8);" (assignment_expression "local_2a0 = *(undefined4 *)(puVar2 + 8)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 8)" * (cast_expression "(undefined4 *)(puVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_29c = *(undefined4 *)(puVar2 + 0xc);" (assignment_expression "local_29c = *(undefined4 *)(puVar2 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;" (assignment_expression "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8" (field_expression "local_2b0.sa_data._0_2_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" identifier << number_literal) | (binary_expression "uVar3 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar6 = bind(iVar4,__addr,0x1c);" (assignment_expression "iVar6 = bind(iVar4,__addr,0x1c)" identifier = (call_expression "bind(iVar4,__addr,0x1c)" identifier (argument_list "(iVar4,__addr,0x1c)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" else (compound_statement "{\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" { (if_statement "if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" if (parenthesized_expression "(local_2d4 != 2)" ( (binary_expression "local_2d4 != 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 ") ))) ;) })) (expression_statement "local_2b0.sa_data[2] = '\0';" (assignment_expression "local_2b0.sa_data[2] = '\0'" (subscript_expression "local_2b0.sa_data[2]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_data[3] = '\0';" (assignment_expression "local_2b0.sa_data[3] = '\0'" (subscript_expression "local_2b0.sa_data[3]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_data[4] = '\0';" (assignment_expression "local_2b0.sa_data[4] = '\0'" (subscript_expression "local_2b0.sa_data[4]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_data[5] = '\0';" (assignment_expression "local_2b0.sa_data[5] = '\0'" (subscript_expression "local_2b0.sa_data[5]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_family = 2;" (assignment_expression "local_2b0.sa_family = 2" (field_expression "local_2b0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;" (assignment_expression "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8" (field_expression "local_2b0.sa_data._0_2_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" identifier << number_literal) | (binary_expression "uVar3 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar6 = bind(iVar4,__addr,0x10);" (assignment_expression "iVar6 = bind(iVar4,__addr,0x10)" identifier = (call_expression "bind(iVar4,__addr,0x10)" identifier (argument_list "(iVar4,__addr,0x10)" ( identifier , identifier , number_literal )))) ;) }))) (if_statement "if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }" { (labeled_statement "LAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" statement_identifier : (if_statement "if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" if (parenthesized_expression "((local_2d4 != 2) && (local_2d4 != 10))" ( (binary_expression "(local_2d4 != 2) && (local_2d4 != 10)" (parenthesized_expression "(local_2d4 != 2)" ( (binary_expression "local_2d4 != 2" identifier != number_literal) )) && (parenthesized_expression "(local_2d4 != 10)" ( (binary_expression "local_2d4 != 10" identifier != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" { comment (expression_statement "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");" (call_expression "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" identifier (argument_list "("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" ( (string_literal ""0 && \"unknown address family\""" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) }))) (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_00066b3d;" goto statement_identifier ;) })) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" if (parenthesized_expression "(iVar6 == 0x62)" ( (binary_expression "iVar6 == 0x62" identifier == number_literal) )) (compound_statement "{\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" { (if_statement "if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;" if (parenthesized_expression "((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))" ( (binary_expression "(iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff))" (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff))" ( (comma_expression "iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) , (binary_expression "iVar11 == iVar9 - (uVar10 - 1 & 0xffff)" identifier == (binary_expression "iVar9 - (uVar10 - 1 & 0xffff)" identifier - (parenthesized_expression "(uVar10 - 1 & 0xffff)" ( (binary_expression "uVar10 - 1 & 0xffff" (binary_expression "uVar10 - 1" identifier - number_literal) & number_literal) ))))) ))) )) (goto_statement "goto LAB_000669f6;" goto statement_identifier ;)) (goto_statement "goto LAB_0006695d;" goto statement_identifier ;) })) (if_statement "if (iVar6 == 0) goto LAB_00066b16;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066b16;" goto statement_identifier ;)) (labeled_statement "LAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);" statement_identifier : (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,param_1)" ( identifier , identifier ))) ;)) }))) (expression_statement "FUN_00066710();" (call_expression "FUN_00066710()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);" (assignment_expression "pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (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 "pcVar7 = strerror(iVar6);" (assignment_expression "pcVar7 = strerror(iVar6)" identifier = (call_expression "strerror(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;" (call_expression "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)" ( (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_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\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 iVar6;\n  }" { (return_statement "return iVar6;" return identifier ;) }))) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" 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  int iVar1;\n  anon_enum_32 aVar2;\n  addrinfo *paVar3;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var4;\n  undefined *puVar5;\n  ushort uVar6;\n  int iVar7;\n  int *piVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  int iVar12;\n  ushort uVar13;\n  int iVar14;\n  socklen_t __len;\n  sockaddr_union *psVar15;\n  sockaddr_union *__addr;\n  int in_GS_OFFSET;\n  byte bVar16;\n  int local_2d4;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  \n  bVar16 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  del234(sktree,sock);\n  if (-1 < sock->s) {\n    close(sock->s);\n  }\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  (*(*sock->plug)->log)(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0);\n  aVar2 = sock->addr->superfamily;\n  if (aVar2 == ADDRTYPE_UNSPEC) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (aVar2 == ADDRTYPE_IPV4) {\n    local_2d4 = 1;\n  }\n  else {\n    paVar3 = (sock->step).ai;\n    if (paVar3 == (addrinfo *)0x0) {\n      local_2d4 = 2;\n    }\n    else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }\n  }\n  iVar7 = socket(local_2d4,1,0);\n  sock->s = iVar7;\n  if (iVar7 < 0) {\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\nLAB_000669b7:\n    add234(sktree,sock);\n    if (iVar9 == 0) goto LAB_000669cd;\n  }\n  else {\n    cloexec(iVar7);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }\n    puVar5 = PTR_in6addr_any_000a9fc8;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar15 = __addr;\n    for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }\n    uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\n    }\n    iVar14 = (int)(short)uVar13;\n    iVar12 = iVar14 + -1;\nLAB_0006695d:\n    uVar6 = (ushort)iVar14;\n    if (local_2d4 == 10) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }\n    if (-1 < iVar9) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\n    if (iVar9 == 0x62) {\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar9 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    add234(sktree,sock);\n  }\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  p_Var4 = (*sock->plug)->log;\n  pcVar10 = strerror(iVar9);\n  (*p_Var4)(sock->plug,1,&thisaddr,sock->port,pcVar10,iVar9);\nLAB_000669cd:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar9;\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  int iVar1;\n  anon_enum_32 aVar2;\n  addrinfo *paVar3;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var4;\n  undefined *puVar5;\n  ushort uVar6;\n  int iVar7;\n  int *piVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  int iVar12;\n  ushort uVar13;\n  int iVar14;\n  socklen_t __len;\n  sockaddr_union *psVar15;\n  sockaddr_union *__addr;\n  int in_GS_OFFSET;\n  byte bVar16;\n  int local_2d4;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  \n  bVar16 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  del234(sktree,sock);\n  if (-1 < sock->s) {\n    close(sock->s);\n  }\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  (*(*sock->plug)->log)(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0);\n  aVar2 = sock->addr->superfamily;\n  if (aVar2 == ADDRTYPE_UNSPEC) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (aVar2 == ADDRTYPE_IPV4) {\n    local_2d4 = 1;\n  }\n  else {\n    paVar3 = (sock->step).ai;\n    if (paVar3 == (addrinfo *)0x0) {\n      local_2d4 = 2;\n    }\n    else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }\n  }\n  iVar7 = socket(local_2d4,1,0);\n  sock->s = iVar7;\n  if (iVar7 < 0) {\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\nLAB_000669b7:\n    add234(sktree,sock);\n    if (iVar9 == 0) goto LAB_000669cd;\n  }\n  else {\n    cloexec(iVar7);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }\n    puVar5 = PTR_in6addr_any_000a9fc8;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar15 = __addr;\n    for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }\n    uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\n    }\n    iVar14 = (int)(short)uVar13;\n    iVar12 = iVar14 + -1;\nLAB_0006695d:\n    uVar6 = (ushort)iVar14;\n    if (local_2d4 == 10) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }\n    if (-1 < iVar9) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\n    if (iVar9 == 0x62) {\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar9 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    add234(sktree,sock);\n  }\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  p_Var4 = (*sock->plug)->log;\n  pcVar10 = strerror(iVar9);\n  (*p_Var4)(sock->plug,1,&thisaddr,sock->port,pcVar10,iVar9);\nLAB_000669cd:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar9;\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  int iVar1;\n  anon_enum_32 aVar2;\n  addrinfo *paVar3;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var4;\n  undefined *puVar5;\n  ushort uVar6;\n  int iVar7;\n  int *piVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  int iVar12;\n  ushort uVar13;\n  int iVar14;\n  socklen_t __len;\n  sockaddr_union *psVar15;\n  sockaddr_union *__addr;\n  int in_GS_OFFSET;\n  byte bVar16;\n  int local_2d4;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  \n  bVar16 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  del234(sktree,sock);\n  if (-1 < sock->s) {\n    close(sock->s);\n  }\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  (*(*sock->plug)->log)(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0);\n  aVar2 = sock->addr->superfamily;\n  if (aVar2 == ADDRTYPE_UNSPEC) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (aVar2 == ADDRTYPE_IPV4) {\n    local_2d4 = 1;\n  }\n  else {\n    paVar3 = (sock->step).ai;\n    if (paVar3 == (addrinfo *)0x0) {\n      local_2d4 = 2;\n    }\n    else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }\n  }\n  iVar7 = socket(local_2d4,1,0);\n  sock->s = iVar7;\n  if (iVar7 < 0) {\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\nLAB_000669b7:\n    add234(sktree,sock);\n    if (iVar9 == 0) goto LAB_000669cd;\n  }\n  else {\n    cloexec(iVar7);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }\n    puVar5 = PTR_in6addr_any_000a9fc8;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar15 = __addr;\n    for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }\n    uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\n    }\n    iVar14 = (int)(short)uVar13;\n    iVar12 = iVar14 + -1;\nLAB_0006695d:\n    uVar6 = (ushort)iVar14;\n    if (local_2d4 == 10) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }\n    if (-1 < iVar9) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\n    if (iVar9 == 0x62) {\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar9 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    add234(sktree,sock);\n  }\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  p_Var4 = (*sock->plug)->log;\n  pcVar10 = strerror(iVar9);\n  (*p_Var4)(sock->plug,1,&thisaddr,sock->port,pcVar10,iVar9);\nLAB_000669cd:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "anon_enum_32 aVar2;" type_identifier identifier ;) (declaration "addrinfo *paVar3;" type_identifier (pointer_declarator "*paVar3" * identifier) ;) (declaration "_func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "ushort uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "size_t sVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "ushort uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "sockaddr_union *psVar15;" type_identifier (pointer_declarator "*psVar15" * identifier) ;) (declaration "sockaddr_union *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar16;" type_identifier identifier ;) (declaration "int local_2d4;" primitive_type identifier ;) (declaration "int b;" primitive_type identifier ;) (declaration "sockaddr_union u;" type_identifier identifier ;) (declaration "SockAddr_tag thisaddr;" type_identifier identifier ;) (expression_statement "bVar16 = 0;" (assignment_expression "bVar16 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);" (call_expression "sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step)" identifier (argument_list "(&thisaddr,sock->addr,&sock->step)" ( (pointer_expression "&thisaddr" & identifier) , (field_expression "sock->addr" identifier -> field_identifier) , (pointer_expression "&sock->step" & (field_expression "sock->step" identifier -> field_identifier)) ))) ;) (expression_statement "(*(*sock->plug)->log)(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0);" (call_expression "(*(*sock->plug)->log)(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0)" (parenthesized_expression "(*(*sock->plug)->log)" ( (pointer_expression "*(*sock->plug)->log" * (field_expression "(*sock->plug)->log" (parenthesized_expression "(*sock->plug)" ( (pointer_expression "*sock->plug" * (field_expression "sock->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0)" ( (field_expression "sock->plug" identifier -> field_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 "aVar2 = sock->addr->superfamily;" (assignment_expression "aVar2 = sock->addr->superfamily" identifier = (field_expression "sock->addr->superfamily" (field_expression "sock->addr" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (aVar2 == ADDRTYPE_UNSPEC) {\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" if (parenthesized_expression "(aVar2 == ADDRTYPE_UNSPEC)" ( (binary_expression "aVar2 == ADDRTYPE_UNSPEC" identifier == identifier) )) (compound_statement "{\nLAB_00066c28:\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" { (labeled_statement "LAB_00066c28:\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 (aVar2 == ADDRTYPE_IPV4) {\n    local_2d4 = 1;\n  }\n  else {\n    paVar3 = (sock->step).ai;\n    if (paVar3 == (addrinfo *)0x0) {\n      local_2d4 = 2;\n    }\n    else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }\n  }" if (parenthesized_expression "(aVar2 == ADDRTYPE_IPV4)" ( (binary_expression "aVar2 == ADDRTYPE_IPV4" identifier == identifier) )) (compound_statement "{\n    local_2d4 = 1;\n  }" { (expression_statement "local_2d4 = 1;" (assignment_expression "local_2d4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    paVar3 = (sock->step).ai;\n    if (paVar3 == (addrinfo *)0x0) {\n      local_2d4 = 2;\n    }\n    else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }\n  }" else (compound_statement "{\n    paVar3 = (sock->step).ai;\n    if (paVar3 == (addrinfo *)0x0) {\n      local_2d4 = 2;\n    }\n    else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }\n  }" { (expression_statement "paVar3 = (sock->step).ai;" (assignment_expression "paVar3 = (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 (paVar3 == (addrinfo *)0x0) {\n      local_2d4 = 2;\n    }\n    else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }" if (parenthesized_expression "(paVar3 == (addrinfo *)0x0)" ( (binary_expression "paVar3 == (addrinfo *)0x0" identifier == (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_2d4 = 2;\n    }" { (expression_statement "local_2d4 = 2;" (assignment_expression "local_2d4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }" else (compound_statement "{\n      local_2d4 = paVar3->ai_family;\n      if (local_2d4 == 0) goto LAB_00066c28;\n    }" { (expression_statement "local_2d4 = paVar3->ai_family;" (assignment_expression "local_2d4 = paVar3->ai_family" identifier = (field_expression "paVar3->ai_family" identifier -> field_identifier)) ;) (if_statement "if (local_2d4 == 0) goto LAB_00066c28;" if (parenthesized_expression "(local_2d4 == 0)" ( (binary_expression "local_2d4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066c28;" goto statement_identifier ;)) }))) }))) (expression_statement "iVar7 = socket(local_2d4,1,0);" (assignment_expression "iVar7 = socket(local_2d4,1,0)" identifier = (call_expression "socket(local_2d4,1,0)" identifier (argument_list "(local_2d4,1,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "sock->s = iVar7;" (assignment_expression "sock->s = iVar7" (field_expression "sock->s" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar7 < 0) {\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\nLAB_000669b7:\n    add234(sktree,sock);\n    if (iVar9 == 0) goto LAB_000669cd;\n  }\n  else {\n    cloexec(iVar7);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }\n    puVar5 = PTR_in6addr_any_000a9fc8;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar15 = __addr;\n    for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }\n    uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\n    }\n    iVar14 = (int)(short)uVar13;\n    iVar12 = iVar14 + -1;\nLAB_0006695d:\n    uVar6 = (ushort)iVar14;\n    if (local_2d4 == 10) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }\n    if (-1 < iVar9) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\n    if (iVar9 == 0x62) {\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar9 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    add234(sktree,sock);\n  }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\nLAB_000669b7:\n    add234(sktree,sock);\n    if (iVar9 == 0) goto LAB_000669cd;\n  }" { (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar9 = *piVar8;" (assignment_expression "iVar9 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (labeled_statement "LAB_000669b7:\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 (iVar9 == 0) goto LAB_000669cd;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000669cd;" goto statement_identifier ;)) }) (else_clause "else {\n    cloexec(iVar7);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }\n    puVar5 = PTR_in6addr_any_000a9fc8;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar15 = __addr;\n    for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }\n    uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\n    }\n    iVar14 = (int)(short)uVar13;\n    iVar12 = iVar14 + -1;\nLAB_0006695d:\n    uVar6 = (ushort)iVar14;\n    if (local_2d4 == 10) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }\n    if (-1 < iVar9) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\n    if (iVar9 == 0x62) {\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar9 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    add234(sktree,sock);\n  }" else (compound_statement "{\n    cloexec(iVar7);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }\n    if (iVar9 != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }\n    puVar5 = PTR_in6addr_any_000a9fc8;\n    iVar9 = sock->privport;\n    __addr = &u;\n    psVar15 = __addr;\n    for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }\n    uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;\n    if (local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\n    }\n    iVar14 = (int)(short)uVar13;\n    iVar12 = iVar14 + -1;\nLAB_0006695d:\n    uVar6 = (ushort)iVar14;\n    if (local_2d4 == 10) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }\n    if (-1 < iVar9) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }\n    piVar8 = __errno_location();\n    iVar9 = *piVar8;\n    if (iVar9 == 0x62) {\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar9 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    add234(sktree,sock);\n  }" { (expression_statement "cloexec(iVar7);" (call_expression "cloexec(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if (sock->oobinline != 0) {\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\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(iVar7,1,10,&b,4);\n      if (-1 < iVar9) goto LAB_00066889;\nLAB_00066a8a:\n      piVar8 = __errno_location();\n      iVar9 = *piVar8;\n      close(iVar7);\n      goto LAB_000669b7;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar9 = setsockopt(iVar7,1,10,&b,4);" (assignment_expression "iVar9 = setsockopt(iVar7,1,10,&b,4)" identifier = (call_expression "setsockopt(iVar7,1,10,&b,4)" identifier (argument_list "(iVar7,1,10,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar9) goto LAB_00066889;" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_00066889;" goto statement_identifier ;)) (labeled_statement "LAB_00066a8a:\n      piVar8 = __errno_location();" statement_identifier : (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "iVar9 = *piVar8;" (assignment_expression "iVar9 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (expression_statement "close(iVar7);" (call_expression "close(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (goto_statement "goto LAB_000669b7;" goto statement_identifier ;) })) (labeled_statement "LAB_00066889:\n    if (sock->nodelay == 0) {\n      iVar9 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\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(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\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(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }" else (compound_statement "{\n      b = 1;\n      iVar9 = setsockopt(iVar7,6,1,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n      iVar9 = sock->keepalive;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar9 = setsockopt(iVar7,6,1,&b,4);" (assignment_expression "iVar9 = setsockopt(iVar7,6,1,&b,4)" identifier = (call_expression "setsockopt(iVar7,6,1,&b,4)" identifier (argument_list "(iVar7,6,1,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (iVar9 < 0) goto LAB_00066a8a;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00066a8a;" 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(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n      b = 1;\n      iVar9 = setsockopt(iVar7,1,9,&b,4);\n      if (iVar9 < 0) goto LAB_00066a8a;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar9 = setsockopt(iVar7,1,9,&b,4);" (assignment_expression "iVar9 = setsockopt(iVar7,1,9,&b,4)" identifier = (call_expression "setsockopt(iVar7,1,9,&b,4)" identifier (argument_list "(iVar7,1,9,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (iVar9 < 0) goto LAB_00066a8a;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00066a8a;" goto statement_identifier ;)) })) (expression_statement "puVar5 = PTR_in6addr_any_000a9fc8;" (assignment_expression "puVar5 = PTR_in6addr_any_000a9fc8" 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 "psVar15 = __addr;" (assignment_expression "psVar15 = __addr" identifier = identifier) ;) (for_statement "for (iVar12 = 0x20; iVar12 != 0; iVar12 = iVar12 + -1) {\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }" for ( (assignment_expression "iVar12 = 0x20" identifier = number_literal) ; (binary_expression "iVar12 != 0" identifier != number_literal) ; (assignment_expression "iVar12 = iVar12 + -1" identifier = (binary_expression "iVar12 + -1" identifier + number_literal)) ) (compound_statement "{\n      *(undefined4 *)psVar15 = 0;\n      psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);\n    }" { (expression_statement "*(undefined4 *)psVar15 = 0;" (assignment_expression "*(undefined4 *)psVar15 = 0" (pointer_expression "*(undefined4 *)psVar15" * (cast_expression "(undefined4 *)psVar15" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4);" (assignment_expression "psVar15 = (sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4)" identifier = (cast_expression "(sockaddr_union *)((int)psVar15 + (uint)bVar16 * -8 + 4)" ( (type_descriptor "sockaddr_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar15 + (uint)bVar16 * -8 + 4)" ( (binary_expression "(int)psVar15 + (uint)bVar16 * -8 + 4" (binary_expression "(int)psVar15 + (uint)bVar16 * -8" (cast_expression "(int)psVar15" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar16 * -8" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "uVar13 = ~-(ushort)(iVar9 == 0) & 0x3ff;" (assignment_expression "uVar13 = ~-(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 (local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\n    }" if (parenthesized_expression "(local_2d4 == 1)" ( (binary_expression "local_2d4 == 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      sVar11 = strlen(pcVar10);\n      if (0x6b < sVar11) {\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,sVar11 + 1,0x6c);\nLAB_00066b3d:\n      nonblock(iVar7);\n      iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);\n      if (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }\n      iVar9 = 0;\n      uxsel_tell(sock);\n      add234(sktree,sock);\n      goto LAB_000669cd;\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 "sVar11 = strlen(pcVar10);" (assignment_expression "sVar11 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (0x6b < sVar11) {\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 < sVar11)" ( (binary_expression "0x6b < sVar11" 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,sVar11 + 1,0x6c);" (call_expression "__memcpy_chk(u.storage.__ss_padding,pcVar10,sVar11 + 1,0x6c)" identifier (argument_list "(u.storage.__ss_padding,pcVar10,sVar11 + 1,0x6c)" ( (field_expression "u.storage.__ss_padding" (field_expression "u.storage" identifier . field_identifier) . field_identifier) , identifier , (binary_expression "sVar11 + 1" identifier + number_literal) , number_literal ))) ;) (labeled_statement "LAB_00066b3d:\n      nonblock(iVar7);" statement_identifier : (expression_statement "nonblock(iVar7);" (call_expression "nonblock(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;)) (expression_statement "iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len);" (assignment_expression "iVar7 = connect(iVar7,(sockaddr *)&__addr->storage,__len)" identifier = (call_expression "connect(iVar7,(sockaddr *)&__addr->storage,__len)" identifier (argument_list "(iVar7,(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 (iVar7 < 0) {\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        sock->connected = 1;\n        sock->writable = 1;\n      }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar8 = __errno_location();\n        iVar9 = *piVar8;\n        if (iVar9 != 0x73) goto LAB_000669b7;\n      }" { (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar9 = *piVar8;" (assignment_expression "iVar9 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (if_statement "if (iVar9 != 0x73) goto LAB_000669b7;" if (parenthesized_expression "(iVar9 != 0x73)" ( (binary_expression "iVar9 != 0x73" identifier != number_literal) )) (goto_statement "goto LAB_000669b7;" 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 "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uxsel_tell(sock);" (call_expression "uxsel_tell(sock)" identifier (argument_list "(sock)" ( identifier ))) ;) (expression_statement "add234(sktree,sock);" (call_expression "add234(sktree,sock)" identifier (argument_list "(sktree,sock)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_000669cd;" goto statement_identifier ;) })) (expression_statement "iVar14 = (int)(short)uVar13;" (assignment_expression "iVar14 = (int)(short)uVar13" identifier = (cast_expression "(int)(short)uVar13" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)uVar13" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "iVar12 = iVar14 + -1;" (assignment_expression "iVar12 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) (labeled_statement "LAB_0006695d:\n    uVar6 = (ushort)iVar14;" statement_identifier : (expression_statement "uVar6 = (ushort)iVar14;" (assignment_expression "uVar6 = (ushort)iVar14" identifier = (cast_expression "(ushort)iVar14" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;)) (if_statement "if (local_2d4 == 10) {\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }" if (parenthesized_expression "(local_2d4 == 10)" ( (binary_expression "local_2d4 == 10" identifier == number_literal) )) (compound_statement "{\n      u.storage.ss_family = 10;\n      u._8_4_ = *(undefined4 *)puVar5;\n      u._12_4_ = *(undefined4 *)(puVar5 + 4);\n      u._16_4_ = *(undefined4 *)(puVar5 + 8);\n      u._20_4_ = *(undefined4 *)(puVar5 + 0xc);\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);\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 *)puVar5;" (assignment_expression "u._8_4_ = *(undefined4 *)puVar5" (field_expression "u._8_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)puVar5" * (cast_expression "(undefined4 *)puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "u._12_4_ = *(undefined4 *)(puVar5 + 4);" (assignment_expression "u._12_4_ = *(undefined4 *)(puVar5 + 4)" (field_expression "u._12_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(puVar5 + 4)" * (cast_expression "(undefined4 *)(puVar5 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 4)" ( (binary_expression "puVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "u._16_4_ = *(undefined4 *)(puVar5 + 8);" (assignment_expression "u._16_4_ = *(undefined4 *)(puVar5 + 8)" (field_expression "u._16_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(puVar5 + 8)" * (cast_expression "(undefined4 *)(puVar5 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 8)" ( (binary_expression "puVar5 + 8" identifier + number_literal) ))))) ;) (expression_statement "u._20_4_ = *(undefined4 *)(puVar5 + 0xc);" (assignment_expression "u._20_4_ = *(undefined4 *)(puVar5 + 0xc)" (field_expression "u._20_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(puVar5 + 0xc)" * (cast_expression "(undefined4 *)(puVar5 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0xc)" ( (binary_expression "puVar5 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;" (assignment_expression "u.sin.sin_port = uVar6 << 8 | uVar6 >> 8" (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier) = (binary_expression "uVar6 << 8 | uVar6 >> 8" (binary_expression "uVar6 << 8" identifier << number_literal) | (binary_expression "uVar6 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c);" (assignment_expression "iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x1c)" identifier = (call_expression "bind(iVar7,(sockaddr *)&__addr->storage,0x1c)" identifier (argument_list "(iVar7,(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 )))) ;) }) (else_clause "else {\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }" else (compound_statement "{\n      if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      u.sin6.sin6_flowinfo = 0;\n      u.storage.ss_family = 2;\n      u.sin.sin_port = uVar6 << 8 | uVar6 >> 8;\n      iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);\n    }" { (if_statement "if (local_2d4 != 2) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" if (parenthesized_expression "(local_2d4 != 2)" ( (binary_expression "local_2d4 != 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 ") ))) ;) })) (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 = uVar6 << 8 | uVar6 >> 8;" (assignment_expression "u.sin.sin_port = uVar6 << 8 | uVar6 >> 8" (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier) = (binary_expression "uVar6 << 8 | uVar6 >> 8" (binary_expression "uVar6 << 8" identifier << number_literal) | (binary_expression "uVar6 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10);" (assignment_expression "iVar9 = bind(iVar7,(sockaddr *)&__addr->storage,0x10)" identifier = (call_expression "bind(iVar7,(sockaddr *)&__addr->storage,0x10)" identifier (argument_list "(iVar7,(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 < iVar9) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (compound_statement "{\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\n      paVar3 = (sock->step).ai;\n      uVar13 = (ushort)sock->port;\n      __addr = (sockaddr_union *)paVar3->ai_addr;\n      __len = paVar3->ai_addrlen;\n      (__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;\n      goto LAB_00066b3d;\n    }" { (labeled_statement "LAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" statement_identifier : (if_statement "if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" if (parenthesized_expression "((local_2d4 != 2) && (local_2d4 != 10))" ( (binary_expression "(local_2d4 != 2) && (local_2d4 != 10)" (parenthesized_expression "(local_2d4 != 2)" ( (binary_expression "local_2d4 != 2" identifier != number_literal) )) && (parenthesized_expression "(local_2d4 != 10)" ( (binary_expression "local_2d4 != 10" identifier != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" { comment (expression_statement "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");" (call_expression "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" identifier (argument_list "("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" ( (string_literal ""0 && \"unknown address family\""" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) }))) (expression_statement "paVar3 = (sock->step).ai;" (assignment_expression "paVar3 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "uVar13 = (ushort)sock->port;" (assignment_expression "uVar13 = (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 *)paVar3->ai_addr;" (assignment_expression "__addr = (sockaddr_union *)paVar3->ai_addr" identifier = (cast_expression "(sockaddr_union *)paVar3->ai_addr" ( (type_descriptor "sockaddr_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "paVar3->ai_addr" identifier -> field_identifier))) ;) (expression_statement "__len = paVar3->ai_addrlen;" (assignment_expression "__len = paVar3->ai_addrlen" identifier = (field_expression "paVar3->ai_addrlen" identifier -> field_identifier)) ;) (expression_statement "(__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8;" (assignment_expression "(__addr->sin).sin_port = uVar13 << 8 | uVar13 >> 8" (field_expression "(__addr->sin).sin_port" (parenthesized_expression "(__addr->sin)" ( (field_expression "__addr->sin" identifier -> field_identifier) )) . field_identifier) = (binary_expression "uVar13 << 8 | uVar13 >> 8" (binary_expression "uVar13 << 8" identifier << number_literal) | (binary_expression "uVar13 >> 8" identifier >> number_literal))) ;) (goto_statement "goto LAB_00066b3d;" goto statement_identifier ;) })) (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar9 = *piVar8;" (assignment_expression "iVar9 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (if_statement "if (iVar9 == 0x62) {\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" if (parenthesized_expression "(iVar9 == 0x62)" ( (binary_expression "iVar9 == 0x62" identifier == number_literal) )) (compound_statement "{\n      if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" { (if_statement "if ((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))\n      goto LAB_000669f6;" if (parenthesized_expression "((iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)))" ( (binary_expression "(iVar14 == 0) || (iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff))" (parenthesized_expression "(iVar14 == 0)" ( (binary_expression "iVar14 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff))" ( (comma_expression "iVar14 = iVar14 + -1, iVar14 == iVar12 - (uVar13 - 1 & 0xffff)" (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) , (binary_expression "iVar14 == iVar12 - (uVar13 - 1 & 0xffff)" identifier == (binary_expression "iVar12 - (uVar13 - 1 & 0xffff)" identifier - (parenthesized_expression "(uVar13 - 1 & 0xffff)" ( (binary_expression "uVar13 - 1 & 0xffff" (binary_expression "uVar13 - 1" identifier - number_literal) & number_literal) ))))) ))) )) (goto_statement "goto LAB_000669f6;" goto statement_identifier ;)) (goto_statement "goto LAB_0006695d;" goto statement_identifier ;) })) (if_statement "if (iVar9 == 0) goto LAB_00066b16;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066b16;" goto statement_identifier ;)) (labeled_statement "LAB_000669f6:\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 "sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);" (call_expression "sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step)" identifier (argument_list "(&thisaddr,sock->addr,&sock->step)" ( (pointer_expression "&thisaddr" & identifier) , (field_expression "sock->addr" identifier -> field_identifier) , (pointer_expression "&sock->step" & (field_expression "sock->step" identifier -> field_identifier)) ))) ;) (expression_statement "p_Var4 = (*sock->plug)->log;" (assignment_expression "p_Var4 = (*sock->plug)->log" identifier = (field_expression "(*sock->plug)->log" (parenthesized_expression "(*sock->plug)" ( (pointer_expression "*sock->plug" * (field_expression "sock->plug" identifier -> field_identifier)) )) -> field_identifier)) ;) (expression_statement "pcVar10 = strerror(iVar9);" (assignment_expression "pcVar10 = strerror(iVar9)" identifier = (call_expression "strerror(iVar9)" identifier (argument_list "(iVar9)" ( identifier )))) ;) (expression_statement "(*p_Var4)(sock->plug,1,&thisaddr,sock->port,pcVar10,iVar9);" (call_expression "(*p_Var4)(sock->plug,1,&thisaddr,sock->port,pcVar10,iVar9)" (parenthesized_expression "(*p_Var4)" ( (pointer_expression "*p_Var4" * identifier) )) (argument_list "(sock->plug,1,&thisaddr,sock->port,pcVar10,iVar9)" ( (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_000669cd:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar9;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar9;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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 iVar9;\n  }" { (return_statement "return iVar9;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_000667a0(int param_1)\n\n{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "int __regparm3 FUN_000667a0(int param_1)\n\n{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    \n  FUN_0006f430();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000667a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "ushort uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "sockaddr *psVar12;" type_identifier (pointer_declarator "*psVar12" * identifier) ;) (declaration "sockaddr *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar13;" type_identifier identifier ;) (declaration "int local_2d4;" primitive_type identifier ;) (declaration "undefined4 local_2b4;" type_identifier identifier ;) (declaration "sockaddr local_2b0;" type_identifier identifier ;) (declaration "undefined4 local_2a0;" type_identifier identifier ;) (declaration "undefined4 local_29c;" type_identifier identifier ;) (declaration "undefined1 local_230 [528];" type_identifier (array_declarator "local_230 [528]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x667ab;" (assignment_expression "uStack_14 = 0x667ab" 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_00064020(DAT_000aab00,param_1);" (call_expression "FUN_00064020(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,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 "FUN_00066710();" (call_expression "FUN_00066710()" identifier (argument_list "()" ( ))) ;) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" ( (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (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) )))))))) )) (argument_list "(*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0)" ( (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) )))) , 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 "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar4 = *(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 (iVar4 == 0) {\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" { (labeled_statement "LAB_00066c28:\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 (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n    local_2d4 = 1;\n  }" { (expression_statement "local_2d4 = 1;" (assignment_expression "local_2d4 = 1" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" else (if_statement "if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\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    local_2d4 = 2;\n  }" { (expression_statement "local_2d4 = 2;" (assignment_expression "local_2d4 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" else (compound_statement "{\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" { (expression_statement "local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);" (assignment_expression "local_2d4 = *(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 (local_2d4 == 0) goto LAB_00066c28;" if (parenthesized_expression "(local_2d4 == 0)" ( (binary_expression "local_2d4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066c28;" goto statement_identifier ;)) }))))) (expression_statement "iVar4 = socket(local_2d4,1,0);" (assignment_expression "iVar4 = socket(local_2d4,1,0)" identifier = (call_expression "socket(local_2d4,1,0)" identifier (argument_list "(local_2d4,1,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar4;" (assignment_expression "*(int *)(param_1 + 8) = iVar4" (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 (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (labeled_statement "LAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);" statement_identifier : (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,param_1)" ( identifier , identifier ))) ;)) (if_statement "if (iVar6 == 0) goto LAB_000669cd;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000669cd;" goto statement_identifier ;)) }) (else_clause "else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" else (compound_statement "{\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" { (expression_statement "FUN_00065c90(iVar4);" (call_expression "FUN_00065c90(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\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_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }" { (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,1,10,&local_2b4,4)" identifier = (call_expression "setsockopt(iVar4,1,10,&local_2b4,4)" identifier (argument_list "(iVar4,1,10,&local_2b4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2b4" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar6) goto LAB_00066889;" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (goto_statement "goto LAB_00066889;" goto statement_identifier ;)) (labeled_statement "LAB_00066a8a:\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 "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_000669b7;" goto statement_identifier ;) })) (labeled_statement "LAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(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      iVar6 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "iVar6 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar6 = *(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_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" else (compound_statement "{\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,6,1,&local_2b4,4)" identifier = (call_expression "setsockopt(iVar4,6,1,&local_2b4,4)" identifier (argument_list "(iVar4,6,1,&local_2b4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2b4" & identifier) , number_literal )))) ;) (if_statement "if (iVar6 < 0) goto LAB_00066a8a;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00066a8a;" goto statement_identifier ;)) (expression_statement "iVar6 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar6 = *(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 (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }" { (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,1,9,&local_2b4,4)" identifier = (call_expression "setsockopt(iVar4,1,9,&local_2b4,4)" identifier (argument_list "(iVar4,1,9,&local_2b4,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2b4" & identifier) , number_literal )))) ;) (if_statement "if (iVar6 < 0) goto LAB_00066a8a;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00066a8a;" goto statement_identifier ;)) })) (expression_statement "puVar2 = PTR_in6addr_any_000a9fc8;" (assignment_expression "puVar2 = PTR_in6addr_any_000a9fc8" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x54);" (assignment_expression "iVar6 = *(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_2b0;" (assignment_expression "__addr = &local_2b0" identifier = (pointer_expression "&local_2b0" & identifier)) ;) (expression_statement "psVar12 = __addr;" (assignment_expression "psVar12 = __addr" identifier = identifier) ;) (for_statement "for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -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      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }" { (expression_statement "psVar12->sa_family = 0;" (assignment_expression "psVar12->sa_family = 0" (field_expression "psVar12->sa_family" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar12->sa_data[0] = '\0';" (assignment_expression "psVar12->sa_data[0] = '\0'" (subscript_expression "psVar12->sa_data[0]" (field_expression "psVar12->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar12->sa_data[1] = '\0';" (assignment_expression "psVar12->sa_data[1] = '\0'" (subscript_expression "psVar12->sa_data[1]" (field_expression "psVar12->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);" (assignment_expression "psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4)" identifier = (cast_expression "(sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar12 + (uint)bVar13 * -8 + 4)" ( (binary_expression "(int)psVar12 + (uint)bVar13 * -8 + 4" (binary_expression "(int)psVar12 + (uint)bVar13 * -8" (cast_expression "(int)psVar12" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar13 * -8" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;" (assignment_expression "uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff" identifier = (binary_expression "~-(ushort)(iVar6 == 0) & 0x3ff" (unary_expression "~-(ushort)(iVar6 == 0)" ~ (unary_expression "-(ushort)(iVar6 == 0)" - (call_expression "(ushort)(iVar6 == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) ))))) & number_literal)) ;) (if_statement "if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }" if (parenthesized_expression "(local_2d4 == 1)" ( (binary_expression "local_2d4 == 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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\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 "pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);" (assignment_expression "pcVar7 = (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 "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (if_statement "if (0x6b < sVar8) {\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 < sVar8)" ( (binary_expression "0x6b < sVar8" 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_2b0.sa_family = 1;" (assignment_expression "local_2b0.sa_family = 1" (field_expression "local_2b0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "__len = 0x6e;" (assignment_expression "__len = 0x6e" identifier = number_literal) ;) (expression_statement "__memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);" (call_expression "__memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c)" identifier (argument_list "(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c)" ( (field_expression "local_2b0.sa_data" identifier . field_identifier) , identifier , (binary_expression "sVar8 + 1" identifier + number_literal) , number_literal ))) ;) (labeled_statement "LAB_00066b3d:\n      FUN_00065db0(iVar4);" statement_identifier : (expression_statement "FUN_00065db0(iVar4);" (call_expression "FUN_00065db0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = connect(iVar4,__addr,__len);" (assignment_expression "iVar4 = connect(iVar4,__addr,__len)" identifier = (call_expression "connect(iVar4,__addr,__len)" identifier (argument_list "(iVar4,__addr,__len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (iVar6 != 0x73) goto LAB_000669b7;" if (parenthesized_expression "(iVar6 != 0x73)" ( (binary_expression "iVar6 != 0x73" identifier != number_literal) )) (goto_statement "goto LAB_000669b7;" 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 "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "FUN_00066500();" (call_expression "FUN_00066500()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,param_1)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_000669cd;" goto statement_identifier ;) })) (expression_statement "iVar11 = (int)(short)uVar10;" (assignment_expression "iVar11 = (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 "iVar9 = iVar11 + -1;" (assignment_expression "iVar9 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (labeled_statement "LAB_0006695d:\n    uVar3 = (ushort)iVar11;" statement_identifier : (expression_statement "uVar3 = (ushort)iVar11;" (assignment_expression "uVar3 = (ushort)iVar11" identifier = (cast_expression "(ushort)iVar11" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;)) (if_statement "if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" if (parenthesized_expression "(local_2d4 == 10)" ( (binary_expression "local_2d4 == 10" identifier == number_literal) )) (compound_statement "{\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }" { (expression_statement "local_2b0.sa_family = 10;" (assignment_expression "local_2b0.sa_family = 10" (field_expression "local_2b0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;" (assignment_expression "local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2" (field_expression "local_2b0.sa_data._6_4_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);" (assignment_expression "local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4)" (field_expression "local_2b0.sa_data._10_4_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)(puVar2 + 4)" * (cast_expression "(undefined4 *)(puVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_2a0 = *(undefined4 *)(puVar2 + 8);" (assignment_expression "local_2a0 = *(undefined4 *)(puVar2 + 8)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 8)" * (cast_expression "(undefined4 *)(puVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_29c = *(undefined4 *)(puVar2 + 0xc);" (assignment_expression "local_29c = *(undefined4 *)(puVar2 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;" (assignment_expression "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8" (field_expression "local_2b0.sa_data._0_2_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" identifier << number_literal) | (binary_expression "uVar3 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar6 = bind(iVar4,__addr,0x1c);" (assignment_expression "iVar6 = bind(iVar4,__addr,0x1c)" identifier = (call_expression "bind(iVar4,__addr,0x1c)" identifier (argument_list "(iVar4,__addr,0x1c)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" else (compound_statement "{\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" { (if_statement "if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" if (parenthesized_expression "(local_2d4 != 2)" ( (binary_expression "local_2d4 != 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 ") ))) ;) })) (expression_statement "local_2b0.sa_data[2] = '\0';" (assignment_expression "local_2b0.sa_data[2] = '\0'" (subscript_expression "local_2b0.sa_data[2]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_data[3] = '\0';" (assignment_expression "local_2b0.sa_data[3] = '\0'" (subscript_expression "local_2b0.sa_data[3]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_data[4] = '\0';" (assignment_expression "local_2b0.sa_data[4] = '\0'" (subscript_expression "local_2b0.sa_data[4]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_data[5] = '\0';" (assignment_expression "local_2b0.sa_data[5] = '\0'" (subscript_expression "local_2b0.sa_data[5]" (field_expression "local_2b0.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2b0.sa_family = 2;" (assignment_expression "local_2b0.sa_family = 2" (field_expression "local_2b0.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;" (assignment_expression "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8" (field_expression "local_2b0.sa_data._0_2_" (field_expression "local_2b0.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" identifier << number_literal) | (binary_expression "uVar3 >> 8" identifier >> number_literal))) ;) (expression_statement "iVar6 = bind(iVar4,__addr,0x10);" (assignment_expression "iVar6 = bind(iVar4,__addr,0x10)" identifier = (call_expression "bind(iVar4,__addr,0x10)" identifier (argument_list "(iVar4,__addr,0x10)" ( identifier , identifier , number_literal )))) ;) }))) (if_statement "if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }" { (labeled_statement "LAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" statement_identifier : (if_statement "if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" if (parenthesized_expression "((local_2d4 != 2) && (local_2d4 != 10))" ( (binary_expression "(local_2d4 != 2) && (local_2d4 != 10)" (parenthesized_expression "(local_2d4 != 2)" ( (binary_expression "local_2d4 != 2" identifier != number_literal) )) && (parenthesized_expression "(local_2d4 != 10)" ( (binary_expression "local_2d4 != 10" identifier != number_literal) ))) )) (compound_statement "{\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" { (expression_statement "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");" (call_expression "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" identifier (argument_list "("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" ( (string_literal ""0 && \"unknown address family\""" " string_content escape_sequence string_content escape_sequence ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""try_connect"" " string_content ") ))) ;) }))) (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_00066b3d;" goto statement_identifier ;) })) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" if (parenthesized_expression "(iVar6 == 0x62)" ( (binary_expression "iVar6 == 0x62" identifier == number_literal) )) (compound_statement "{\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" { (if_statement "if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;" if (parenthesized_expression "((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))" ( (binary_expression "(iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff))" (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff))" ( (comma_expression "iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) , (binary_expression "iVar11 == iVar9 - (uVar10 - 1 & 0xffff)" identifier == (binary_expression "iVar9 - (uVar10 - 1 & 0xffff)" identifier - (parenthesized_expression "(uVar10 - 1 & 0xffff)" ( (binary_expression "uVar10 - 1 & 0xffff" (binary_expression "uVar10 - 1" identifier - number_literal) & number_literal) ))))) ))) )) (goto_statement "goto LAB_000669f6;" goto statement_identifier ;)) (goto_statement "goto LAB_0006695d;" goto statement_identifier ;) })) (if_statement "if (iVar6 == 0) goto LAB_00066b16;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066b16;" goto statement_identifier ;)) (labeled_statement "LAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);" statement_identifier : (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" identifier (argument_list "(DAT_000aab00,param_1)" ( identifier , identifier ))) ;)) }))) (expression_statement "FUN_00066710();" (call_expression "FUN_00066710()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);" (assignment_expression "pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (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 "pcVar7 = strerror(iVar6);" (assignment_expression "pcVar7 = strerror(iVar6)" identifier = (call_expression "strerror(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;" (call_expression "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)" ( (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_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\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 iVar6;\n  }" { (return_statement "return iVar6;" return identifier ;) }))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) )))) , 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 = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (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)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 (field_expression (field_expression IDENT . field_identifier) . field_identifier) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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 IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (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 ") ))) ;) })) (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) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) }))) (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 = (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 (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT == (binary_expression IDENT - (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))))) ))) )) (goto_statement goto statement_identifier ;)) (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 (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 = (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_000667a0(int param_1)\n\n{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    \n  FUN_0006f430();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000667a0(int param_1)" (identifier "FUN_000667a0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined *puVar2;\n  ushort uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  ushort uVar10;\n  int iVar11;\n  socklen_t __len;\n  sockaddr *psVar12;\n  sockaddr *__addr;\n  int in_GS_OFFSET;\n  byte bVar13;\n  int local_2d4;\n  undefined4 local_2b4;\n  sockaddr local_2b0;\n  undefined4 local_2a0;\n  undefined4 local_29c;\n  undefined1 local_230 [528];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar13 = 0;\n  uStack_14 = 0x667ab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00064020(DAT_000aab00,param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    close(*(int *)(param_1 + 8));\n  }\n  FUN_00066710();\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }\n  if (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }\n  iVar4 = socket(local_2d4,1,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }\n  FUN_00066710();\n  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);\n  pcVar7 = strerror(iVar6);\n  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;\nLAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "ushort uVar3;" (type_identifier "ushort") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "size_t sVar8;" (primitive_type "size_t") (identifier "sVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "ushort uVar10;" (type_identifier "ushort") (identifier "uVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "socklen_t __len;" (type_identifier "socklen_t") (identifier "__len") (; ";")) (declaration "sockaddr *psVar12;" (type_identifier "sockaddr") (pointer_declarator "*psVar12" (* "*") (identifier "psVar12")) (; ";")) (declaration "sockaddr *__addr;" (type_identifier "sockaddr") (pointer_declarator "*__addr" (* "*") (identifier "__addr")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar13;" (type_identifier "byte") (identifier "bVar13") (; ";")) (declaration "int local_2d4;" (primitive_type "int") (identifier "local_2d4") (; ";")) (declaration "undefined4 local_2b4;" (type_identifier "undefined4") (identifier "local_2b4") (; ";")) (declaration "sockaddr local_2b0;" (type_identifier "sockaddr") (identifier "local_2b0") (; ";")) (declaration "undefined4 local_2a0;" (type_identifier "undefined4") (identifier "local_2a0") (; ";")) (declaration "undefined4 local_29c;" (type_identifier "undefined4") (identifier "local_29c") (; ";")) (declaration "undefined1 local_230 [528];" (type_identifier "undefined1") (array_declarator "local_230 [528]" (identifier "local_230") ([ "[") (number_literal "528") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" (identifier "bVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x667ab;" (assignment_expression "uStack_14 = 0x667ab" (identifier "uStack_14") (= "=") (number_literal "0x667ab")) (; ";")) (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_00064020(DAT_000aab00,param_1);" (call_expression "FUN_00064020(DAT_000aab00,param_1)" (identifier "FUN_00064020") (argument_list "(DAT_000aab00,param_1)" (( "(") (identifier "DAT_000aab00") (, ",") (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 "FUN_00066710();" (call_expression "FUN_00066710()" (identifier "FUN_00066710") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" (( "(") (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" (* "*") (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (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")) () ")")))))))) () ")")) (argument_list "(*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0)" (( "(") (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")) () ")")))) (, ",") (number_literal "0") (, ",") (identifier "local_230") (, ",") (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 "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8)" (identifier "iVar4") (= "=") (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 (iVar4 == 0) {\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");\n  }" ({ "{") (labeled_statement "LAB_00066c28:\n                    \n    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");" (statement_identifier "LAB_00066c28") (: ":") (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 (iVar4 == 1) {\n    local_2d4 = 1;\n  }\n  else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    local_2d4 = 1;\n  }" ({ "{") (expression_statement "local_2d4 = 1;" (assignment_expression "local_2d4 = 1" (identifier "local_2d4") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 0x60) == 0) {\n    local_2d4 = 2;\n  }\n  else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\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    local_2d4 = 2;\n  }" ({ "{") (expression_statement "local_2d4 = 2;" (assignment_expression "local_2d4 = 2" (identifier "local_2d4") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" (else "else") (compound_statement "{\n    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);\n    if (local_2d4 == 0) goto LAB_00066c28;\n  }" ({ "{") (expression_statement "local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);" (assignment_expression "local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4)" (identifier "local_2d4") (= "=") (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 (local_2d4 == 0) goto LAB_00066c28;" (if "if") (parenthesized_expression "(local_2d4 == 0)" (( "(") (binary_expression "local_2d4 == 0" (identifier "local_2d4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066c28;" (goto "goto") (statement_identifier "LAB_00066c28") (; ";"))) (} "}")))))) (expression_statement "iVar4 = socket(local_2d4,1,0);" (assignment_expression "iVar4 = socket(local_2d4,1,0)" (identifier "iVar4") (= "=") (call_expression "socket(local_2d4,1,0)" (identifier "socket") (argument_list "(local_2d4,1,0)" (( "(") (identifier "local_2d4") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar4;" (assignment_expression "*(int *)(param_1 + 8) = iVar4" (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 "iVar4")) (; ";")) (if_statement "if (iVar4 < 0) {\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }\n  else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\nLAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);\n    if (iVar6 == 0) goto LAB_000669cd;\n  }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" (identifier "iVar6") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (labeled_statement "LAB_000669b7:\n    FUN_00063d00(DAT_000aab00,param_1);" (statement_identifier "LAB_000669b7") (: ":") (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" (identifier "FUN_00063d00") (argument_list "(DAT_000aab00,param_1)" (( "(") (identifier "DAT_000aab00") (, ",") (identifier "param_1") () ")"))) (; ";"))) (if_statement "if (iVar6 == 0) goto LAB_000669cd;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000669cd;" (goto "goto") (statement_identifier "LAB_000669cd") (; ";"))) (} "}")) (else_clause "else {\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" (else "else") (compound_statement "{\n    FUN_00065c90(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }\nLAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }\n    puVar2 = PTR_in6addr_any_000a9fc8;\n    iVar6 = *(int *)(param_1 + 0x54);\n    __addr = &local_2b0;\n    psVar12 = __addr;\n    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }\n    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;\n    if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }\n    iVar11 = (int)(short)uVar10;\n    iVar9 = iVar11 + -1;\nLAB_0006695d:\n    uVar3 = (ushort)iVar11;\n    if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }\n    if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }\n    piVar5 = __errno_location();\n    iVar6 = *piVar5;\n    if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }\n    if (iVar6 == 0) goto LAB_00066b16;\nLAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);\n  }" ({ "{") (expression_statement "FUN_00065c90(iVar4);" (call_expression "FUN_00065c90(iVar4)" (identifier "FUN_00065c90") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\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_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);\n      if (-1 < iVar6) goto LAB_00066889;\nLAB_00066a8a:\n      piVar5 = __errno_location();\n      iVar6 = *piVar5;\n      close(iVar4);\n      goto LAB_000669b7;\n    }" ({ "{") (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" (identifier "local_2b4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,1,10,&local_2b4,4)" (identifier "iVar6") (= "=") (call_expression "setsockopt(iVar4,1,10,&local_2b4,4)" (identifier "setsockopt") (argument_list "(iVar4,1,10,&local_2b4,4)" (( "(") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "10") (, ",") (pointer_expression "&local_2b4" (& "&") (identifier "local_2b4")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (-1 < iVar6) goto LAB_00066889;" (if "if") (parenthesized_expression "(-1 < iVar6)" (( "(") (binary_expression "-1 < iVar6" (number_literal "-1") (< "<") (identifier "iVar6")) () ")")) (goto_statement "goto LAB_00066889;" (goto "goto") (statement_identifier "LAB_00066889") (; ";"))) (labeled_statement "LAB_00066a8a:\n      piVar5 = __errno_location();" (statement_identifier "LAB_00066a8a") (: ":") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" (identifier "iVar6") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" (identifier "close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (goto_statement "goto LAB_000669b7;" (goto "goto") (statement_identifier "LAB_000669b7") (; ";")) (} "}"))) (labeled_statement "LAB_00066889:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" (statement_identifier "LAB_00066889") (: ":") (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar6 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(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      iVar6 = *(int *)(param_1 + 0x50);\n    }" ({ "{") (expression_statement "iVar6 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x50)" (identifier "iVar6") (= "=") (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_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" (else "else") (compound_statement "{\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n      iVar6 = *(int *)(param_1 + 0x50);\n    }" ({ "{") (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" (identifier "local_2b4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,6,1,&local_2b4,4)" (identifier "iVar6") (= "=") (call_expression "setsockopt(iVar4,6,1,&local_2b4,4)" (identifier "setsockopt") (argument_list "(iVar4,6,1,&local_2b4,4)" (( "(") (identifier "iVar4") (, ",") (number_literal "6") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_2b4" (& "&") (identifier "local_2b4")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar6 < 0) goto LAB_00066a8a;" (if "if") (parenthesized_expression "(iVar6 < 0)" (( "(") (binary_expression "iVar6 < 0" (identifier "iVar6") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066a8a;" (goto "goto") (statement_identifier "LAB_00066a8a") (; ";"))) (expression_statement "iVar6 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x50)" (identifier "iVar6") (= "=") (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 (iVar6 != 0) {\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_2b4 = 1;\n      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);\n      if (iVar6 < 0) goto LAB_00066a8a;\n    }" ({ "{") (expression_statement "local_2b4 = 1;" (assignment_expression "local_2b4 = 1" (identifier "local_2b4") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);" (assignment_expression "iVar6 = setsockopt(iVar4,1,9,&local_2b4,4)" (identifier "iVar6") (= "=") (call_expression "setsockopt(iVar4,1,9,&local_2b4,4)" (identifier "setsockopt") (argument_list "(iVar4,1,9,&local_2b4,4)" (( "(") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "9") (, ",") (pointer_expression "&local_2b4" (& "&") (identifier "local_2b4")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar6 < 0) goto LAB_00066a8a;" (if "if") (parenthesized_expression "(iVar6 < 0)" (( "(") (binary_expression "iVar6 < 0" (identifier "iVar6") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066a8a;" (goto "goto") (statement_identifier "LAB_00066a8a") (; ";"))) (} "}"))) (expression_statement "puVar2 = PTR_in6addr_any_000a9fc8;" (assignment_expression "puVar2 = PTR_in6addr_any_000a9fc8" (identifier "puVar2") (= "=") (identifier "PTR_in6addr_any_000a9fc8")) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x54);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x54)" (identifier "iVar6") (= "=") (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_2b0;" (assignment_expression "__addr = &local_2b0" (identifier "__addr") (= "=") (pointer_expression "&local_2b0" (& "&") (identifier "local_2b0"))) (; ";")) (expression_statement "psVar12 = __addr;" (assignment_expression "psVar12 = __addr" (identifier "psVar12") (= "=") (identifier "__addr")) (; ";")) (for_statement "for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {\n      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -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      psVar12->sa_family = 0;\n      psVar12->sa_data[0] = '\0';\n      psVar12->sa_data[1] = '\0';\n      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);\n    }" ({ "{") (expression_statement "psVar12->sa_family = 0;" (assignment_expression "psVar12->sa_family = 0" (field_expression "psVar12->sa_family" (identifier "psVar12") (-> "->") (field_identifier "sa_family")) (= "=") (number_literal "0")) (; ";")) (expression_statement "psVar12->sa_data[0] = '\0';" (assignment_expression "psVar12->sa_data[0] = '\0'" (subscript_expression "psVar12->sa_data[0]" (field_expression "psVar12->sa_data" (identifier "psVar12") (-> "->") (field_identifier "sa_data")) ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "psVar12->sa_data[1] = '\0';" (assignment_expression "psVar12->sa_data[1] = '\0'" (subscript_expression "psVar12->sa_data[1]" (field_expression "psVar12->sa_data" (identifier "psVar12") (-> "->") (field_identifier "sa_data")) ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);" (assignment_expression "psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4)" (identifier "psVar12") (= "=") (cast_expression "(sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4)" (( "(") (type_descriptor "sockaddr *" (type_identifier "sockaddr") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar12 + (uint)bVar13 * -8 + 4)" (( "(") (binary_expression "(int)psVar12 + (uint)bVar13 * -8 + 4" (binary_expression "(int)psVar12 + (uint)bVar13 * -8" (cast_expression "(int)psVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar12")) (+ "+") (binary_expression "(uint)bVar13 * -8" (cast_expression "(uint)bVar13" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar13")) (* "*") (number_literal "-8"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}"))) (expression_statement "uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;" (assignment_expression "uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff" (identifier "uVar10") (= "=") (binary_expression "~-(ushort)(iVar6 == 0) & 0x3ff" (unary_expression "~-(ushort)(iVar6 == 0)" (~ "~") (unary_expression "-(ushort)(iVar6 == 0)" (- "-") (call_expression "(ushort)(iVar6 == 0)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")"))))) (& "&") (number_literal "0x3ff"))) (; ";")) (if_statement "if (local_2d4 == 1) {\n      if (*(int *)(param_1 + 0x58) != 0) {\n                    \n        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");\n      }\n      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\n    }" (if "if") (parenthesized_expression "(local_2d4 == 1)" (( "(") (binary_expression "local_2d4 == 1" (identifier "local_2d4") (== "==") (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      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);\n      sVar8 = strlen(pcVar7);\n      if (0x6b < sVar8) {\n                    \n        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,\n                      "try_connect");\n      }\n      local_2b0.sa_family = 1;\n      __len = 0x6e;\n      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);\nLAB_00066b3d:\n      FUN_00065db0(iVar4);\n      iVar4 = connect(iVar4,__addr,__len);\n      if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }\n      iVar6 = 0;\n      FUN_00066500();\n      FUN_00063d00(DAT_000aab00,param_1);\n      goto LAB_000669cd;\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 "pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);" (assignment_expression "pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10)" (identifier "pcVar7") (= "=") (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 "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" (identifier "sVar8") (= "=") (call_expression "strlen(pcVar7)" (identifier "strlen") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";")) (if_statement "if (0x6b < sVar8) {\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 < sVar8)" (( "(") (binary_expression "0x6b < sVar8" (number_literal "0x6b") (< "<") (identifier "sVar8")) () ")")) (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_2b0.sa_family = 1;" (assignment_expression "local_2b0.sa_family = 1" (field_expression "local_2b0.sa_family" (identifier "local_2b0") (. ".") (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_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);" (call_expression "__memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c)" (identifier "__memcpy_chk") (argument_list "(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c)" (( "(") (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) (, ",") (identifier "pcVar7") (, ",") (binary_expression "sVar8 + 1" (identifier "sVar8") (+ "+") (number_literal "1")) (, ",") (number_literal "0x6c") () ")"))) (; ";")) (labeled_statement "LAB_00066b3d:\n      FUN_00065db0(iVar4);" (statement_identifier "LAB_00066b3d") (: ":") (expression_statement "FUN_00065db0(iVar4);" (call_expression "FUN_00065db0(iVar4)" (identifier "FUN_00065db0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";"))) (expression_statement "iVar4 = connect(iVar4,__addr,__len);" (assignment_expression "iVar4 = connect(iVar4,__addr,__len)" (identifier "iVar4") (= "=") (call_expression "connect(iVar4,__addr,__len)" (identifier "connect") (argument_list "(iVar4,__addr,__len)" (( "(") (identifier "iVar4") (, ",") (identifier "__addr") (, ",") (identifier "__len") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x1c) = 1;\n        *(undefined4 *)(param_1 + 0x20) = 1;\n      }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        piVar5 = __errno_location();\n        iVar6 = *piVar5;\n        if (iVar6 != 0x73) goto LAB_000669b7;\n      }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" (identifier "iVar6") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (if_statement "if (iVar6 != 0x73) goto LAB_000669b7;" (if "if") (parenthesized_expression "(iVar6 != 0x73)" (( "(") (binary_expression "iVar6 != 0x73" (identifier "iVar6") (!= "!=") (number_literal "0x73")) () ")")) (goto_statement "goto LAB_000669b7;" (goto "goto") (statement_identifier "LAB_000669b7") (; ";"))) (} "}")) (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 "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00066500();" (call_expression "FUN_00066500()" (identifier "FUN_00066500") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" (identifier "FUN_00063d00") (argument_list "(DAT_000aab00,param_1)" (( "(") (identifier "DAT_000aab00") (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000669cd;" (goto "goto") (statement_identifier "LAB_000669cd") (; ";")) (} "}"))) (expression_statement "iVar11 = (int)(short)uVar10;" (assignment_expression "iVar11 = (int)(short)uVar10" (identifier "iVar11") (= "=") (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 "iVar9 = iVar11 + -1;" (assignment_expression "iVar9 = iVar11 + -1" (identifier "iVar9") (= "=") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1"))) (; ";")) (labeled_statement "LAB_0006695d:\n    uVar3 = (ushort)iVar11;" (statement_identifier "LAB_0006695d") (: ":") (expression_statement "uVar3 = (ushort)iVar11;" (assignment_expression "uVar3 = (ushort)iVar11" (identifier "uVar3") (= "=") (cast_expression "(ushort)iVar11" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "iVar11"))) (; ";"))) (if_statement "if (local_2d4 == 10) {\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }\n    else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" (if "if") (parenthesized_expression "(local_2d4 == 10)" (( "(") (binary_expression "local_2d4 == 10" (identifier "local_2d4") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n      local_2b0.sa_family = 10;\n      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;\n      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);\n      local_2a0 = *(undefined4 *)(puVar2 + 8);\n      local_29c = *(undefined4 *)(puVar2 + 0xc);\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x1c);\n    }" ({ "{") (expression_statement "local_2b0.sa_family = 10;" (assignment_expression "local_2b0.sa_family = 10" (field_expression "local_2b0.sa_family" (identifier "local_2b0") (. ".") (field_identifier "sa_family")) (= "=") (number_literal "10")) (; ";")) (expression_statement "local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;" (assignment_expression "local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2" (field_expression "local_2b0.sa_data._6_4_" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_6_4_")) (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);" (assignment_expression "local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4)" (field_expression "local_2b0.sa_data._10_4_" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_10_4_")) (= "=") (pointer_expression "*(undefined4 *)(puVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_2a0 = *(undefined4 *)(puVar2 + 8);" (assignment_expression "local_2a0 = *(undefined4 *)(puVar2 + 8)" (identifier "local_2a0") (= "=") (pointer_expression "*(undefined4 *)(puVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 8)" (( "(") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_29c = *(undefined4 *)(puVar2 + 0xc);" (assignment_expression "local_29c = *(undefined4 *)(puVar2 + 0xc)" (identifier "local_29c") (= "=") (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xc)" (( "(") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;" (assignment_expression "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8" (field_expression "local_2b0.sa_data._0_2_" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_0_2_")) (= "=") (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" (identifier "uVar3") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar3 >> 8" (identifier "uVar3") (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "iVar6 = bind(iVar4,__addr,0x1c);" (assignment_expression "iVar6 = bind(iVar4,__addr,0x1c)" (identifier "iVar6") (= "=") (call_expression "bind(iVar4,__addr,0x1c)" (identifier "bind") (argument_list "(iVar4,__addr,0x1c)" (( "(") (identifier "iVar4") (, ",") (identifier "__addr") (, ",") (number_literal "0x1c") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" (else "else") (compound_statement "{\n      if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }\n      local_2b0.sa_data[2] = '\0';\n      local_2b0.sa_data[3] = '\0';\n      local_2b0.sa_data[4] = '\0';\n      local_2b0.sa_data[5] = '\0';\n      local_2b0.sa_family = 2;\n      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;\n      iVar6 = bind(iVar4,__addr,0x10);\n    }" ({ "{") (if_statement "if (local_2d4 != 2) {\n                    \n        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");\n      }" (if "if") (parenthesized_expression "(local_2d4 != 2)" (( "(") (binary_expression "local_2d4 != 2" (identifier "local_2d4") (!= "!=") (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") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "local_2b0.sa_data[2] = '\0';" (assignment_expression "local_2b0.sa_data[2] = '\0'" (subscript_expression "local_2b0.sa_data[2]" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_2b0.sa_data[3] = '\0';" (assignment_expression "local_2b0.sa_data[3] = '\0'" (subscript_expression "local_2b0.sa_data[3]" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_2b0.sa_data[4] = '\0';" (assignment_expression "local_2b0.sa_data[4] = '\0'" (subscript_expression "local_2b0.sa_data[4]" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_2b0.sa_data[5] = '\0';" (assignment_expression "local_2b0.sa_data[5] = '\0'" (subscript_expression "local_2b0.sa_data[5]" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "5") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_2b0.sa_family = 2;" (assignment_expression "local_2b0.sa_family = 2" (field_expression "local_2b0.sa_family" (identifier "local_2b0") (. ".") (field_identifier "sa_family")) (= "=") (number_literal "2")) (; ";")) (expression_statement "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;" (assignment_expression "local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8" (field_expression "local_2b0.sa_data._0_2_" (field_expression "local_2b0.sa_data" (identifier "local_2b0") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_0_2_")) (= "=") (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" (identifier "uVar3") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar3 >> 8" (identifier "uVar3") (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "iVar6 = bind(iVar4,__addr,0x10);" (assignment_expression "iVar6 = bind(iVar4,__addr,0x10)" (identifier "iVar6") (= "=") (call_expression "bind(iVar4,__addr,0x10)" (identifier "bind") (argument_list "(iVar4,__addr,0x10)" (( "(") (identifier "iVar4") (, ",") (identifier "__addr") (, ",") (number_literal "0x10") () ")")))) (; ";")) (} "}")))) (if_statement "if (-1 < iVar6) {\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }" (if "if") (parenthesized_expression "(-1 < iVar6)" (( "(") (binary_expression "-1 < iVar6" (number_literal "-1") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\nLAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }\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_00066b3d;\n    }" ({ "{") (labeled_statement "LAB_00066b16:\n      if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" (statement_identifier "LAB_00066b16") (: ":") (if_statement "if ((local_2d4 != 2) && (local_2d4 != 10)) {\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" (if "if") (parenthesized_expression "((local_2d4 != 2) && (local_2d4 != 10))" (( "(") (binary_expression "(local_2d4 != 2) && (local_2d4 != 10)" (parenthesized_expression "(local_2d4 != 2)" (( "(") (binary_expression "local_2d4 != 2" (identifier "local_2d4") (!= "!=") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "(local_2d4 != 10)" (( "(") (binary_expression "local_2d4 != 10" (identifier "local_2d4") (!= "!=") (number_literal "10")) () ")"))) () ")")) (compound_statement "{\n                    \n        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");\n      }" ({ "{") (expression_statement "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");" (call_expression "__assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" (identifier "__assert_fail") (argument_list "("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect")" (( "(") (string_literal ""0 && \"unknown address family\""" (" """) (string_content "0 && ") (escape_sequence "\"") (string_content "unknown address family") (escape_sequence "\"") (" """)) (, ",") (string_literal ""unix/uxnet.c"" (" """) (string_content "unix/uxnet.c") (" """)) (, ",") (number_literal "0x2de") (, ",") (string_literal ""try_connect"" (" """) (string_content "try_connect") (" """)) () ")"))) (; ";")) (} "}")))) (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_00066b3d;" (goto "goto") (statement_identifier "LAB_00066b3d") (; ";")) (} "}"))) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = *piVar5;" (assignment_expression "iVar6 = *piVar5" (identifier "iVar6") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (if_statement "if (iVar6 == 0x62) {\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" (if "if") (parenthesized_expression "(iVar6 == 0x62)" (( "(") (binary_expression "iVar6 == 0x62" (identifier "iVar6") (== "==") (number_literal "0x62")) () ")")) (compound_statement "{\n      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;\n      goto LAB_0006695d;\n    }" ({ "{") (if_statement "if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))\n      goto LAB_000669f6;" (if "if") (parenthesized_expression "((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))" (( "(") (binary_expression "(iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff))" (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff))" (( "(") (comma_expression "iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)" (assignment_expression "iVar11 = iVar11 + -1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1"))) (, ",") (binary_expression "iVar11 == iVar9 - (uVar10 - 1 & 0xffff)" (identifier "iVar11") (== "==") (binary_expression "iVar9 - (uVar10 - 1 & 0xffff)" (identifier "iVar9") (- "-") (parenthesized_expression "(uVar10 - 1 & 0xffff)" (( "(") (binary_expression "uVar10 - 1 & 0xffff" (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1")) (& "&") (number_literal "0xffff")) () ")"))))) () ")"))) () ")")) (goto_statement "goto LAB_000669f6;" (goto "goto") (statement_identifier "LAB_000669f6") (; ";"))) (goto_statement "goto LAB_0006695d;" (goto "goto") (statement_identifier "LAB_0006695d") (; ";")) (} "}"))) (if_statement "if (iVar6 == 0) goto LAB_00066b16;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066b16;" (goto "goto") (statement_identifier "LAB_00066b16") (; ";"))) (labeled_statement "LAB_000669f6:\n    FUN_00063d00(DAT_000aab00,param_1);" (statement_identifier "LAB_000669f6") (: ":") (expression_statement "FUN_00063d00(DAT_000aab00,param_1);" (call_expression "FUN_00063d00(DAT_000aab00,param_1)" (identifier "FUN_00063d00") (argument_list "(DAT_000aab00,param_1)" (( "(") (identifier "DAT_000aab00") (, ",") (identifier "param_1") () ")"))) (; ";"))) (} "}")))) (expression_statement "FUN_00066710();" (call_expression "FUN_00066710()" (identifier "FUN_00066710") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);" (assignment_expression "pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (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 "pcVar7 = strerror(iVar6);" (assignment_expression "pcVar7 = strerror(iVar6)" (identifier "pcVar7") (= "=") (call_expression "strerror(iVar6)" (identifier "strerror") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)\n  ;" (call_expression "(*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)" (( "(") (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_230") (, ",") (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 "pcVar7") (, ",") (identifier "iVar6") () ")"))) (; ";")) (labeled_statement "LAB_000669cd:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\n  }" (statement_identifier "LAB_000669cd") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar6;\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 iVar6;\n  }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (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)

{
  int var_31;
  type_2 var_5;
  type_3 *var_9;
  type_4 *p_Var4;
  type_5 *var_26;
  type_6 var_27;
  int var_12;
  int *piVar8;
  int var_15;
  char *pcVar10;
  size_t var_20;
  int var_18;
  type_6 var_29;
  int var_25;
  type_7 __len;
  type_8 *psVar15;
  type_8 *__addr;
  int var_1;
  type_9 bVar16;
  int var_10;
  int b;
  type_8 u;
  type_10 thisaddr;
  
  bVar16 = 0;
  var_31 = *(int *)(var_1 + 0x14);
  var_2(sktree,sock);
  if (-1 < sock->s) {
    var_3(sock->s);
  }
  var_4(&thisaddr,sock->addr,&sock->step);
  (*(*sock->plug)->log)(sock->plug,0,&thisaddr,sock->port,(char *)0x0,0);
  var_5 = sock->addr->superfamily;
  if (var_5 == var_6) {
LAB_00066c28:
                    /* WARNING: Subroutine does not return */
    var_7("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (var_5 == var_8) {
    var_10 = 1;
  }
  else {
    var_9 = (sock->step).ai;
    if (var_9 == (type_3 *)0x0) {
      var_10 = 2;
    }
    else {
      var_10 = var_9->ai_family;
      if (var_10 == 0) goto LAB_00066c28;
    }
  }
  var_12 = var_11(var_10,1,0);
  sock->s = var_12;
  if (var_12 < 0) {
    piVar8 = var_13();
    var_15 = *piVar8;
LAB_000669b7:
    var_14(sktree,sock);
    if (var_15 == 0) goto LAB_000669cd;
  }
  else {
    var_16(var_12);
    if (sock->oobinline != 0) {
      b = 1;
      var_15 = var_17(var_12,1,10,&b,4);
      if (-1 < var_15) goto LAB_00066889;
LAB_00066a8a:
      piVar8 = var_13();
      var_15 = *piVar8;
      var_3(var_12);
      goto LAB_000669b7;
    }
LAB_00066889:
    if (sock->nodelay == 0) {
      var_15 = sock->keepalive;
    }
    else {
      b = 1;
      var_15 = var_17(var_12,6,1,&b,4);
      if (var_15 < 0) goto LAB_00066a8a;
      var_15 = sock->keepalive;
    }
    if (var_15 != 0) {
      b = 1;
      var_15 = var_17(var_12,1,9,&b,4);
      if (var_15 < 0) goto LAB_00066a8a;
    }
    var_26 = PTR_in6addr_any_000a9fc8;
    var_15 = sock->privport;
    __addr = &u;
    psVar15 = __addr;
    for (var_18 = 0x20; var_18 != 0; var_18 = var_18 + -1) {
      *(type_11 *)psVar15 = 0;
      psVar15 = (type_8 *)((int)psVar15 + (type_12)bVar16 * -8 + 4);
    }
    var_29 = ~-(type_6)(var_15 == 0) & 0x3ff;
    if (var_10 == 1) {
      if (sock->port != 0) {
                    /* WARNING: Subroutine does not return */
        var_7("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");
      }
      pcVar10 = sock->addr->hostname;
      var_20 = var_19(pcVar10);
      if (0x6b < var_20) {
                    /* WARNING: Subroutine does not return */
        var_7("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,
                      "try_connect");
      }
      u.storage.ss_family = 1;
      __len = 0x6e;
      var_21(u.storage.__ss_padding,pcVar10,var_20 + 1,0x6c);
LAB_00066b3d:
      var_22(var_12);
      var_12 = var_23(var_12,(type_13 *)&__addr->storage,__len);
      if (var_12 < 0) {
        piVar8 = var_13();
        var_15 = *piVar8;
        if (var_15 != 0x73) goto LAB_000669b7;
      }
      else {
        sock->connected = 1;
        sock->writable = 1;
      }
      var_15 = 0;
      var_24(sock);
      var_14(sktree,sock);
      goto LAB_000669cd;
    }
    var_25 = (int)(short)var_29;
    var_18 = var_25 + -1;
LAB_0006695d:
    var_27 = (type_6)var_25;
    if (var_10 == 10) {
      u.storage.ss_family = 10;
      u._8_4_ = *(type_11 *)var_26;
      u._12_4_ = *(type_11 *)(var_26 + 4);
      u._16_4_ = *(type_11 *)(var_26 + 8);
      u._20_4_ = *(type_11 *)(var_26 + 0xc);
      u.sin.sin_port = var_27 << 8 | var_27 >> 8;
      var_15 = var_28(var_12,(type_13 *)&__addr->storage,0x1c);
    }
    else {
      if (var_10 != 2) {
                    /* WARNING: Subroutine does not return */
        var_7("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      u.sin6.sin6_flowinfo = 0;
      u.storage.ss_family = 2;
      u.sin.sin_port = var_27 << 8 | var_27 >> 8;
      var_15 = var_28(var_12,(type_13 *)&__addr->storage,0x10);
    }
    if (-1 < var_15) {
LAB_00066b16:
      if ((var_10 != 2) && (var_10 != 10)) {
                    /* WARNING: Subroutine does not return */
        var_7("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");
      }
      var_9 = (sock->step).ai;
      var_29 = (type_6)sock->port;
      __addr = (type_8 *)var_9->ai_addr;
      __len = var_9->ai_addrlen;
      (__addr->sin).sin_port = var_29 << 8 | var_29 >> 8;
      goto LAB_00066b3d;
    }
    piVar8 = var_13();
    var_15 = *piVar8;
    if (var_15 == 0x62) {
      if ((var_25 == 0) || (var_25 = var_25 + -1, var_25 == var_18 - (var_29 - 1 & 0xffff)))
      goto LAB_000669f6;
      goto LAB_0006695d;
    }
    if (var_15 == 0) goto LAB_00066b16;
LAB_000669f6:
    var_14(sktree,sock);
  }
  var_4(&thisaddr,sock->addr,&sock->step);
  p_Var4 = (*sock->plug)->log;
  pcVar10 = var_30(var_15);
  (*p_Var4)(sock->plug,1,&thisaddr,sock->port,pcVar10,var_15);
LAB_000669cd:
  if (var_31 == *(int *)(var_1 + 0x14)) {
    return var_15;
  }
                    /* WARNING: Subroutine does not return */
  var_32();
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (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: (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: (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 (call_expression function: (identifier) arguments: (argument_list))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) arguments: (argument_list (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))))) (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: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (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)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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: (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: (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))))))) (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: (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)))))) alternative: (else_clause (compound_statement (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))))))) (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: (compound_statement (labeled_statement label: (statement_identifier) (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: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence)) (string_literal (string_content)) (number_literal) (string_literal (string_content)))))))) (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: (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: (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: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))))) consequence: (goto_statement label: (statement_identifier))) (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 (call_expression function: (identifier) arguments: (argument_list))) (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: (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: (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;
  undefined *puVar2;
  ushort uVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  char *pcVar7;
  size_t sVar8;
  int iVar9;
  ushort uVar10;
  int iVar11;
  socklen_t __len;
  sockaddr *psVar12;
  sockaddr *__addr;
  int in_GS_OFFSET;
  byte bVar13;
  int local_2d4;
  undefined4 local_2b4;
  sockaddr local_2b0;
  undefined4 local_2a0;
  undefined4 local_29c;
  undefined1 local_230 [528];
  int local_20;
  undefined4 uStack_14;
  
  bVar13 = 0;
  uStack_14 = 0x667ab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00064020(DAT_000aab00,param_1);
  if (-1 < *(int *)(param_1 + 8)) {
    close(*(int *)(param_1 + 8));
  }
  FUN_00066710();
  (**(code **)**(undefined4 **)(param_1 + 0xc))
            (*(undefined4 **)(param_1 + 0xc),0,local_230,*(undefined4 *)(param_1 + 0x58),0,0);
  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);
  if (iVar4 == 0) {
LAB_00066c28:
                    /* WARNING: Subroutine does not return */
    __assert_fail("family != AF_UNSPEC","unix/uxnet.c",0x25a,"try_connect");
  }
  if (iVar4 == 1) {
    local_2d4 = 1;
  }
  else if (*(int *)(param_1 + 0x60) == 0) {
    local_2d4 = 2;
  }
  else {
    local_2d4 = *(int *)(*(int *)(param_1 + 0x60) + 4);
    if (local_2d4 == 0) goto LAB_00066c28;
  }
  iVar4 = socket(local_2d4,1,0);
  *(int *)(param_1 + 8) = iVar4;
  if (iVar4 < 0) {
    piVar5 = __errno_location();
    iVar6 = *piVar5;
LAB_000669b7:
    FUN_00063d00(DAT_000aab00,param_1);
    if (iVar6 == 0) goto LAB_000669cd;
  }
  else {
    FUN_00065c90(iVar4);
    if (*(int *)(param_1 + 0x38) != 0) {
      local_2b4 = 1;
      iVar6 = setsockopt(iVar4,1,10,&local_2b4,4);
      if (-1 < iVar6) goto LAB_00066889;
LAB_00066a8a:
      piVar5 = __errno_location();
      iVar6 = *piVar5;
      close(iVar4);
      goto LAB_000669b7;
    }
LAB_00066889:
    if (*(int *)(param_1 + 0x4c) == 0) {
      iVar6 = *(int *)(param_1 + 0x50);
    }
    else {
      local_2b4 = 1;
      iVar6 = setsockopt(iVar4,6,1,&local_2b4,4);
      if (iVar6 < 0) goto LAB_00066a8a;
      iVar6 = *(int *)(param_1 + 0x50);
    }
    if (iVar6 != 0) {
      local_2b4 = 1;
      iVar6 = setsockopt(iVar4,1,9,&local_2b4,4);
      if (iVar6 < 0) goto LAB_00066a8a;
    }
    puVar2 = PTR_in6addr_any_000a9fc8;
    iVar6 = *(int *)(param_1 + 0x54);
    __addr = &local_2b0;
    psVar12 = __addr;
    for (iVar9 = 0x20; iVar9 != 0; iVar9 = iVar9 + -1) {
      psVar12->sa_family = 0;
      psVar12->sa_data[0] = '\0';
      psVar12->sa_data[1] = '\0';
      psVar12 = (sockaddr *)((int)psVar12 + (uint)bVar13 * -8 + 4);
    }
    uVar10 = ~-(ushort)(iVar6 == 0) & 0x3ff;
    if (local_2d4 == 1) {
      if (*(int *)(param_1 + 0x58) != 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("sock->port == 0","unix/uxnet.c",0x2d5,"try_connect");
      }
      pcVar7 = (char *)(*(int *)(param_1 + 0x5c) + 0x10);
      sVar8 = strlen(pcVar7);
      if (0x6b < sVar8) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("strlen(sock->addr->hostname) < sizeof u.su.sun_path","unix/uxnet.c",0x2d6,
                      "try_connect");
      }
      local_2b0.sa_family = 1;
      __len = 0x6e;
      __memcpy_chk(local_2b0.sa_data,pcVar7,sVar8 + 1,0x6c);
LAB_00066b3d:
      FUN_00065db0(iVar4);
      iVar4 = connect(iVar4,__addr,__len);
      if (iVar4 < 0) {
        piVar5 = __errno_location();
        iVar6 = *piVar5;
        if (iVar6 != 0x73) goto LAB_000669b7;
      }
      else {
        *(undefined4 *)(param_1 + 0x1c) = 1;
        *(undefined4 *)(param_1 + 0x20) = 1;
      }
      iVar6 = 0;
      FUN_00066500();
      FUN_00063d00(DAT_000aab00,param_1);
      goto LAB_000669cd;
    }
    iVar11 = (int)(short)uVar10;
    iVar9 = iVar11 + -1;
LAB_0006695d:
    uVar3 = (ushort)iVar11;
    if (local_2d4 == 10) {
      local_2b0.sa_family = 10;
      local_2b0.sa_data._6_4_ = *(undefined4 *)puVar2;
      local_2b0.sa_data._10_4_ = *(undefined4 *)(puVar2 + 4);
      local_2a0 = *(undefined4 *)(puVar2 + 8);
      local_29c = *(undefined4 *)(puVar2 + 0xc);
      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;
      iVar6 = bind(iVar4,__addr,0x1c);
    }
    else {
      if (local_2d4 != 2) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("family == AF_INET","unix/uxnet.c",0x29f,"try_connect");
      }
      local_2b0.sa_data[2] = '\0';
      local_2b0.sa_data[3] = '\0';
      local_2b0.sa_data[4] = '\0';
      local_2b0.sa_data[5] = '\0';
      local_2b0.sa_family = 2;
      local_2b0.sa_data._0_2_ = uVar3 << 8 | uVar3 >> 8;
      iVar6 = bind(iVar4,__addr,0x10);
    }
    if (-1 < iVar6) {
LAB_00066b16:
      if ((local_2d4 != 2) && (local_2d4 != 10)) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("0 && \"unknown address family\"","unix/uxnet.c",0x2de,"try_connect");
      }
      __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_00066b3d;
    }
    piVar5 = __errno_location();
    iVar6 = *piVar5;
    if (iVar6 == 0x62) {
      if ((iVar11 == 0) || (iVar11 = iVar11 + -1, iVar11 == iVar9 - (uVar10 - 1 & 0xffff)))
      goto LAB_000669f6;
      goto LAB_0006695d;
    }
    if (iVar6 == 0) goto LAB_00066b16;
LAB_000669f6:
    FUN_00063d00(DAT_000aab00,param_1);
  }
  FUN_00066710();
  pcVar1 = *(code **)**(undefined4 **)(param_1 + 0xc);
  pcVar7 = strerror(iVar6);
  (*pcVar1)(*(undefined4 *)(param_1 + 0xc),1,local_230,*(undefined4 *)(param_1 + 0x58),pcVar7,iVar6)
  ;
LAB_000669cd:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar6;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

