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

Socket sk_newlistener(char *srcaddr,int port,Plug plug,int local_host_only,int orig_address_family)

{
  int iVar1;
  Actual_Socket_conflict s;
  int fd;
  int iVar2;
  char *pcVar3;
  Actual_Socket_conflict pSVar4;
  socklen_t __len;
  int *piVar5;
  undefined4 *puVar6;
  sockaddr_union *__addr;
  sockaddr_union *psVar7;
  int in_GS_OFFSET;
  byte bVar8;
  int local_e8;
  addrinfo *ai;
  int on;
  addrinfo hints;
  sockaddr_union u;
  char portstr [6];
  
  bVar8 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  ai = (addrinfo *)0x0;
  on = 1;
  s = (Actual_Socket_conflict)safemalloc(1,0x70);
  s->fn = &tcp_fn_table;
  s->error = (char *)0x0;
  s->plug = plug;
  bufchain_init(&s->output_data);
  s->writable = 0;
  s->sending_oob = 0;
  s->frozen = 0;
  s->localhost_only = local_host_only;
  s->pending_error = 0;
  s->child = (Actual_Socket)0x0;
  s->parent = (Actual_Socket)0x0;
  s->oobpending = 0;
  s->outgoingeof = ADDRTYPE_UNSPEC;
  s->incomingeof = 0;
  s->listener = 1;
  s->addr = (SockAddr)0x0;
  s->s = -1;
  if ((orig_address_family == 1) || (fd = socket(10,1,0), fd < 0)) {
    fd = socket(2,1,0);
    local_e8 = 2;
    if (fd < 0) {
      piVar5 = __errno_location();
      pcVar3 = strerror(*piVar5);
      s->error = pcVar3;
      goto LAB_00064df5;
    }
  }
  else {
    local_e8 = 10;
  }
  cloexec(fd);
  s->oobinline = 0;
  iVar2 = setsockopt(fd,1,2,&on,4);
  if (iVar2 < 0) {
    piVar5 = __errno_location();
    pcVar3 = strerror(*piVar5);
    s->error = pcVar3;
    close(fd);
    goto LAB_00064df5;
  }
  if (srcaddr == (char *)0x0) {
LAB_00064e20:
    __addr = &u;
    psVar7 = __addr;
    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
      *(undefined4 *)psVar7 = 0;
      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);
    }
    u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8;
    if (local_e8 == 10) {
      u.storage.ss_family = 10;
      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;
      if (local_host_only == 0) {
        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;
      }
      u._8_4_ = *puVar6;
      u._12_4_ = puVar6[1];
      u._16_4_ = puVar6[2];
      u._20_4_ = puVar6[3];
      __len = 0x1c;
    }
    else {
      u.storage.ss_family = 2;
      if (local_host_only == 0) {
        __len = 0x10;
      }
      else {
        u.sin6.sin6_flowinfo = 0x100007f;
        __len = 0x10;
      }
    }
  }
  else {
    hints.ai_flags = 4;
    hints.ai_socktype = 1;
    hints.ai_family = local_e8;
    hints.ai_protocol = 0;
    hints.ai_addrlen = 0;
    hints.ai_addr = (sockaddr *)0x0;
    hints.ai_canonname = (char *)0x0;
    hints.ai_next = (addrinfo *)0x0;
    if (99999 < (uint)port) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");
    }
    __sprintf_chk(portstr,1,6,"%d",port);
    pcVar3 = host_strduptrim(srcaddr);
    iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);
    safefree(pcVar3);
    if (iVar2 != 0) goto LAB_00064e20;
    __addr = (sockaddr_union *)ai->ai_addr;
    __len = ai->ai_addrlen;
  }
  iVar2 = bind(fd,(sockaddr *)&__addr->storage,__len);
  if (ai != (addrinfo *)0x0) {
    freeaddrinfo((addrinfo *)ai);
  }
  if ((iVar2 < 0) || (iVar2 = listen(fd,0x80), iVar2 < 0)) {
    close(fd);
    piVar5 = __errno_location();
    pcVar3 = strerror(*piVar5);
    s->error = pcVar3;
  }
  else {
    if ((local_e8 == 10) &&
       ((orig_address_family == 0 &&
        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),
        pSVar4 != (Actual_Socket_conflict)0x0)))) {
      if (pSVar4->error != (char *)0x0) {
        close(fd);
        safefree(s);
        s = pSVar4;
        goto LAB_00064df5;
      }
      pSVar4->parent = s;
      s->child = pSVar4;
    }
    s->s = fd;
    uxsel_tell(s);
    add234(sktree,s);
  }
LAB_00064df5:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return &s->fn;
}



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

undefined4 * FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)

{
  undefined4 *puVar1;
  int __fd;
  int iVar2;
  char *pcVar3;
  undefined4 *puVar4;
  socklen_t __len;
  int *piVar5;
  sockaddr *__addr;
  sockaddr *psVar6;
  int in_GS_OFFSET;
  byte bVar7;
  int local_e8;
  addrinfo *local_d0;
  undefined4 local_cc;
  addrinfo local_c8;
  sockaddr local_a8;
  undefined4 local_98;
  undefined4 local_94;
  char local_26 [6];
  int local_20;
  undefined4 uStack_14;
  
  bVar7 = 0;
  uStack_14 = 0x64b09;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_d0 = (addrinfo *)0x0;
  local_cc = 1;
  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);
  *puVar1 = &PTR_FUN_000a5240;
  puVar1[1] = 0;
  puVar1[3] = param_3;
  FUN_0001c780(puVar1 + 4);
  puVar1[8] = 0;
  puVar1[0xc] = 0;
  puVar1[9] = 0;
  puVar1[10] = param_4;
  puVar1[0x11] = 0;
  puVar1[0x1b] = 0;
  puVar1[0x1a] = 0;
  puVar1[0xd] = 0;
  puVar1[0xf] = 0;
  puVar1[0x10] = 0;
  puVar1[0x12] = 1;
  puVar1[0x17] = 0;
  puVar1[2] = 0xffffffff;
  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {
    __fd = socket(2,1,0);
    local_e8 = 2;
    if (__fd < 0) {
      piVar5 = __errno_location();
      pcVar3 = strerror(*piVar5);
      puVar1[1] = pcVar3;
      goto LAB_00064df5;
    }
  }
  else {
    local_e8 = 10;
  }
  FUN_00063340(__fd);
  puVar1[0xe] = 0;
  iVar2 = setsockopt(__fd,1,2,&local_cc,4);
  if (iVar2 < 0) {
    piVar5 = __errno_location();
    pcVar3 = strerror(*piVar5);
    puVar1[1] = pcVar3;
    close(__fd);
    goto LAB_00064df5;
  }
  if (param_1 == 0) {
LAB_00064e20:
    __addr = &local_a8;
    psVar6 = __addr;
    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
      psVar6->sa_family = 0;
      psVar6->sa_data[0] = '\0';
      psVar6->sa_data[1] = '\0';
      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);
    }
    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;
    if (local_e8 == 10) {
      local_a8.sa_family = 10;
      pcVar3 = PTR_in6addr_loopback_000a4fb8;
      if (param_4 == 0) {
        pcVar3 = PTR_in6addr_any_000a4fb0;
      }
      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;
      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);
      local_98 = *(undefined4 *)(pcVar3 + 8);
      local_94 = *(undefined4 *)(pcVar3 + 0xc);
      __len = 0x1c;
    }
    else {
      local_a8.sa_family = 2;
      if (param_4 == 0) {
        __len = 0x10;
      }
      else {
        local_a8.sa_data[2] = '\x7f';
        local_a8.sa_data[3] = '\0';
        local_a8.sa_data[4] = '\0';
        local_a8.sa_data[5] = '\x01';
        __len = 0x10;
      }
    }
  }
  else {
    local_c8.ai_flags = 4;
    local_c8.ai_socktype = 1;
    local_c8.ai_family = local_e8;
    local_c8.ai_protocol = 0;
    local_c8.ai_addrlen = 0;
    local_c8.ai_addr = (sockaddr *)0x0;
    local_c8.ai_canonname = (char *)0x0;
    local_c8.ai_next = (addrinfo *)0x0;
    if (99999 < param_2) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");
    }
    __sprintf_chk(local_26,1,6,"%d",param_2);
    pcVar3 = (char *)FUN_0001d050(param_1);
    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);
    FUN_0001d220(pcVar3);
    if (iVar2 != 0) goto LAB_00064e20;
    __addr = local_d0->ai_addr;
    __len = local_d0->ai_addrlen;
  }
  iVar2 = bind(__fd,__addr,__len);
  if (local_d0 != (addrinfo *)0x0) {
    freeaddrinfo(local_d0);
  }
  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {
    close(__fd);
    piVar5 = __errno_location();
    pcVar3 = strerror(*piVar5);
    puVar1[1] = pcVar3;
  }
  else {
    if ((local_e8 == 10) &&
       ((param_5 == 0 &&
        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),
        puVar4 != (undefined4 *)0x0)))) {
      if (puVar4[1] != 0) {
        close(__fd);
        FUN_0001d220(puVar1);
        puVar1 = puVar4;
        goto LAB_00064df5;
      }
      puVar4[0x1a] = puVar1;
      puVar1[0x1b] = puVar4;
    }
    puVar1[2] = __fd;
    FUN_00063bb0();
    FUN_00061320(DAT_000a5a40,puVar1);
  }
LAB_00064df5:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006dad0();
  }
  return puVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015fa0
ADD EBX,0x40267
SUB ESP,0xe4
MOV EAX,dword ptr [ESP + 0xf8]
MOV EDI,dword ptr [ESP + 0x100]
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0x10],EDI
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xd4],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x28],0x1
PUSH 0x70
PUSH 0x1
CALL 0x0001c990
MOV ESI,EAX
LEA EAX,[EBX + 0x4d0]
MOV dword ptr [ESI],EAX
LEA EAX,[ESI + 0x10]
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0xc],EDI
MOV dword ptr [ESP],EAX
CALL 0x0001c780
MOV EAX,dword ptr [ESP + 0x10c]
ADD ESP,0x10
MOV dword ptr [ESI + 0x20],0x0
CMP dword ptr [ESP + 0x100],0x1
MOV dword ptr [ESI + 0x30],0x0
MOV dword ptr [ESI + 0x24],0x0
MOV dword ptr [ESI + 0x28],EAX
MOV dword ptr [ESI + 0x44],0x0
MOV dword ptr [ESI + 0x6c],0x0
MOV dword ptr [ESI + 0x68],0x0
MOV dword ptr [ESI + 0x34],0x0
MOV dword ptr [ESI + 0x3c],0x0
MOV dword ptr [ESI + 0x40],0x0
MOV dword ptr [ESI + 0x48],0x1
MOV dword ptr [ESI + 0x5c],0x0
MOV dword ptr [ESI + 0x8],0xffffffff
JZ 0x00064bf8
SUB ESP,0x4
PUSH 0x0
PUSH 0x1
PUSH 0xa
CALL 0x00014710
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNS 0x00064dd0
SUB ESP,0x4
PUSH 0x0
PUSH 0x1
PUSH 0x2
CALL 0x00014710
ADD ESP,0x10
MOV EBP,EAX
MOV dword ptr [ESP + 0x4],0x2
TEST EAX,EAX
JS 0x00064de0
SUB ESP,0xc
PUSH EBP
CALL 0x00063340
LEA EAX,[ESP + 0x30]
MOV dword ptr [ESI + 0x38],0x0
MOV dword ptr [ESP],0x4
PUSH EAX
PUSH 0x2
PUSH 0x1
PUSH EBP
CALL 0x00014040
ADD ESP,0x20
TEST EAX,EAX
JS 0x00064eb0
MOV EAX,dword ptr [ESP]
TEST EAX,EAX
JZ 0x00064e20
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x24],0x4
CMP dword ptr [ESP + 0xf4],0x1869f
MOV dword ptr [ESP + 0x2c],0x1
MOV dword ptr [ESP + 0x28],EAX
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x38],0x0
MOV dword ptr [ESP + 0x3c],0x0
MOV dword ptr [ESP + 0x40],0x0
JA 0x00064f4d
SUB ESP,0xc
LEA EAX,[EBX + 0xfffd9734]
PUSH dword ptr [ESP + 0x100]
PUSH EAX
PUSH 0x6
PUSH 0x1
LEA EDX,[ESP + 0xe2]
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
CALL 0x000148a0
ADD ESP,0x14
PUSH dword ptr [ESP + 0xc]
CALL 0x0001d050
MOV EDI,EAX
LEA EAX,[ESP + 0x2c]
PUSH EAX
LEA EAX,[ESP + 0x38]
PUSH EAX
MOV EDX,dword ptr [ESP + 0x24]
PUSH EDX
PUSH EDI
CALL 0x00014720
MOV dword ptr [ESP + 0x2c],EAX
ADD ESP,0x14
PUSH EDI
CALL 0x0001d220
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x00064e20
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [EAX + 0x14]
MOV EAX,dword ptr [EAX + 0x10]
SUB ESP,0x4
PUSH EAX
PUSH EDX
PUSH EBP
CALL 0x000144c0
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOV EDI,EAX
TEST EDX,EDX
JZ 0x00064d3b
SUB ESP,0xc
PUSH EDX
CALL 0x00014640
ADD ESP,0x10
TEST EDI,EDI
JS 0x00064e78
SUB ESP,0x8
PUSH 0x80
PUSH EBP
CALL 0x00014650
ADD ESP,0x10
TEST EAX,EAX
JS 0x00064e78
CMP dword ptr [ESP + 0x4],0xa
JNZ 0x00064da8
MOV EDX,dword ptr [ESP + 0x100]
TEST EDX,EDX
JNZ 0x00064da8
SUB ESP,0xc
PUSH 0x1
PUSH dword ptr [ESP + 0x10c]
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x10c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x00064b00
ADD ESP,0x20
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00064da8
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JNZ 0x00064f20
MOV dword ptr [EDI + 0x68],ESI
MOV dword ptr [ESI + 0x6c],EDI
MOV dword ptr [ESI + 0x8],EBP
MOV EAX,ESI
CALL 0x00063bb0
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBX + 0xcd0]
CALL 0x00061320
ADD ESP,0x10
JMP 0x00064df5
MOV dword ptr [ESP + 0x4],0xa
JMP 0x00064c1b
CALL 0x00014540
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00014380
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV ECX,dword ptr [ESP + 0xcc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00064f48
ADD ESP,0xdc
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDX,[ESP + 0x44]
XOR EAX,EAX
MOV ECX,0x20
MOV EDI,EDX
STOSD.REP ES:EDI
MOVZX EAX,word ptr [ESP + 0xf4]
ROL AX,0x8
CMP dword ptr [ESP + 0x4],0xa
JZ 0x00064ed8
MOV word ptr [ESP + 0x46],AX
MOV EAX,dword ptr [ESP + 0xfc]
MOV EDI,0x2
MOV word ptr [ESP + 0x44],DI
TEST EAX,EAX
JZ 0x00064ea0
MOV dword ptr [ESP + 0x48],0x100007f
MOV EAX,0x10
JMP 0x00064d17
SUB ESP,0xc
PUSH EBP
CALL 0x00014810
CALL 0x00014540
POP ECX
PUSH dword ptr [EAX]
CALL 0x00014380
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
JMP 0x00064df5
MOV EAX,0x10
JMP 0x00064d17
CALL 0x00014540
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00014380
MOV dword ptr [ESI + 0x4],EAX
MOV dword ptr [ESP],EBP
CALL 0x00014810
ADD ESP,0x10
JMP 0x00064df5
MOV EDI,dword ptr [ESP + 0xfc]
MOV ECX,0xa
MOV word ptr [ESP + 0x46],AX
MOV word ptr [ESP + 0x44],CX
TEST EDI,EDI
JNZ 0x00064f40
MOV EAX,dword ptr [EBX + 0x240]
MOV ECX,dword ptr [EAX]
MOV dword ptr [ESP + 0x4c],ECX
MOV ECX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x50],ECX
MOV ECX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0x54],ECX
MOV dword ptr [ESP + 0x58],EAX
MOV EAX,0x1c
JMP 0x00064d17
SUB ESP,0xc
PUSH EBP
CALL 0x00014810
MOV dword ptr [ESP],ESI
MOV ESI,EDI
CALL 0x0001d220
ADD ESP,0x10
JMP 0x00064df5
MOV EAX,dword ptr [EBX + 0x248]
JMP 0x00064ef8
CALL 0x0006dad0
LEA EAX,[EBX + 0xfffd8988]
PUSH EAX
LEA EAX,[EBX + 0xfffd87ea]
PUSH 0x392
PUSH EAX
LEA EAX,[EBX + 0xfffd885a]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006dad0();\n  }\n  return puVar1;\n}\n\n" comment (function_definition "undefined4 * FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006dad0();\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" * (function_declarator "FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006dad0();\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "sockaddr *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "sockaddr *psVar6;" type_identifier (pointer_declarator "*psVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "int local_e8;" primitive_type identifier ;) (declaration "addrinfo *local_d0;" type_identifier (pointer_declarator "*local_d0" * identifier) ;) (declaration "undefined4 local_cc;" type_identifier identifier ;) (declaration "addrinfo local_c8;" type_identifier identifier ;) (declaration "sockaddr local_a8;" type_identifier identifier ;) (declaration "undefined4 local_98;" type_identifier identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "char local_26 [6];" primitive_type (array_declarator "local_26 [6]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x64b09;" (assignment_expression "uStack_14 = 0x64b09" 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 "local_d0 = (addrinfo *)0x0;" (assignment_expression "local_d0 = (addrinfo *)0x0" identifier = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_cc = 1;" (assignment_expression "local_cc = 1" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0001c990(1,0x70);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001c990(1,0x70)" identifier = (cast_expression "(undefined4 *)FUN_0001c990(1,0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(1,0x70)" identifier (argument_list "(1,0x70)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar1 = &PTR_FUN_000a5240;" (assignment_expression "*puVar1 = &PTR_FUN_000a5240" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_000a5240" & identifier)) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = param_3;" (assignment_expression "puVar1[3] = param_3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0001c780(puVar1 + 4);" (call_expression "FUN_0001c780(puVar1 + 4)" identifier (argument_list "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) ))) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xc] = 0;" (assignment_expression "puVar1[0xc] = 0" (subscript_expression "puVar1[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[10] = param_4;" (assignment_expression "puVar1[10] = param_4" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[0x11] = 0;" (assignment_expression "puVar1[0x11] = 0" (subscript_expression "puVar1[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x1b] = 0;" (assignment_expression "puVar1[0x1b] = 0" (subscript_expression "puVar1[0x1b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x1a] = 0;" (assignment_expression "puVar1[0x1a] = 0" (subscript_expression "puVar1[0x1a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xd] = 0;" (assignment_expression "puVar1[0xd] = 0" (subscript_expression "puVar1[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xf] = 0;" (assignment_expression "puVar1[0xf] = 0" (subscript_expression "puVar1[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x10] = 0;" (assignment_expression "puVar1[0x10] = 0" (subscript_expression "puVar1[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x12] = 1;" (assignment_expression "puVar1[0x12] = 1" (subscript_expression "puVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x17] = 0;" (assignment_expression "puVar1[0x17] = 0" (subscript_expression "puVar1[0x17]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0xffffffff;" (assignment_expression "puVar1[2] = 0xffffffff" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }" if (parenthesized_expression "((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0))" ( (binary_expression "(param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)" (parenthesized_expression "(param_5 == 1)" ( (binary_expression "param_5 == 1" identifier == number_literal) )) || (parenthesized_expression "(__fd = socket(10,1,0), __fd < 0)" ( (comma_expression "__fd = socket(10,1,0), __fd < 0" (assignment_expression "__fd = socket(10,1,0)" identifier = (call_expression "socket(10,1,0)" identifier (argument_list "(10,1,0)" ( number_literal , number_literal , number_literal )))) , (binary_expression "__fd < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }" { (expression_statement "__fd = socket(2,1,0);" (assignment_expression "__fd = socket(2,1,0)" identifier = (call_expression "socket(2,1,0)" identifier (argument_list "(2,1,0)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "local_e8 = 2;" (assignment_expression "local_e8 = 2" identifier = number_literal) ;) (if_statement "if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) }) (else_clause "else {\n    local_e8 = 10;\n  }" else (compound_statement "{\n    local_e8 = 10;\n  }" { (expression_statement "local_e8 = 10;" (assignment_expression "local_e8 = 10" identifier = number_literal) ;) }))) (expression_statement "FUN_00063340(__fd);" (call_expression "FUN_00063340(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "puVar1[0xe] = 0;" (assignment_expression "puVar1[0xe] = 0" (subscript_expression "puVar1[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = setsockopt(__fd,1,2,&local_cc,4);" (assignment_expression "iVar2 = setsockopt(__fd,1,2,&local_cc,4)" identifier = (call_expression "setsockopt(__fd,1,2,&local_cc,4)" identifier (argument_list "(__fd,1,2,&local_cc,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_cc" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) (if_statement "if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }" { (labeled_statement "LAB_00064e20:\n    __addr = &local_a8;" statement_identifier : (expression_statement "__addr = &local_a8;" (assignment_expression "__addr = &local_a8" identifier = (pointer_expression "&local_a8" & identifier)) ;)) (expression_statement "psVar6 = __addr;" (assignment_expression "psVar6 = __addr" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }" { (expression_statement "psVar6->sa_family = 0;" (assignment_expression "psVar6->sa_family = 0" (field_expression "psVar6->sa_family" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar6->sa_data[0] = '\0';" (assignment_expression "psVar6->sa_data[0] = '\0'" (subscript_expression "psVar6->sa_data[0]" (field_expression "psVar6->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar6->sa_data[1] = '\0';" (assignment_expression "psVar6->sa_data[1] = '\0'" (subscript_expression "psVar6->sa_data[1]" (field_expression "psVar6->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);" (assignment_expression "psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4)" identifier = (cast_expression "(sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar6 + (uint)bVar7 * -8 + 4)" ( (binary_expression "(int)psVar6 + (uint)bVar7 * -8 + 4" (binary_expression "(int)psVar6 + (uint)bVar7 * -8" (cast_expression "(int)psVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar7 * -8" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;" (assignment_expression "local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8" (field_expression "local_a8.sa_data._0_2_" (field_expression "local_a8.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "(ushort)param_2 << 8 | (ushort)param_2 >> 8" (binary_expression "(ushort)param_2 << 8" (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier) << number_literal) | (binary_expression "(ushort)param_2 >> 8" (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier) >> number_literal))) ;) (if_statement "if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" if (parenthesized_expression "(local_e8 == 10)" ( (binary_expression "local_e8 == 10" identifier == number_literal) )) (compound_statement "{\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }" { (expression_statement "local_a8.sa_family = 10;" (assignment_expression "local_a8.sa_family = 10" (field_expression "local_a8.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "pcVar3 = PTR_in6addr_loopback_000a4fb8;" (assignment_expression "pcVar3 = PTR_in6addr_loopback_000a4fb8" identifier = identifier) ;) (if_statement "if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }" { (expression_statement "pcVar3 = PTR_in6addr_any_000a4fb0;" (assignment_expression "pcVar3 = PTR_in6addr_any_000a4fb0" identifier = identifier) ;) })) (expression_statement "local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;" (assignment_expression "local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3" (field_expression "local_a8.sa_data._6_4_" (field_expression "local_a8.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)pcVar3" * (cast_expression "(undefined4 *)pcVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);" (assignment_expression "local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4)" (field_expression "local_a8.sa_data._10_4_" (field_expression "local_a8.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)(pcVar3 + 4)" * (cast_expression "(undefined4 *)(pcVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 4)" ( (binary_expression "pcVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_98 = *(undefined4 *)(pcVar3 + 8);" (assignment_expression "local_98 = *(undefined4 *)(pcVar3 + 8)" identifier = (pointer_expression "*(undefined4 *)(pcVar3 + 8)" * (cast_expression "(undefined4 *)(pcVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 8)" ( (binary_expression "pcVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_94 = *(undefined4 *)(pcVar3 + 0xc);" (assignment_expression "local_94 = *(undefined4 *)(pcVar3 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(pcVar3 + 0xc)" * (cast_expression "(undefined4 *)(pcVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 0xc)" ( (binary_expression "pcVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "__len = 0x1c;" (assignment_expression "__len = 0x1c" identifier = number_literal) ;) }) (else_clause "else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" else (compound_statement "{\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" { (expression_statement "local_a8.sa_family = 2;" (assignment_expression "local_a8.sa_family = 2" (field_expression "local_a8.sa_family" identifier . field_identifier) = number_literal) ;) (if_statement "if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        __len = 0x10;\n      }" { (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" else (compound_statement "{\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" { (expression_statement "local_a8.sa_data[2] = '\x7f';" (assignment_expression "local_a8.sa_data[2] = '\x7f'" (subscript_expression "local_a8.sa_data[2]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\x7f'" ' escape_sequence ')) ;) (expression_statement "local_a8.sa_data[3] = '\0';" (assignment_expression "local_a8.sa_data[3] = '\0'" (subscript_expression "local_a8.sa_data[3]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_a8.sa_data[4] = '\0';" (assignment_expression "local_a8.sa_data[4] = '\0'" (subscript_expression "local_a8.sa_data[4]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_a8.sa_data[5] = '\x01';" (assignment_expression "local_a8.sa_data[5] = '\x01'" (subscript_expression "local_a8.sa_data[5]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" else (compound_statement "{\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" { (expression_statement "local_c8.ai_flags = 4;" (assignment_expression "local_c8.ai_flags = 4" (field_expression "local_c8.ai_flags" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_socktype = 1;" (assignment_expression "local_c8.ai_socktype = 1" (field_expression "local_c8.ai_socktype" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_family = local_e8;" (assignment_expression "local_c8.ai_family = local_e8" (field_expression "local_c8.ai_family" identifier . field_identifier) = identifier) ;) (expression_statement "local_c8.ai_protocol = 0;" (assignment_expression "local_c8.ai_protocol = 0" (field_expression "local_c8.ai_protocol" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_addrlen = 0;" (assignment_expression "local_c8.ai_addrlen = 0" (field_expression "local_c8.ai_addrlen" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_addr = (sockaddr *)0x0;" (assignment_expression "local_c8.ai_addr = (sockaddr *)0x0" (field_expression "local_c8.ai_addr" identifier . field_identifier) = (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_c8.ai_canonname = (char *)0x0;" (assignment_expression "local_c8.ai_canonname = (char *)0x0" (field_expression "local_c8.ai_canonname" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_c8.ai_next = (addrinfo *)0x0;" (assignment_expression "local_c8.ai_next = (addrinfo *)0x0" (field_expression "local_c8.ai_next" identifier . field_identifier) = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (99999 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" if (parenthesized_expression "(99999 < param_2)" ( (binary_expression "99999 < param_2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" { comment (expression_statement "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");" (call_expression "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" identifier (argument_list "("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" ( (string_literal ""port >= 0 && port <= 99999"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""sk_newlistener"" " string_content ") ))) ;) })) (expression_statement "__sprintf_chk(local_26,1,6,"%d",param_2);" (call_expression "__sprintf_chk(local_26,1,6,"%d",param_2)" identifier (argument_list "(local_26,1,6,"%d",param_2)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "pcVar3 = (char *)FUN_0001d050(param_1);" (assignment_expression "pcVar3 = (char *)FUN_0001d050(param_1)" identifier = (cast_expression "(char *)FUN_0001d050(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001d050(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);" (assignment_expression "iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0)" identifier = (call_expression "getaddrinfo(pcVar3,local_26,&local_c8,&local_d0)" identifier (argument_list "(pcVar3,local_26,&local_c8,&local_d0)" ( identifier , identifier , (pointer_expression "&local_c8" & identifier) , (pointer_expression "&local_d0" & identifier) )))) ;) (expression_statement "FUN_0001d220(pcVar3);" (call_expression "FUN_0001d220(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (if_statement "if (iVar2 != 0) goto LAB_00064e20;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00064e20;" goto statement_identifier ;)) (expression_statement "__addr = local_d0->ai_addr;" (assignment_expression "__addr = local_d0->ai_addr" identifier = (field_expression "local_d0->ai_addr" identifier -> field_identifier)) ;) (expression_statement "__len = local_d0->ai_addrlen;" (assignment_expression "__len = local_d0->ai_addrlen" identifier = (field_expression "local_d0->ai_addrlen" identifier -> field_identifier)) ;) }))) (expression_statement "iVar2 = bind(__fd,__addr,__len);" (assignment_expression "iVar2 = bind(__fd,__addr,__len)" identifier = (call_expression "bind(__fd,__addr,__len)" identifier (argument_list "(__fd,__addr,__len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }" if (parenthesized_expression "(local_d0 != (addrinfo *)0x0)" ( (binary_expression "local_d0 != (addrinfo *)0x0" identifier != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    freeaddrinfo(local_d0);\n  }" { (expression_statement "freeaddrinfo(local_d0);" (call_expression "freeaddrinfo(local_d0)" identifier (argument_list "(local_d0)" ( identifier ))) ;) })) (if_statement "if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" if (parenthesized_expression "((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0))" ( (binary_expression "(iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar2 = listen(__fd,0x80), iVar2 < 0)" ( (comma_expression "iVar2 = listen(__fd,0x80), iVar2 < 0" (assignment_expression "iVar2 = listen(__fd,0x80)" identifier = (call_expression "listen(__fd,0x80)" identifier (argument_list "(__fd,0x80)" ( identifier , number_literal )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" else (compound_statement "{\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" { (if_statement "if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }" if (parenthesized_expression "((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0))))" ( (binary_expression "(local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))" (parenthesized_expression "(local_e8 == 10)" ( (binary_expression "local_e8 == 10" identifier == number_literal) )) && (parenthesized_expression "((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))" ( (parenthesized_expression "(param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0))" ( (binary_expression "param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)" (binary_expression "param_5 == 0" identifier == number_literal) && (parenthesized_expression "(puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)" ( (comma_expression "puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0" (assignment_expression "puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1)" identifier = (cast_expression "(undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00064b00(param_1,param_2,param_3,param_4,1)" identifier (argument_list "(param_1,param_2,param_3,param_4,1)" ( identifier , identifier , identifier , identifier , number_literal ))))) , (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) ))) )) (compound_statement "{\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }" { (if_statement "if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }" if (parenthesized_expression "(puVar4[1] != 0)" ( (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "FUN_0001d220(puVar1);" (call_expression "FUN_0001d220(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1 = puVar4;" (assignment_expression "puVar1 = puVar4" identifier = identifier) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) (expression_statement "puVar4[0x1a] = puVar1;" (assignment_expression "puVar4[0x1a] = puVar1" (subscript_expression "puVar4[0x1a]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[0x1b] = puVar4;" (assignment_expression "puVar1[0x1b] = puVar4" (subscript_expression "puVar1[0x1b]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "puVar1[2] = __fd;" (assignment_expression "puVar1[2] = __fd" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00063bb0();" (call_expression "FUN_00063bb0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00061320(DAT_000a5a40,puVar1);" (call_expression "FUN_00061320(DAT_000a5a40,puVar1)" identifier (argument_list "(DAT_000a5a40,puVar1)" ( identifier , identifier ))) ;) }))) (labeled_statement "LAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006dad0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006dad0();\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                    /* WARNING: Subroutine does not return */\n    FUN_0006dad0();\n  }" { comment (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nSocket sk_newlistener(char *srcaddr,int port,Plug plug,int local_host_only,int orig_address_family)\n\n{\n  int iVar1;\n  Actual_Socket_conflict s;\n  int fd;\n  int iVar2;\n  char *pcVar3;\n  Actual_Socket_conflict pSVar4;\n  socklen_t __len;\n  int *piVar5;\n  undefined4 *puVar6;\n  sockaddr_union *__addr;\n  sockaddr_union *psVar7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  int local_e8;\n  addrinfo *ai;\n  int on;\n  addrinfo hints;\n  sockaddr_union u;\n  char portstr [6];\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ai = (addrinfo *)0x0;\n  on = 1;\n  s = (Actual_Socket_conflict)safemalloc(1,0x70);\n  s->fn = &tcp_fn_table;\n  s->error = (char *)0x0;\n  s->plug = plug;\n  bufchain_init(&s->output_data);\n  s->writable = 0;\n  s->sending_oob = 0;\n  s->frozen = 0;\n  s->localhost_only = local_host_only;\n  s->pending_error = 0;\n  s->child = (Actual_Socket)0x0;\n  s->parent = (Actual_Socket)0x0;\n  s->oobpending = 0;\n  s->outgoingeof = ADDRTYPE_UNSPEC;\n  s->incomingeof = 0;\n  s->listener = 1;\n  s->addr = (SockAddr)0x0;\n  s->s = -1;\n  if ((orig_address_family == 1) || (fd = socket(10,1,0), fd < 0)) {\n    fd = socket(2,1,0);\n    local_e8 = 2;\n    if (fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      s->error = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  cloexec(fd);\n  s->oobinline = 0;\n  iVar2 = setsockopt(fd,1,2,&on,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n    close(fd);\n    goto LAB_00064df5;\n  }\n  if (srcaddr == (char *)0x0) {\nLAB_00064e20:\n    __addr = &u;\n    psVar7 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *(undefined4 *)psVar7 = 0;\n      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);\n    }\n    u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8;\n    if (local_e8 == 10) {\n      u.storage.ss_family = 10;\n      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;\n      if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }\n      u._8_4_ = *puVar6;\n      u._12_4_ = puVar6[1];\n      u._16_4_ = puVar6[2];\n      u._20_4_ = puVar6[3];\n      __len = 0x1c;\n    }\n    else {\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    hints.ai_flags = 4;\n    hints.ai_socktype = 1;\n    hints.ai_family = local_e8;\n    hints.ai_protocol = 0;\n    hints.ai_addrlen = 0;\n    hints.ai_addr = (sockaddr *)0x0;\n    hints.ai_canonname = (char *)0x0;\n    hints.ai_next = (addrinfo *)0x0;\n    if (99999 < (uint)port) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(portstr,1,6,"%d",port);\n    pcVar3 = host_strduptrim(srcaddr);\n    iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);\n    safefree(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = (sockaddr_union *)ai->ai_addr;\n    __len = ai->ai_addrlen;\n  }\n  iVar2 = bind(fd,(sockaddr *)&__addr->storage,__len);\n  if (ai != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)ai);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(fd,0x80), iVar2 < 0)) {\n    close(fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))) {\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }\n    s->s = fd;\n    uxsel_tell(s);\n    add234(sktree,s);\n  }\nLAB_00064df5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return &s->fn;\n}\n\n" comment comment comment (function_definition "Socket sk_newlistener(char *srcaddr,int port,Plug plug,int local_host_only,int orig_address_family)\n\n{\n  int iVar1;\n  Actual_Socket_conflict s;\n  int fd;\n  int iVar2;\n  char *pcVar3;\n  Actual_Socket_conflict pSVar4;\n  socklen_t __len;\n  int *piVar5;\n  undefined4 *puVar6;\n  sockaddr_union *__addr;\n  sockaddr_union *psVar7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  int local_e8;\n  addrinfo *ai;\n  int on;\n  addrinfo hints;\n  sockaddr_union u;\n  char portstr [6];\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ai = (addrinfo *)0x0;\n  on = 1;\n  s = (Actual_Socket_conflict)safemalloc(1,0x70);\n  s->fn = &tcp_fn_table;\n  s->error = (char *)0x0;\n  s->plug = plug;\n  bufchain_init(&s->output_data);\n  s->writable = 0;\n  s->sending_oob = 0;\n  s->frozen = 0;\n  s->localhost_only = local_host_only;\n  s->pending_error = 0;\n  s->child = (Actual_Socket)0x0;\n  s->parent = (Actual_Socket)0x0;\n  s->oobpending = 0;\n  s->outgoingeof = ADDRTYPE_UNSPEC;\n  s->incomingeof = 0;\n  s->listener = 1;\n  s->addr = (SockAddr)0x0;\n  s->s = -1;\n  if ((orig_address_family == 1) || (fd = socket(10,1,0), fd < 0)) {\n    fd = socket(2,1,0);\n    local_e8 = 2;\n    if (fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      s->error = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  cloexec(fd);\n  s->oobinline = 0;\n  iVar2 = setsockopt(fd,1,2,&on,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n    close(fd);\n    goto LAB_00064df5;\n  }\n  if (srcaddr == (char *)0x0) {\nLAB_00064e20:\n    __addr = &u;\n    psVar7 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *(undefined4 *)psVar7 = 0;\n      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);\n    }\n    u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8;\n    if (local_e8 == 10) {\n      u.storage.ss_family = 10;\n      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;\n      if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }\n      u._8_4_ = *puVar6;\n      u._12_4_ = puVar6[1];\n      u._16_4_ = puVar6[2];\n      u._20_4_ = puVar6[3];\n      __len = 0x1c;\n    }\n    else {\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    hints.ai_flags = 4;\n    hints.ai_socktype = 1;\n    hints.ai_family = local_e8;\n    hints.ai_protocol = 0;\n    hints.ai_addrlen = 0;\n    hints.ai_addr = (sockaddr *)0x0;\n    hints.ai_canonname = (char *)0x0;\n    hints.ai_next = (addrinfo *)0x0;\n    if (99999 < (uint)port) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(portstr,1,6,"%d",port);\n    pcVar3 = host_strduptrim(srcaddr);\n    iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);\n    safefree(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = (sockaddr_union *)ai->ai_addr;\n    __len = ai->ai_addrlen;\n  }\n  iVar2 = bind(fd,(sockaddr *)&__addr->storage,__len);\n  if (ai != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)ai);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(fd,0x80), iVar2 < 0)) {\n    close(fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))) {\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }\n    s->s = fd;\n    uxsel_tell(s);\n    add234(sktree,s);\n  }\nLAB_00064df5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return &s->fn;\n}" type_identifier (function_declarator "sk_newlistener(char *srcaddr,int port,Plug plug,int local_host_only,int orig_address_family)" identifier (parameter_list "(char *srcaddr,int port,Plug plug,int local_host_only,int orig_address_family)" ( (parameter_declaration "char *srcaddr" primitive_type (pointer_declarator "*srcaddr" * identifier)) , (parameter_declaration "int port" primitive_type identifier) , (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "int local_host_only" primitive_type identifier) , (parameter_declaration "int orig_address_family" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Actual_Socket_conflict s;\n  int fd;\n  int iVar2;\n  char *pcVar3;\n  Actual_Socket_conflict pSVar4;\n  socklen_t __len;\n  int *piVar5;\n  undefined4 *puVar6;\n  sockaddr_union *__addr;\n  sockaddr_union *psVar7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  int local_e8;\n  addrinfo *ai;\n  int on;\n  addrinfo hints;\n  sockaddr_union u;\n  char portstr [6];\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ai = (addrinfo *)0x0;\n  on = 1;\n  s = (Actual_Socket_conflict)safemalloc(1,0x70);\n  s->fn = &tcp_fn_table;\n  s->error = (char *)0x0;\n  s->plug = plug;\n  bufchain_init(&s->output_data);\n  s->writable = 0;\n  s->sending_oob = 0;\n  s->frozen = 0;\n  s->localhost_only = local_host_only;\n  s->pending_error = 0;\n  s->child = (Actual_Socket)0x0;\n  s->parent = (Actual_Socket)0x0;\n  s->oobpending = 0;\n  s->outgoingeof = ADDRTYPE_UNSPEC;\n  s->incomingeof = 0;\n  s->listener = 1;\n  s->addr = (SockAddr)0x0;\n  s->s = -1;\n  if ((orig_address_family == 1) || (fd = socket(10,1,0), fd < 0)) {\n    fd = socket(2,1,0);\n    local_e8 = 2;\n    if (fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      s->error = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  cloexec(fd);\n  s->oobinline = 0;\n  iVar2 = setsockopt(fd,1,2,&on,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n    close(fd);\n    goto LAB_00064df5;\n  }\n  if (srcaddr == (char *)0x0) {\nLAB_00064e20:\n    __addr = &u;\n    psVar7 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *(undefined4 *)psVar7 = 0;\n      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);\n    }\n    u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8;\n    if (local_e8 == 10) {\n      u.storage.ss_family = 10;\n      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;\n      if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }\n      u._8_4_ = *puVar6;\n      u._12_4_ = puVar6[1];\n      u._16_4_ = puVar6[2];\n      u._20_4_ = puVar6[3];\n      __len = 0x1c;\n    }\n    else {\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    hints.ai_flags = 4;\n    hints.ai_socktype = 1;\n    hints.ai_family = local_e8;\n    hints.ai_protocol = 0;\n    hints.ai_addrlen = 0;\n    hints.ai_addr = (sockaddr *)0x0;\n    hints.ai_canonname = (char *)0x0;\n    hints.ai_next = (addrinfo *)0x0;\n    if (99999 < (uint)port) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(portstr,1,6,"%d",port);\n    pcVar3 = host_strduptrim(srcaddr);\n    iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);\n    safefree(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = (sockaddr_union *)ai->ai_addr;\n    __len = ai->ai_addrlen;\n  }\n  iVar2 = bind(fd,(sockaddr *)&__addr->storage,__len);\n  if (ai != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)ai);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(fd,0x80), iVar2 < 0)) {\n    close(fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))) {\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }\n    s->s = fd;\n    uxsel_tell(s);\n    add234(sktree,s);\n  }\nLAB_00064df5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return &s->fn;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Actual_Socket_conflict s;" type_identifier identifier ;) (declaration "int fd;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "Actual_Socket_conflict pSVar4;" type_identifier identifier ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "sockaddr_union *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "sockaddr_union *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int local_e8;" primitive_type identifier ;) (declaration "addrinfo *ai;" type_identifier (pointer_declarator "*ai" * identifier) ;) (declaration "int on;" primitive_type identifier ;) (declaration "addrinfo hints;" type_identifier identifier ;) (declaration "sockaddr_union u;" type_identifier identifier ;) (declaration "char portstr [6];" primitive_type (array_declarator "portstr [6]" identifier [ number_literal ]) ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 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 "ai = (addrinfo *)0x0;" (assignment_expression "ai = (addrinfo *)0x0" identifier = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "on = 1;" (assignment_expression "on = 1" identifier = number_literal) ;) (expression_statement "s = (Actual_Socket_conflict)safemalloc(1,0x70);" (assignment_expression "s = (Actual_Socket_conflict)safemalloc(1,0x70)" identifier = (cast_expression "(Actual_Socket_conflict)safemalloc(1,0x70)" ( (type_descriptor "Actual_Socket_conflict" type_identifier) ) (call_expression "safemalloc(1,0x70)" identifier (argument_list "(1,0x70)" ( number_literal , number_literal ))))) ;) (expression_statement "s->fn = &tcp_fn_table;" (assignment_expression "s->fn = &tcp_fn_table" (field_expression "s->fn" identifier -> field_identifier) = (pointer_expression "&tcp_fn_table" & identifier)) ;) (expression_statement "s->error = (char *)0x0;" (assignment_expression "s->error = (char *)0x0" (field_expression "s->error" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "s->plug = plug;" (assignment_expression "s->plug = plug" (field_expression "s->plug" identifier -> field_identifier) = identifier) ;) (expression_statement "bufchain_init(&s->output_data);" (call_expression "bufchain_init(&s->output_data)" identifier (argument_list "(&s->output_data)" ( (pointer_expression "&s->output_data" & (field_expression "s->output_data" identifier -> field_identifier)) ))) ;) (expression_statement "s->writable = 0;" (assignment_expression "s->writable = 0" (field_expression "s->writable" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->sending_oob = 0;" (assignment_expression "s->sending_oob = 0" (field_expression "s->sending_oob" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->frozen = 0;" (assignment_expression "s->frozen = 0" (field_expression "s->frozen" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->localhost_only = local_host_only;" (assignment_expression "s->localhost_only = local_host_only" (field_expression "s->localhost_only" identifier -> field_identifier) = identifier) ;) (expression_statement "s->pending_error = 0;" (assignment_expression "s->pending_error = 0" (field_expression "s->pending_error" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->child = (Actual_Socket)0x0;" (assignment_expression "s->child = (Actual_Socket)0x0" (field_expression "s->child" identifier -> field_identifier) = (cast_expression "(Actual_Socket)0x0" ( (type_descriptor "Actual_Socket" type_identifier) ) number_literal)) ;) (expression_statement "s->parent = (Actual_Socket)0x0;" (assignment_expression "s->parent = (Actual_Socket)0x0" (field_expression "s->parent" identifier -> field_identifier) = (cast_expression "(Actual_Socket)0x0" ( (type_descriptor "Actual_Socket" type_identifier) ) number_literal)) ;) (expression_statement "s->oobpending = 0;" (assignment_expression "s->oobpending = 0" (field_expression "s->oobpending" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->outgoingeof = ADDRTYPE_UNSPEC;" (assignment_expression "s->outgoingeof = ADDRTYPE_UNSPEC" (field_expression "s->outgoingeof" identifier -> field_identifier) = identifier) ;) (expression_statement "s->incomingeof = 0;" (assignment_expression "s->incomingeof = 0" (field_expression "s->incomingeof" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->listener = 1;" (assignment_expression "s->listener = 1" (field_expression "s->listener" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->addr = (SockAddr)0x0;" (assignment_expression "s->addr = (SockAddr)0x0" (field_expression "s->addr" identifier -> field_identifier) = (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) ;) (expression_statement "s->s = -1;" (assignment_expression "s->s = -1" (field_expression "s->s" identifier -> field_identifier) = number_literal) ;) (if_statement "if ((orig_address_family == 1) || (fd = socket(10,1,0), fd < 0)) {\n    fd = socket(2,1,0);\n    local_e8 = 2;\n    if (fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      s->error = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }" if (parenthesized_expression "((orig_address_family == 1) || (fd = socket(10,1,0), fd < 0))" ( (binary_expression "(orig_address_family == 1) || (fd = socket(10,1,0), fd < 0)" (parenthesized_expression "(orig_address_family == 1)" ( (binary_expression "orig_address_family == 1" identifier == number_literal) )) || (parenthesized_expression "(fd = socket(10,1,0), fd < 0)" ( (comma_expression "fd = socket(10,1,0), fd < 0" (assignment_expression "fd = socket(10,1,0)" identifier = (call_expression "socket(10,1,0)" identifier (argument_list "(10,1,0)" ( number_literal , number_literal , number_literal )))) , (binary_expression "fd < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    fd = socket(2,1,0);\n    local_e8 = 2;\n    if (fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      s->error = pcVar3;\n      goto LAB_00064df5;\n    }\n  }" { (expression_statement "fd = socket(2,1,0);" (assignment_expression "fd = socket(2,1,0)" identifier = (call_expression "socket(2,1,0)" identifier (argument_list "(2,1,0)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "local_e8 = 2;" (assignment_expression "local_e8 = 2" identifier = number_literal) ;) (if_statement "if (fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      s->error = pcVar3;\n      goto LAB_00064df5;\n    }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      s->error = pcVar3;\n      goto LAB_00064df5;\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "s->error = pcVar3;" (assignment_expression "s->error = pcVar3" (field_expression "s->error" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) }) (else_clause "else {\n    local_e8 = 10;\n  }" else (compound_statement "{\n    local_e8 = 10;\n  }" { (expression_statement "local_e8 = 10;" (assignment_expression "local_e8 = 10" identifier = number_literal) ;) }))) (expression_statement "cloexec(fd);" (call_expression "cloexec(fd)" identifier (argument_list "(fd)" ( identifier ))) ;) (expression_statement "s->oobinline = 0;" (assignment_expression "s->oobinline = 0" (field_expression "s->oobinline" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar2 = setsockopt(fd,1,2,&on,4);" (assignment_expression "iVar2 = setsockopt(fd,1,2,&on,4)" identifier = (call_expression "setsockopt(fd,1,2,&on,4)" identifier (argument_list "(fd,1,2,&on,4)" ( identifier , number_literal , number_literal , (pointer_expression "&on" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n    close(fd);\n    goto LAB_00064df5;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n    close(fd);\n    goto LAB_00064df5;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "s->error = pcVar3;" (assignment_expression "s->error = pcVar3" (field_expression "s->error" identifier -> field_identifier) = identifier) ;) (expression_statement "close(fd);" (call_expression "close(fd)" identifier (argument_list "(fd)" ( identifier ))) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) (if_statement "if (srcaddr == (char *)0x0) {\nLAB_00064e20:\n    __addr = &u;\n    psVar7 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *(undefined4 *)psVar7 = 0;\n      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);\n    }\n    u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8;\n    if (local_e8 == 10) {\n      u.storage.ss_family = 10;\n      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;\n      if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }\n      u._8_4_ = *puVar6;\n      u._12_4_ = puVar6[1];\n      u._16_4_ = puVar6[2];\n      u._20_4_ = puVar6[3];\n      __len = 0x1c;\n    }\n    else {\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    hints.ai_flags = 4;\n    hints.ai_socktype = 1;\n    hints.ai_family = local_e8;\n    hints.ai_protocol = 0;\n    hints.ai_addrlen = 0;\n    hints.ai_addr = (sockaddr *)0x0;\n    hints.ai_canonname = (char *)0x0;\n    hints.ai_next = (addrinfo *)0x0;\n    if (99999 < (uint)port) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(portstr,1,6,"%d",port);\n    pcVar3 = host_strduptrim(srcaddr);\n    iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);\n    safefree(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = (sockaddr_union *)ai->ai_addr;\n    __len = ai->ai_addrlen;\n  }" if (parenthesized_expression "(srcaddr == (char *)0x0)" ( (binary_expression "srcaddr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00064e20:\n    __addr = &u;\n    psVar7 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *(undefined4 *)psVar7 = 0;\n      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);\n    }\n    u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8;\n    if (local_e8 == 10) {\n      u.storage.ss_family = 10;\n      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;\n      if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }\n      u._8_4_ = *puVar6;\n      u._12_4_ = puVar6[1];\n      u._16_4_ = puVar6[2];\n      u._20_4_ = puVar6[3];\n      __len = 0x1c;\n    }\n    else {\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }\n  }" { (labeled_statement "LAB_00064e20:\n    __addr = &u;" statement_identifier : (expression_statement "__addr = &u;" (assignment_expression "__addr = &u" identifier = (pointer_expression "&u" & identifier)) ;)) (expression_statement "psVar7 = __addr;" (assignment_expression "psVar7 = __addr" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *(undefined4 *)psVar7 = 0;\n      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);\n    }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      *(undefined4 *)psVar7 = 0;\n      psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);\n    }" { (expression_statement "*(undefined4 *)psVar7 = 0;" (assignment_expression "*(undefined4 *)psVar7 = 0" (pointer_expression "*(undefined4 *)psVar7" * (cast_expression "(undefined4 *)psVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4);" (assignment_expression "psVar7 = (sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4)" identifier = (cast_expression "(sockaddr_union *)((int)psVar7 + (uint)bVar8 * -8 + 4)" ( (type_descriptor "sockaddr_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar7 + (uint)bVar8 * -8 + 4)" ( (binary_expression "(int)psVar7 + (uint)bVar8 * -8 + 4" (binary_expression "(int)psVar7 + (uint)bVar8 * -8" (cast_expression "(int)psVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar8 * -8" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8;" (assignment_expression "u.sin.sin_port = (ushort)port << 8 | (ushort)port >> 8" (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier) = (binary_expression "(ushort)port << 8 | (ushort)port >> 8" (binary_expression "(ushort)port << 8" (cast_expression "(ushort)port" ( (type_descriptor "ushort" type_identifier) ) identifier) << number_literal) | (binary_expression "(ushort)port >> 8" (cast_expression "(ushort)port" ( (type_descriptor "ushort" type_identifier) ) identifier) >> number_literal))) ;) (if_statement "if (local_e8 == 10) {\n      u.storage.ss_family = 10;\n      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;\n      if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }\n      u._8_4_ = *puVar6;\n      u._12_4_ = puVar6[1];\n      u._16_4_ = puVar6[2];\n      u._20_4_ = puVar6[3];\n      __len = 0x1c;\n    }\n    else {\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }" if (parenthesized_expression "(local_e8 == 10)" ( (binary_expression "local_e8 == 10" identifier == number_literal) )) (compound_statement "{\n      u.storage.ss_family = 10;\n      puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;\n      if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }\n      u._8_4_ = *puVar6;\n      u._12_4_ = puVar6[1];\n      u._16_4_ = puVar6[2];\n      u._20_4_ = puVar6[3];\n      __len = 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 "puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8;" (assignment_expression "puVar6 = (undefined4 *)PTR_in6addr_loopback_000a4fb8" identifier = (cast_expression "(undefined4 *)PTR_in6addr_loopback_000a4fb8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (local_host_only == 0) {\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }" if (parenthesized_expression "(local_host_only == 0)" ( (binary_expression "local_host_only == 0" identifier == number_literal) )) (compound_statement "{\n        puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;\n      }" { (expression_statement "puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0;" (assignment_expression "puVar6 = (undefined4 *)PTR_in6addr_any_000a4fb0" identifier = (cast_expression "(undefined4 *)PTR_in6addr_any_000a4fb0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "u._8_4_ = *puVar6;" (assignment_expression "u._8_4_ = *puVar6" (field_expression "u._8_4_" identifier . field_identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "u._12_4_ = puVar6[1];" (assignment_expression "u._12_4_ = puVar6[1]" (field_expression "u._12_4_" identifier . field_identifier) = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (expression_statement "u._16_4_ = puVar6[2];" (assignment_expression "u._16_4_ = puVar6[2]" (field_expression "u._16_4_" identifier . field_identifier) = (subscript_expression "puVar6[2]" identifier [ number_literal ])) ;) (expression_statement "u._20_4_ = puVar6[3];" (assignment_expression "u._20_4_ = puVar6[3]" (field_expression "u._20_4_" identifier . field_identifier) = (subscript_expression "puVar6[3]" identifier [ number_literal ])) ;) (expression_statement "__len = 0x1c;" (assignment_expression "__len = 0x1c" identifier = number_literal) ;) }) (else_clause "else {\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }" else (compound_statement "{\n      u.storage.ss_family = 2;\n      if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }\n    }" { (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) ;) (if_statement "if (local_host_only == 0) {\n        __len = 0x10;\n      }\n      else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }" if (parenthesized_expression "(local_host_only == 0)" ( (binary_expression "local_host_only == 0" identifier == number_literal) )) (compound_statement "{\n        __len = 0x10;\n      }" { (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }" else (compound_statement "{\n        u.sin6.sin6_flowinfo = 0x100007f;\n        __len = 0x10;\n      }" { (expression_statement "u.sin6.sin6_flowinfo = 0x100007f;" (assignment_expression "u.sin6.sin6_flowinfo = 0x100007f" (field_expression "u.sin6.sin6_flowinfo" (field_expression "u.sin6" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\n    hints.ai_flags = 4;\n    hints.ai_socktype = 1;\n    hints.ai_family = local_e8;\n    hints.ai_protocol = 0;\n    hints.ai_addrlen = 0;\n    hints.ai_addr = (sockaddr *)0x0;\n    hints.ai_canonname = (char *)0x0;\n    hints.ai_next = (addrinfo *)0x0;\n    if (99999 < (uint)port) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(portstr,1,6,"%d",port);\n    pcVar3 = host_strduptrim(srcaddr);\n    iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);\n    safefree(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = (sockaddr_union *)ai->ai_addr;\n    __len = ai->ai_addrlen;\n  }" else (compound_statement "{\n    hints.ai_flags = 4;\n    hints.ai_socktype = 1;\n    hints.ai_family = local_e8;\n    hints.ai_protocol = 0;\n    hints.ai_addrlen = 0;\n    hints.ai_addr = (sockaddr *)0x0;\n    hints.ai_canonname = (char *)0x0;\n    hints.ai_next = (addrinfo *)0x0;\n    if (99999 < (uint)port) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(portstr,1,6,"%d",port);\n    pcVar3 = host_strduptrim(srcaddr);\n    iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);\n    safefree(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = (sockaddr_union *)ai->ai_addr;\n    __len = ai->ai_addrlen;\n  }" { (expression_statement "hints.ai_flags = 4;" (assignment_expression "hints.ai_flags = 4" (field_expression "hints.ai_flags" identifier . field_identifier) = number_literal) ;) (expression_statement "hints.ai_socktype = 1;" (assignment_expression "hints.ai_socktype = 1" (field_expression "hints.ai_socktype" identifier . field_identifier) = number_literal) ;) (expression_statement "hints.ai_family = local_e8;" (assignment_expression "hints.ai_family = local_e8" (field_expression "hints.ai_family" identifier . field_identifier) = identifier) ;) (expression_statement "hints.ai_protocol = 0;" (assignment_expression "hints.ai_protocol = 0" (field_expression "hints.ai_protocol" identifier . field_identifier) = number_literal) ;) (expression_statement "hints.ai_addrlen = 0;" (assignment_expression "hints.ai_addrlen = 0" (field_expression "hints.ai_addrlen" identifier . field_identifier) = number_literal) ;) (expression_statement "hints.ai_addr = (sockaddr *)0x0;" (assignment_expression "hints.ai_addr = (sockaddr *)0x0" (field_expression "hints.ai_addr" identifier . field_identifier) = (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "hints.ai_canonname = (char *)0x0;" (assignment_expression "hints.ai_canonname = (char *)0x0" (field_expression "hints.ai_canonname" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "hints.ai_next = (addrinfo *)0x0;" (assignment_expression "hints.ai_next = (addrinfo *)0x0" (field_expression "hints.ai_next" identifier . field_identifier) = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (99999 < (uint)port) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" if (parenthesized_expression "(99999 < (uint)port)" ( (binary_expression "99999 < (uint)port" number_literal < (cast_expression "(uint)port" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" { comment (expression_statement "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");" (call_expression "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" identifier (argument_list "("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" ( (string_literal ""port >= 0 && port <= 99999"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""sk_newlistener"" " string_content ") ))) ;) })) (expression_statement "__sprintf_chk(portstr,1,6,"%d",port);" (call_expression "__sprintf_chk(portstr,1,6,"%d",port)" identifier (argument_list "(portstr,1,6,"%d",port)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "pcVar3 = host_strduptrim(srcaddr);" (assignment_expression "pcVar3 = host_strduptrim(srcaddr)" identifier = (call_expression "host_strduptrim(srcaddr)" identifier (argument_list "(srcaddr)" ( identifier )))) ;) (expression_statement "iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai);" (assignment_expression "iVar2 = getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai)" identifier = (call_expression "getaddrinfo(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai)" identifier (argument_list "(pcVar3,portstr,(addrinfo *)&hints,(addrinfo **)&ai)" ( identifier , identifier , (cast_expression "(addrinfo *)&hints" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&hints" & identifier)) , (cast_expression "(addrinfo **)&ai" ( (type_descriptor "addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&ai" & identifier)) )))) ;) (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (if_statement "if (iVar2 != 0) goto LAB_00064e20;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00064e20;" goto statement_identifier ;)) (expression_statement "__addr = (sockaddr_union *)ai->ai_addr;" (assignment_expression "__addr = (sockaddr_union *)ai->ai_addr" identifier = (cast_expression "(sockaddr_union *)ai->ai_addr" ( (type_descriptor "sockaddr_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "ai->ai_addr" identifier -> field_identifier))) ;) (expression_statement "__len = ai->ai_addrlen;" (assignment_expression "__len = ai->ai_addrlen" identifier = (field_expression "ai->ai_addrlen" identifier -> field_identifier)) ;) }))) (expression_statement "iVar2 = bind(fd,(sockaddr *)&__addr->storage,__len);" (assignment_expression "iVar2 = bind(fd,(sockaddr *)&__addr->storage,__len)" identifier = (call_expression "bind(fd,(sockaddr *)&__addr->storage,__len)" identifier (argument_list "(fd,(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 (ai != (addrinfo *)0x0) {\n    freeaddrinfo((addrinfo *)ai);\n  }" if (parenthesized_expression "(ai != (addrinfo *)0x0)" ( (binary_expression "ai != (addrinfo *)0x0" identifier != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    freeaddrinfo((addrinfo *)ai);\n  }" { (expression_statement "freeaddrinfo((addrinfo *)ai);" (call_expression "freeaddrinfo((addrinfo *)ai)" identifier (argument_list "((addrinfo *)ai)" ( (cast_expression "(addrinfo *)ai" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (if_statement "if ((iVar2 < 0) || (iVar2 = listen(fd,0x80), iVar2 < 0)) {\n    close(fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))) {\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }\n    s->s = fd;\n    uxsel_tell(s);\n    add234(sktree,s);\n  }" if (parenthesized_expression "((iVar2 < 0) || (iVar2 = listen(fd,0x80), iVar2 < 0))" ( (binary_expression "(iVar2 < 0) || (iVar2 = listen(fd,0x80), iVar2 < 0)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar2 = listen(fd,0x80), iVar2 < 0)" ( (comma_expression "iVar2 = listen(fd,0x80), iVar2 < 0" (assignment_expression "iVar2 = listen(fd,0x80)" identifier = (call_expression "listen(fd,0x80)" identifier (argument_list "(fd,0x80)" ( identifier , number_literal )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    close(fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    s->error = pcVar3;\n  }" { (expression_statement "close(fd);" (call_expression "close(fd)" identifier (argument_list "(fd)" ( identifier ))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "s->error = pcVar3;" (assignment_expression "s->error = pcVar3" (field_expression "s->error" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    if ((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))) {\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }\n    s->s = fd;\n    uxsel_tell(s);\n    add234(sktree,s);\n  }" else (compound_statement "{\n    if ((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))) {\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }\n    s->s = fd;\n    uxsel_tell(s);\n    add234(sktree,s);\n  }" { (if_statement "if ((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))) {\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }" if (parenthesized_expression "((local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0))))" ( (binary_expression "(local_e8 == 10) &&\n       ((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))" (parenthesized_expression "(local_e8 == 10)" ( (binary_expression "local_e8 == 10" identifier == number_literal) )) && (parenthesized_expression "((orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)))" ( (parenthesized_expression "(orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0))" ( (binary_expression "orig_address_family == 0 &&\n        (pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)" (binary_expression "orig_address_family == 0" identifier == number_literal) && (parenthesized_expression "(pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0)" ( (comma_expression "pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1),\n        pSVar4 != (Actual_Socket_conflict)0x0" (assignment_expression "pSVar4 = (Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1)" identifier = (cast_expression "(Actual_Socket_conflict)sk_newlistener(srcaddr,port,plug,local_host_only,1)" ( (type_descriptor "Actual_Socket_conflict" type_identifier) ) (call_expression "sk_newlistener(srcaddr,port,plug,local_host_only,1)" identifier (argument_list "(srcaddr,port,plug,local_host_only,1)" ( identifier , identifier , identifier , identifier , number_literal ))))) , (binary_expression "pSVar4 != (Actual_Socket_conflict)0x0" identifier != (cast_expression "(Actual_Socket_conflict)0x0" ( (type_descriptor "Actual_Socket_conflict" type_identifier) ) number_literal))) ))) )) ))) )) (compound_statement "{\n      if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }\n      pSVar4->parent = s;\n      s->child = pSVar4;\n    }" { (if_statement "if (pSVar4->error != (char *)0x0) {\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }" if (parenthesized_expression "(pSVar4->error != (char *)0x0)" ( (binary_expression "pSVar4->error != (char *)0x0" (field_expression "pSVar4->error" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        close(fd);\n        safefree(s);\n        s = pSVar4;\n        goto LAB_00064df5;\n      }" { (expression_statement "close(fd);" (call_expression "close(fd)" identifier (argument_list "(fd)" ( identifier ))) ;) (expression_statement "safefree(s);" (call_expression "safefree(s)" identifier (argument_list "(s)" ( identifier ))) ;) (expression_statement "s = pSVar4;" (assignment_expression "s = pSVar4" identifier = identifier) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) (expression_statement "pSVar4->parent = s;" (assignment_expression "pSVar4->parent = s" (field_expression "pSVar4->parent" identifier -> field_identifier) = identifier) ;) (expression_statement "s->child = pSVar4;" (assignment_expression "s->child = pSVar4" (field_expression "s->child" identifier -> field_identifier) = identifier) ;) })) (expression_statement "s->s = fd;" (assignment_expression "s->s = fd" (field_expression "s->s" identifier -> field_identifier) = identifier) ;) (expression_statement "uxsel_tell(s);" (call_expression "uxsel_tell(s)" identifier (argument_list "(s)" ( identifier ))) ;) (expression_statement "add234(sktree,s);" (call_expression "add234(sktree,s)" identifier (argument_list "(sktree,s)" ( identifier , identifier ))) ;) }))) (labeled_statement "LAB_00064df5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return &s->fn;" return (pointer_expression "&s->fn" & (field_expression "s->fn" identifier -> field_identifier)) ;) })))
(translation_unit "undefined4 * FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\n  }\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" * (function_declarator "FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "socklen_t __len;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "sockaddr *__addr;" type_identifier (pointer_declarator "*__addr" * identifier) ;) (declaration "sockaddr *psVar6;" type_identifier (pointer_declarator "*psVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "int local_e8;" primitive_type identifier ;) (declaration "addrinfo *local_d0;" type_identifier (pointer_declarator "*local_d0" * identifier) ;) (declaration "undefined4 local_cc;" type_identifier identifier ;) (declaration "addrinfo local_c8;" type_identifier identifier ;) (declaration "sockaddr local_a8;" type_identifier identifier ;) (declaration "undefined4 local_98;" type_identifier identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "char local_26 [6];" primitive_type (array_declarator "local_26 [6]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x64b09;" (assignment_expression "uStack_14 = 0x64b09" 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 "local_d0 = (addrinfo *)0x0;" (assignment_expression "local_d0 = (addrinfo *)0x0" identifier = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_cc = 1;" (assignment_expression "local_cc = 1" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0001c990(1,0x70);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001c990(1,0x70)" identifier = (cast_expression "(undefined4 *)FUN_0001c990(1,0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(1,0x70)" identifier (argument_list "(1,0x70)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar1 = &PTR_FUN_000a5240;" (assignment_expression "*puVar1 = &PTR_FUN_000a5240" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_000a5240" & identifier)) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = param_3;" (assignment_expression "puVar1[3] = param_3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0001c780(puVar1 + 4);" (call_expression "FUN_0001c780(puVar1 + 4)" identifier (argument_list "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) ))) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xc] = 0;" (assignment_expression "puVar1[0xc] = 0" (subscript_expression "puVar1[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[10] = param_4;" (assignment_expression "puVar1[10] = param_4" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[0x11] = 0;" (assignment_expression "puVar1[0x11] = 0" (subscript_expression "puVar1[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x1b] = 0;" (assignment_expression "puVar1[0x1b] = 0" (subscript_expression "puVar1[0x1b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x1a] = 0;" (assignment_expression "puVar1[0x1a] = 0" (subscript_expression "puVar1[0x1a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xd] = 0;" (assignment_expression "puVar1[0xd] = 0" (subscript_expression "puVar1[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0xf] = 0;" (assignment_expression "puVar1[0xf] = 0" (subscript_expression "puVar1[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x10] = 0;" (assignment_expression "puVar1[0x10] = 0" (subscript_expression "puVar1[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x12] = 1;" (assignment_expression "puVar1[0x12] = 1" (subscript_expression "puVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x17] = 0;" (assignment_expression "puVar1[0x17] = 0" (subscript_expression "puVar1[0x17]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0xffffffff;" (assignment_expression "puVar1[2] = 0xffffffff" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }" if (parenthesized_expression "((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0))" ( (binary_expression "(param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)" (parenthesized_expression "(param_5 == 1)" ( (binary_expression "param_5 == 1" identifier == number_literal) )) || (parenthesized_expression "(__fd = socket(10,1,0), __fd < 0)" ( (comma_expression "__fd = socket(10,1,0), __fd < 0" (assignment_expression "__fd = socket(10,1,0)" identifier = (call_expression "socket(10,1,0)" identifier (argument_list "(10,1,0)" ( number_literal , number_literal , number_literal )))) , (binary_expression "__fd < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }" { (expression_statement "__fd = socket(2,1,0);" (assignment_expression "__fd = socket(2,1,0)" identifier = (call_expression "socket(2,1,0)" identifier (argument_list "(2,1,0)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "local_e8 = 2;" (assignment_expression "local_e8 = 2" identifier = number_literal) ;) (if_statement "if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) }) (else_clause "else {\n    local_e8 = 10;\n  }" else (compound_statement "{\n    local_e8 = 10;\n  }" { (expression_statement "local_e8 = 10;" (assignment_expression "local_e8 = 10" identifier = number_literal) ;) }))) (expression_statement "FUN_00063340(__fd);" (call_expression "FUN_00063340(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "puVar1[0xe] = 0;" (assignment_expression "puVar1[0xe] = 0" (subscript_expression "puVar1[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = setsockopt(__fd,1,2,&local_cc,4);" (assignment_expression "iVar2 = setsockopt(__fd,1,2,&local_cc,4)" identifier = (call_expression "setsockopt(__fd,1,2,&local_cc,4)" identifier (argument_list "(__fd,1,2,&local_cc,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_cc" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) (if_statement "if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }" { (labeled_statement "LAB_00064e20:\n    __addr = &local_a8;" statement_identifier : (expression_statement "__addr = &local_a8;" (assignment_expression "__addr = &local_a8" identifier = (pointer_expression "&local_a8" & identifier)) ;)) (expression_statement "psVar6 = __addr;" (assignment_expression "psVar6 = __addr" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }" { (expression_statement "psVar6->sa_family = 0;" (assignment_expression "psVar6->sa_family = 0" (field_expression "psVar6->sa_family" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar6->sa_data[0] = '\0';" (assignment_expression "psVar6->sa_data[0] = '\0'" (subscript_expression "psVar6->sa_data[0]" (field_expression "psVar6->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar6->sa_data[1] = '\0';" (assignment_expression "psVar6->sa_data[1] = '\0'" (subscript_expression "psVar6->sa_data[1]" (field_expression "psVar6->sa_data" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);" (assignment_expression "psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4)" identifier = (cast_expression "(sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar6 + (uint)bVar7 * -8 + 4)" ( (binary_expression "(int)psVar6 + (uint)bVar7 * -8 + 4" (binary_expression "(int)psVar6 + (uint)bVar7 * -8" (cast_expression "(int)psVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar7 * -8" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;" (assignment_expression "local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8" (field_expression "local_a8.sa_data._0_2_" (field_expression "local_a8.sa_data" identifier . field_identifier) . field_identifier) = (binary_expression "(ushort)param_2 << 8 | (ushort)param_2 >> 8" (binary_expression "(ushort)param_2 << 8" (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier) << number_literal) | (binary_expression "(ushort)param_2 >> 8" (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier) >> number_literal))) ;) (if_statement "if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" if (parenthesized_expression "(local_e8 == 10)" ( (binary_expression "local_e8 == 10" identifier == number_literal) )) (compound_statement "{\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }" { (expression_statement "local_a8.sa_family = 10;" (assignment_expression "local_a8.sa_family = 10" (field_expression "local_a8.sa_family" identifier . field_identifier) = number_literal) ;) (expression_statement "pcVar3 = PTR_in6addr_loopback_000a4fb8;" (assignment_expression "pcVar3 = PTR_in6addr_loopback_000a4fb8" identifier = identifier) ;) (if_statement "if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }" { (expression_statement "pcVar3 = PTR_in6addr_any_000a4fb0;" (assignment_expression "pcVar3 = PTR_in6addr_any_000a4fb0" identifier = identifier) ;) })) (expression_statement "local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;" (assignment_expression "local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3" (field_expression "local_a8.sa_data._6_4_" (field_expression "local_a8.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)pcVar3" * (cast_expression "(undefined4 *)pcVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);" (assignment_expression "local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4)" (field_expression "local_a8.sa_data._10_4_" (field_expression "local_a8.sa_data" identifier . field_identifier) . field_identifier) = (pointer_expression "*(undefined4 *)(pcVar3 + 4)" * (cast_expression "(undefined4 *)(pcVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 4)" ( (binary_expression "pcVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_98 = *(undefined4 *)(pcVar3 + 8);" (assignment_expression "local_98 = *(undefined4 *)(pcVar3 + 8)" identifier = (pointer_expression "*(undefined4 *)(pcVar3 + 8)" * (cast_expression "(undefined4 *)(pcVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 8)" ( (binary_expression "pcVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_94 = *(undefined4 *)(pcVar3 + 0xc);" (assignment_expression "local_94 = *(undefined4 *)(pcVar3 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(pcVar3 + 0xc)" * (cast_expression "(undefined4 *)(pcVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 0xc)" ( (binary_expression "pcVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "__len = 0x1c;" (assignment_expression "__len = 0x1c" identifier = number_literal) ;) }) (else_clause "else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" else (compound_statement "{\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" { (expression_statement "local_a8.sa_family = 2;" (assignment_expression "local_a8.sa_family = 2" (field_expression "local_a8.sa_family" identifier . field_identifier) = number_literal) ;) (if_statement "if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        __len = 0x10;\n      }" { (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" else (compound_statement "{\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" { (expression_statement "local_a8.sa_data[2] = '\x7f';" (assignment_expression "local_a8.sa_data[2] = '\x7f'" (subscript_expression "local_a8.sa_data[2]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\x7f'" ' escape_sequence ')) ;) (expression_statement "local_a8.sa_data[3] = '\0';" (assignment_expression "local_a8.sa_data[3] = '\0'" (subscript_expression "local_a8.sa_data[3]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_a8.sa_data[4] = '\0';" (assignment_expression "local_a8.sa_data[4] = '\0'" (subscript_expression "local_a8.sa_data[4]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_a8.sa_data[5] = '\x01';" (assignment_expression "local_a8.sa_data[5] = '\x01'" (subscript_expression "local_a8.sa_data[5]" (field_expression "local_a8.sa_data" identifier . field_identifier) [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" else (compound_statement "{\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" { (expression_statement "local_c8.ai_flags = 4;" (assignment_expression "local_c8.ai_flags = 4" (field_expression "local_c8.ai_flags" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_socktype = 1;" (assignment_expression "local_c8.ai_socktype = 1" (field_expression "local_c8.ai_socktype" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_family = local_e8;" (assignment_expression "local_c8.ai_family = local_e8" (field_expression "local_c8.ai_family" identifier . field_identifier) = identifier) ;) (expression_statement "local_c8.ai_protocol = 0;" (assignment_expression "local_c8.ai_protocol = 0" (field_expression "local_c8.ai_protocol" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_addrlen = 0;" (assignment_expression "local_c8.ai_addrlen = 0" (field_expression "local_c8.ai_addrlen" identifier . field_identifier) = number_literal) ;) (expression_statement "local_c8.ai_addr = (sockaddr *)0x0;" (assignment_expression "local_c8.ai_addr = (sockaddr *)0x0" (field_expression "local_c8.ai_addr" identifier . field_identifier) = (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_c8.ai_canonname = (char *)0x0;" (assignment_expression "local_c8.ai_canonname = (char *)0x0" (field_expression "local_c8.ai_canonname" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_c8.ai_next = (addrinfo *)0x0;" (assignment_expression "local_c8.ai_next = (addrinfo *)0x0" (field_expression "local_c8.ai_next" identifier . field_identifier) = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" if (parenthesized_expression "(99999 < param_2)" ( (binary_expression "99999 < param_2" number_literal < identifier) )) (compound_statement "{\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" { (expression_statement "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");" (call_expression "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" identifier (argument_list "("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" ( (string_literal ""port >= 0 && port <= 99999"" " string_content ") , (string_literal ""unix/uxnet.c"" " string_content ") , number_literal , (string_literal ""sk_newlistener"" " string_content ") ))) ;) })) (expression_statement "__sprintf_chk(local_26,1,6,"%d",param_2);" (call_expression "__sprintf_chk(local_26,1,6,"%d",param_2)" identifier (argument_list "(local_26,1,6,"%d",param_2)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "pcVar3 = (char *)FUN_0001d050(param_1);" (assignment_expression "pcVar3 = (char *)FUN_0001d050(param_1)" identifier = (cast_expression "(char *)FUN_0001d050(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001d050(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);" (assignment_expression "iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0)" identifier = (call_expression "getaddrinfo(pcVar3,local_26,&local_c8,&local_d0)" identifier (argument_list "(pcVar3,local_26,&local_c8,&local_d0)" ( identifier , identifier , (pointer_expression "&local_c8" & identifier) , (pointer_expression "&local_d0" & identifier) )))) ;) (expression_statement "FUN_0001d220(pcVar3);" (call_expression "FUN_0001d220(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (if_statement "if (iVar2 != 0) goto LAB_00064e20;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00064e20;" goto statement_identifier ;)) (expression_statement "__addr = local_d0->ai_addr;" (assignment_expression "__addr = local_d0->ai_addr" identifier = (field_expression "local_d0->ai_addr" identifier -> field_identifier)) ;) (expression_statement "__len = local_d0->ai_addrlen;" (assignment_expression "__len = local_d0->ai_addrlen" identifier = (field_expression "local_d0->ai_addrlen" identifier -> field_identifier)) ;) }))) (expression_statement "iVar2 = bind(__fd,__addr,__len);" (assignment_expression "iVar2 = bind(__fd,__addr,__len)" identifier = (call_expression "bind(__fd,__addr,__len)" identifier (argument_list "(__fd,__addr,__len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }" if (parenthesized_expression "(local_d0 != (addrinfo *)0x0)" ( (binary_expression "local_d0 != (addrinfo *)0x0" identifier != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    freeaddrinfo(local_d0);\n  }" { (expression_statement "freeaddrinfo(local_d0);" (call_expression "freeaddrinfo(local_d0)" identifier (argument_list "(local_d0)" ( identifier ))) ;) })) (if_statement "if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" if (parenthesized_expression "((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0))" ( (binary_expression "(iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar2 = listen(__fd,0x80), iVar2 < 0)" ( (comma_expression "iVar2 = listen(__fd,0x80), iVar2 < 0" (assignment_expression "iVar2 = listen(__fd,0x80)" identifier = (call_expression "listen(__fd,0x80)" identifier (argument_list "(__fd,0x80)" ( identifier , number_literal )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" else (compound_statement "{\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" { (if_statement "if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }" if (parenthesized_expression "((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0))))" ( (binary_expression "(local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))" (parenthesized_expression "(local_e8 == 10)" ( (binary_expression "local_e8 == 10" identifier == number_literal) )) && (parenthesized_expression "((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))" ( (parenthesized_expression "(param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0))" ( (binary_expression "param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)" (binary_expression "param_5 == 0" identifier == number_literal) && (parenthesized_expression "(puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)" ( (comma_expression "puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0" (assignment_expression "puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1)" identifier = (cast_expression "(undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00064b00(param_1,param_2,param_3,param_4,1)" identifier (argument_list "(param_1,param_2,param_3,param_4,1)" ( identifier , identifier , identifier , identifier , number_literal ))))) , (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) ))) )) (compound_statement "{\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }" { (if_statement "if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }" if (parenthesized_expression "(puVar4[1] != 0)" ( (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "FUN_0001d220(puVar1);" (call_expression "FUN_0001d220(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1 = puVar4;" (assignment_expression "puVar1 = puVar4" identifier = identifier) ;) (goto_statement "goto LAB_00064df5;" goto statement_identifier ;) })) (expression_statement "puVar4[0x1a] = puVar1;" (assignment_expression "puVar4[0x1a] = puVar1" (subscript_expression "puVar4[0x1a]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[0x1b] = puVar4;" (assignment_expression "puVar1[0x1b] = puVar4" (subscript_expression "puVar1[0x1b]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "puVar1[2] = __fd;" (assignment_expression "puVar1[2] = __fd" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00063bb0();" (call_expression "FUN_00063bb0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00061320(DAT_000a5a40,puVar1);" (call_expression "FUN_00061320(DAT_000a5a40,puVar1)" identifier (argument_list "(DAT_000a5a40,puVar1)" ( identifier , identifier ))) ;) }))) (labeled_statement "LAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\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                    \n    FUN_0006dad0();\n  }" { (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT )))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 (field_expression (field_expression IDENT . field_identifier) . field_identifier) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT))) ;) (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 IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (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 IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (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 IDENT = LIT) ;) }))) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (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 (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\n  }\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" (* "*") (function_declarator "FUN_00064b00(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" (identifier "FUN_00064b00") (parameter_list "(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  socklen_t __len;\n  int *piVar5;\n  sockaddr *__addr;\n  sockaddr *psVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  int local_e8;\n  addrinfo *local_d0;\n  undefined4 local_cc;\n  addrinfo local_c8;\n  sockaddr local_a8;\n  undefined4 local_98;\n  undefined4 local_94;\n  char local_26 [6];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x64b09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_d0 = (addrinfo *)0x0;\n  local_cc = 1;\n  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);\n  *puVar1 = &PTR_FUN_000a5240;\n  puVar1[1] = 0;\n  puVar1[3] = param_3;\n  FUN_0001c780(puVar1 + 4);\n  puVar1[8] = 0;\n  puVar1[0xc] = 0;\n  puVar1[9] = 0;\n  puVar1[10] = param_4;\n  puVar1[0x11] = 0;\n  puVar1[0x1b] = 0;\n  puVar1[0x1a] = 0;\n  puVar1[0xd] = 0;\n  puVar1[0xf] = 0;\n  puVar1[0x10] = 0;\n  puVar1[0x12] = 1;\n  puVar1[0x17] = 0;\n  puVar1[2] = 0xffffffff;\n  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }\n  FUN_00063340(__fd);\n  puVar1[0xe] = 0;\n  iVar2 = setsockopt(__fd,1,2,&local_cc,4);\n  if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }\n  if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }\n  iVar2 = bind(__fd,__addr,__len);\n  if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }\n  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }\nLAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\n  }\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "socklen_t __len;" (type_identifier "socklen_t") (identifier "__len") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "sockaddr *__addr;" (type_identifier "sockaddr") (pointer_declarator "*__addr" (* "*") (identifier "__addr")) (; ";")) (declaration "sockaddr *psVar6;" (type_identifier "sockaddr") (pointer_declarator "*psVar6" (* "*") (identifier "psVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "int local_e8;" (primitive_type "int") (identifier "local_e8") (; ";")) (declaration "addrinfo *local_d0;" (type_identifier "addrinfo") (pointer_declarator "*local_d0" (* "*") (identifier "local_d0")) (; ";")) (declaration "undefined4 local_cc;" (type_identifier "undefined4") (identifier "local_cc") (; ";")) (declaration "addrinfo local_c8;" (type_identifier "addrinfo") (identifier "local_c8") (; ";")) (declaration "sockaddr local_a8;" (type_identifier "sockaddr") (identifier "local_a8") (; ";")) (declaration "undefined4 local_98;" (type_identifier "undefined4") (identifier "local_98") (; ";")) (declaration "undefined4 local_94;" (type_identifier "undefined4") (identifier "local_94") (; ";")) (declaration "char local_26 [6];" (primitive_type "char") (array_declarator "local_26 [6]" (identifier "local_26") ([ "[") (number_literal "6") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x64b09;" (assignment_expression "uStack_14 = 0x64b09" (identifier "uStack_14") (= "=") (number_literal "0x64b09")) (; ";")) (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 "local_d0 = (addrinfo *)0x0;" (assignment_expression "local_d0 = (addrinfo *)0x0" (identifier "local_d0") (= "=") (cast_expression "(addrinfo *)0x0" (( "(") (type_descriptor "addrinfo *" (type_identifier "addrinfo") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_cc = 1;" (assignment_expression "local_cc = 1" (identifier "local_cc") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0001c990(1,0x70);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001c990(1,0x70)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0001c990(1,0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001c990(1,0x70)" (identifier "FUN_0001c990") (argument_list "(1,0x70)" (( "(") (number_literal "1") (, ",") (number_literal "0x70") () ")"))))) (; ";")) (expression_statement "*puVar1 = &PTR_FUN_000a5240;" (assignment_expression "*puVar1 = &PTR_FUN_000a5240" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_000a5240" (& "&") (identifier "PTR_FUN_000a5240"))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[3] = param_3;" (assignment_expression "puVar1[3] = param_3" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "FUN_0001c780(puVar1 + 4);" (call_expression "FUN_0001c780(puVar1 + 4)" (identifier "FUN_0001c780") (argument_list "(puVar1 + 4)" (( "(") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0xc] = 0;" (assignment_expression "puVar1[0xc] = 0" (subscript_expression "puVar1[0xc]" (identifier "puVar1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" (identifier "puVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[10] = param_4;" (assignment_expression "puVar1[10] = param_4" (subscript_expression "puVar1[10]" (identifier "puVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar1[0x11] = 0;" (assignment_expression "puVar1[0x11] = 0" (subscript_expression "puVar1[0x11]" (identifier "puVar1") ([ "[") (number_literal "0x11") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0x1b] = 0;" (assignment_expression "puVar1[0x1b] = 0" (subscript_expression "puVar1[0x1b]" (identifier "puVar1") ([ "[") (number_literal "0x1b") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0x1a] = 0;" (assignment_expression "puVar1[0x1a] = 0" (subscript_expression "puVar1[0x1a]" (identifier "puVar1") ([ "[") (number_literal "0x1a") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0xd] = 0;" (assignment_expression "puVar1[0xd] = 0" (subscript_expression "puVar1[0xd]" (identifier "puVar1") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0xf] = 0;" (assignment_expression "puVar1[0xf] = 0" (subscript_expression "puVar1[0xf]" (identifier "puVar1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0x10] = 0;" (assignment_expression "puVar1[0x10] = 0" (subscript_expression "puVar1[0x10]" (identifier "puVar1") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0x12] = 1;" (assignment_expression "puVar1[0x12] = 1" (subscript_expression "puVar1[0x12]" (identifier "puVar1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar1[0x17] = 0;" (assignment_expression "puVar1[0x17] = 0" (subscript_expression "puVar1[0x17]" (identifier "puVar1") ([ "[") (number_literal "0x17") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0xffffffff;" (assignment_expression "puVar1[2] = 0xffffffff" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }\n  else {\n    local_e8 = 10;\n  }" (if "if") (parenthesized_expression "((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0))" (( "(") (binary_expression "(param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)" (parenthesized_expression "(param_5 == 1)" (( "(") (binary_expression "param_5 == 1" (identifier "param_5") (== "==") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(__fd = socket(10,1,0), __fd < 0)" (( "(") (comma_expression "__fd = socket(10,1,0), __fd < 0" (assignment_expression "__fd = socket(10,1,0)" (identifier "__fd") (= "=") (call_expression "socket(10,1,0)" (identifier "socket") (argument_list "(10,1,0)" (( "(") (number_literal "10") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "__fd < 0" (identifier "__fd") (< "<") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    __fd = socket(2,1,0);\n    local_e8 = 2;\n    if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }\n  }" ({ "{") (expression_statement "__fd = socket(2,1,0);" (assignment_expression "__fd = socket(2,1,0)" (identifier "__fd") (= "=") (call_expression "socket(2,1,0)" (identifier "socket") (argument_list "(2,1,0)" (( "(") (number_literal "2") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_e8 = 2;" (assignment_expression "local_e8 = 2" (identifier "local_e8") (= "=") (number_literal "2")) (; ";")) (if_statement "if (__fd < 0) {\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }" (if "if") (parenthesized_expression "(__fd < 0)" (( "(") (binary_expression "__fd < 0" (identifier "__fd") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar3 = strerror(*piVar5);\n      puVar1[1] = pcVar3;\n      goto LAB_00064df5;\n    }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar5)" (identifier "strerror") (argument_list "(*piVar5)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) () ")")))) (; ";")) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "pcVar3")) (; ";")) (goto_statement "goto LAB_00064df5;" (goto "goto") (statement_identifier "LAB_00064df5") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    local_e8 = 10;\n  }" (else "else") (compound_statement "{\n    local_e8 = 10;\n  }" ({ "{") (expression_statement "local_e8 = 10;" (assignment_expression "local_e8 = 10" (identifier "local_e8") (= "=") (number_literal "10")) (; ";")) (} "}")))) (expression_statement "FUN_00063340(__fd);" (call_expression "FUN_00063340(__fd)" (identifier "FUN_00063340") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (expression_statement "puVar1[0xe] = 0;" (assignment_expression "puVar1[0xe] = 0" (subscript_expression "puVar1[0xe]" (identifier "puVar1") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = setsockopt(__fd,1,2,&local_cc,4);" (assignment_expression "iVar2 = setsockopt(__fd,1,2,&local_cc,4)" (identifier "iVar2") (= "=") (call_expression "setsockopt(__fd,1,2,&local_cc,4)" (identifier "setsockopt") (argument_list "(__fd,1,2,&local_cc,4)" (( "(") (identifier "__fd") (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_cc" (& "&") (identifier "local_cc")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n    close(__fd);\n    goto LAB_00064df5;\n  }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar5)" (identifier "strerror") (argument_list "(*piVar5)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) () ")")))) (; ";")) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "pcVar3")) (; ";")) (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (goto_statement "goto LAB_00064df5;" (goto "goto") (statement_identifier "LAB_00064df5") (; ";")) (} "}"))) (if_statement "if (param_1 == 0) {\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }\n  else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00064e20:\n    __addr = &local_a8;\n    psVar6 = __addr;\n    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }\n    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;\n    if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }\n  }" ({ "{") (labeled_statement "LAB_00064e20:\n    __addr = &local_a8;" (statement_identifier "LAB_00064e20") (: ":") (expression_statement "__addr = &local_a8;" (assignment_expression "__addr = &local_a8" (identifier "__addr") (= "=") (pointer_expression "&local_a8" (& "&") (identifier "local_a8"))) (; ";"))) (expression_statement "psVar6 = __addr;" (assignment_expression "psVar6 = __addr" (identifier "psVar6") (= "=") (identifier "__addr")) (; ";")) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }" (for "for") (( "(") (assignment_expression "iVar2 = 0x20" (identifier "iVar2") (= "=") (number_literal "0x20")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      psVar6->sa_family = 0;\n      psVar6->sa_data[0] = '\0';\n      psVar6->sa_data[1] = '\0';\n      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);\n    }" ({ "{") (expression_statement "psVar6->sa_family = 0;" (assignment_expression "psVar6->sa_family = 0" (field_expression "psVar6->sa_family" (identifier "psVar6") (-> "->") (field_identifier "sa_family")) (= "=") (number_literal "0")) (; ";")) (expression_statement "psVar6->sa_data[0] = '\0';" (assignment_expression "psVar6->sa_data[0] = '\0'" (subscript_expression "psVar6->sa_data[0]" (field_expression "psVar6->sa_data" (identifier "psVar6") (-> "->") (field_identifier "sa_data")) ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "psVar6->sa_data[1] = '\0';" (assignment_expression "psVar6->sa_data[1] = '\0'" (subscript_expression "psVar6->sa_data[1]" (field_expression "psVar6->sa_data" (identifier "psVar6") (-> "->") (field_identifier "sa_data")) ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);" (assignment_expression "psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4)" (identifier "psVar6") (= "=") (cast_expression "(sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4)" (( "(") (type_descriptor "sockaddr *" (type_identifier "sockaddr") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar6 + (uint)bVar7 * -8 + 4)" (( "(") (binary_expression "(int)psVar6 + (uint)bVar7 * -8 + 4" (binary_expression "(int)psVar6 + (uint)bVar7 * -8" (cast_expression "(int)psVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar6")) (+ "+") (binary_expression "(uint)bVar7 * -8" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-8"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}"))) (expression_statement "local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;" (assignment_expression "local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8" (field_expression "local_a8.sa_data._0_2_" (field_expression "local_a8.sa_data" (identifier "local_a8") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_0_2_")) (= "=") (binary_expression "(ushort)param_2 << 8 | (ushort)param_2 >> 8" (binary_expression "(ushort)param_2 << 8" (cast_expression "(ushort)param_2" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "param_2")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(ushort)param_2 >> 8" (cast_expression "(ushort)param_2" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "param_2")) (>> ">>") (number_literal "8")))) (; ";")) (if_statement "if (local_e8 == 10) {\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }\n    else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" (if "if") (parenthesized_expression "(local_e8 == 10)" (( "(") (binary_expression "local_e8 == 10" (identifier "local_e8") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n      local_a8.sa_family = 10;\n      pcVar3 = PTR_in6addr_loopback_000a4fb8;\n      if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }\n      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;\n      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);\n      local_98 = *(undefined4 *)(pcVar3 + 8);\n      local_94 = *(undefined4 *)(pcVar3 + 0xc);\n      __len = 0x1c;\n    }" ({ "{") (expression_statement "local_a8.sa_family = 10;" (assignment_expression "local_a8.sa_family = 10" (field_expression "local_a8.sa_family" (identifier "local_a8") (. ".") (field_identifier "sa_family")) (= "=") (number_literal "10")) (; ";")) (expression_statement "pcVar3 = PTR_in6addr_loopback_000a4fb8;" (assignment_expression "pcVar3 = PTR_in6addr_loopback_000a4fb8" (identifier "pcVar3") (= "=") (identifier "PTR_in6addr_loopback_000a4fb8")) (; ";")) (if_statement "if (param_4 == 0) {\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar3 = PTR_in6addr_any_000a4fb0;\n      }" ({ "{") (expression_statement "pcVar3 = PTR_in6addr_any_000a4fb0;" (assignment_expression "pcVar3 = PTR_in6addr_any_000a4fb0" (identifier "pcVar3") (= "=") (identifier "PTR_in6addr_any_000a4fb0")) (; ";")) (} "}"))) (expression_statement "local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;" (assignment_expression "local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3" (field_expression "local_a8.sa_data._6_4_" (field_expression "local_a8.sa_data" (identifier "local_a8") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_6_4_")) (= "=") (pointer_expression "*(undefined4 *)pcVar3" (* "*") (cast_expression "(undefined4 *)pcVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pcVar3")))) (; ";")) (expression_statement "local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);" (assignment_expression "local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4)" (field_expression "local_a8.sa_data._10_4_" (field_expression "local_a8.sa_data" (identifier "local_a8") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_10_4_")) (= "=") (pointer_expression "*(undefined4 *)(pcVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(pcVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar3 + 4)" (( "(") (binary_expression "pcVar3 + 4" (identifier "pcVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_98 = *(undefined4 *)(pcVar3 + 8);" (assignment_expression "local_98 = *(undefined4 *)(pcVar3 + 8)" (identifier "local_98") (= "=") (pointer_expression "*(undefined4 *)(pcVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(pcVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar3 + 8)" (( "(") (binary_expression "pcVar3 + 8" (identifier "pcVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_94 = *(undefined4 *)(pcVar3 + 0xc);" (assignment_expression "local_94 = *(undefined4 *)(pcVar3 + 0xc)" (identifier "local_94") (= "=") (pointer_expression "*(undefined4 *)(pcVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(pcVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar3 + 0xc)" (( "(") (binary_expression "pcVar3 + 0xc" (identifier "pcVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "__len = 0x1c;" (assignment_expression "__len = 0x1c" (identifier "__len") (= "=") (number_literal "0x1c")) (; ";")) (} "}")) (else_clause "else {\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" (else "else") (compound_statement "{\n      local_a8.sa_family = 2;\n      if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }\n    }" ({ "{") (expression_statement "local_a8.sa_family = 2;" (assignment_expression "local_a8.sa_family = 2" (field_expression "local_a8.sa_family" (identifier "local_a8") (. ".") (field_identifier "sa_family")) (= "=") (number_literal "2")) (; ";")) (if_statement "if (param_4 == 0) {\n        __len = 0x10;\n      }\n      else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        __len = 0x10;\n      }" ({ "{") (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" (identifier "__len") (= "=") (number_literal "0x10")) (; ";")) (} "}")) (else_clause "else {\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" (else "else") (compound_statement "{\n        local_a8.sa_data[2] = '\x7f';\n        local_a8.sa_data[3] = '\0';\n        local_a8.sa_data[4] = '\0';\n        local_a8.sa_data[5] = '\x01';\n        __len = 0x10;\n      }" ({ "{") (expression_statement "local_a8.sa_data[2] = '\x7f';" (assignment_expression "local_a8.sa_data[2] = '\x7f'" (subscript_expression "local_a8.sa_data[2]" (field_expression "local_a8.sa_data" (identifier "local_a8") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\x7f'" (' "'") (escape_sequence "\x7f") (' "'"))) (; ";")) (expression_statement "local_a8.sa_data[3] = '\0';" (assignment_expression "local_a8.sa_data[3] = '\0'" (subscript_expression "local_a8.sa_data[3]" (field_expression "local_a8.sa_data" (identifier "local_a8") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_a8.sa_data[4] = '\0';" (assignment_expression "local_a8.sa_data[4] = '\0'" (subscript_expression "local_a8.sa_data[4]" (field_expression "local_a8.sa_data" (identifier "local_a8") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_a8.sa_data[5] = '\x01';" (assignment_expression "local_a8.sa_data[5] = '\x01'" (subscript_expression "local_a8.sa_data[5]" (field_expression "local_a8.sa_data" (identifier "local_a8") (. ".") (field_identifier "sa_data")) ([ "[") (number_literal "5") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (expression_statement "__len = 0x10;" (assignment_expression "__len = 0x10" (identifier "__len") (= "=") (number_literal "0x10")) (; ";")) (} "}")))) (} "}")))) (} "}")) (else_clause "else {\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" (else "else") (compound_statement "{\n    local_c8.ai_flags = 4;\n    local_c8.ai_socktype = 1;\n    local_c8.ai_family = local_e8;\n    local_c8.ai_protocol = 0;\n    local_c8.ai_addrlen = 0;\n    local_c8.ai_addr = (sockaddr *)0x0;\n    local_c8.ai_canonname = (char *)0x0;\n    local_c8.ai_next = (addrinfo *)0x0;\n    if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }\n    __sprintf_chk(local_26,1,6,"%d",param_2);\n    pcVar3 = (char *)FUN_0001d050(param_1);\n    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);\n    FUN_0001d220(pcVar3);\n    if (iVar2 != 0) goto LAB_00064e20;\n    __addr = local_d0->ai_addr;\n    __len = local_d0->ai_addrlen;\n  }" ({ "{") (expression_statement "local_c8.ai_flags = 4;" (assignment_expression "local_c8.ai_flags = 4" (field_expression "local_c8.ai_flags" (identifier "local_c8") (. ".") (field_identifier "ai_flags")) (= "=") (number_literal "4")) (; ";")) (expression_statement "local_c8.ai_socktype = 1;" (assignment_expression "local_c8.ai_socktype = 1" (field_expression "local_c8.ai_socktype" (identifier "local_c8") (. ".") (field_identifier "ai_socktype")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_c8.ai_family = local_e8;" (assignment_expression "local_c8.ai_family = local_e8" (field_expression "local_c8.ai_family" (identifier "local_c8") (. ".") (field_identifier "ai_family")) (= "=") (identifier "local_e8")) (; ";")) (expression_statement "local_c8.ai_protocol = 0;" (assignment_expression "local_c8.ai_protocol = 0" (field_expression "local_c8.ai_protocol" (identifier "local_c8") (. ".") (field_identifier "ai_protocol")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_c8.ai_addrlen = 0;" (assignment_expression "local_c8.ai_addrlen = 0" (field_expression "local_c8.ai_addrlen" (identifier "local_c8") (. ".") (field_identifier "ai_addrlen")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_c8.ai_addr = (sockaddr *)0x0;" (assignment_expression "local_c8.ai_addr = (sockaddr *)0x0" (field_expression "local_c8.ai_addr" (identifier "local_c8") (. ".") (field_identifier "ai_addr")) (= "=") (cast_expression "(sockaddr *)0x0" (( "(") (type_descriptor "sockaddr *" (type_identifier "sockaddr") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_c8.ai_canonname = (char *)0x0;" (assignment_expression "local_c8.ai_canonname = (char *)0x0" (field_expression "local_c8.ai_canonname" (identifier "local_c8") (. ".") (field_identifier "ai_canonname")) (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_c8.ai_next = (addrinfo *)0x0;" (assignment_expression "local_c8.ai_next = (addrinfo *)0x0" (field_expression "local_c8.ai_next" (identifier "local_c8") (. ".") (field_identifier "ai_next")) (= "=") (cast_expression "(addrinfo *)0x0" (( "(") (type_descriptor "addrinfo *" (type_identifier "addrinfo") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (99999 < param_2) {\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" (if "if") (parenthesized_expression "(99999 < param_2)" (( "(") (binary_expression "99999 < param_2" (number_literal "99999") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");\n    }" ({ "{") (expression_statement "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");" (call_expression "__assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" (identifier "__assert_fail") (argument_list "("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener")" (( "(") (string_literal ""port >= 0 && port <= 99999"" (" """) (string_content "port >= 0 && port <= 99999") (" """)) (, ",") (string_literal ""unix/uxnet.c"" (" """) (string_content "unix/uxnet.c") (" """)) (, ",") (number_literal "0x392") (, ",") (string_literal ""sk_newlistener"" (" """) (string_content "sk_newlistener") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__sprintf_chk(local_26,1,6,"%d",param_2);" (call_expression "__sprintf_chk(local_26,1,6,"%d",param_2)" (identifier "__sprintf_chk") (argument_list "(local_26,1,6,"%d",param_2)" (( "(") (identifier "local_26") (, ",") (number_literal "1") (, ",") (number_literal "6") (, ",") (string_literal ""%d"" (" """) (string_content "%d") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "pcVar3 = (char *)FUN_0001d050(param_1);" (assignment_expression "pcVar3 = (char *)FUN_0001d050(param_1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_0001d050(param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001d050(param_1)" (identifier "FUN_0001d050") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);" (assignment_expression "iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0)" (identifier "iVar2") (= "=") (call_expression "getaddrinfo(pcVar3,local_26,&local_c8,&local_d0)" (identifier "getaddrinfo") (argument_list "(pcVar3,local_26,&local_c8,&local_d0)" (( "(") (identifier "pcVar3") (, ",") (identifier "local_26") (, ",") (pointer_expression "&local_c8" (& "&") (identifier "local_c8")) (, ",") (pointer_expression "&local_d0" (& "&") (identifier "local_d0")) () ")")))) (; ";")) (expression_statement "FUN_0001d220(pcVar3);" (call_expression "FUN_0001d220(pcVar3)" (identifier "FUN_0001d220") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_00064e20;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00064e20;" (goto "goto") (statement_identifier "LAB_00064e20") (; ";"))) (expression_statement "__addr = local_d0->ai_addr;" (assignment_expression "__addr = local_d0->ai_addr" (identifier "__addr") (= "=") (field_expression "local_d0->ai_addr" (identifier "local_d0") (-> "->") (field_identifier "ai_addr"))) (; ";")) (expression_statement "__len = local_d0->ai_addrlen;" (assignment_expression "__len = local_d0->ai_addrlen" (identifier "__len") (= "=") (field_expression "local_d0->ai_addrlen" (identifier "local_d0") (-> "->") (field_identifier "ai_addrlen"))) (; ";")) (} "}")))) (expression_statement "iVar2 = bind(__fd,__addr,__len);" (assignment_expression "iVar2 = bind(__fd,__addr,__len)" (identifier "iVar2") (= "=") (call_expression "bind(__fd,__addr,__len)" (identifier "bind") (argument_list "(__fd,__addr,__len)" (( "(") (identifier "__fd") (, ",") (identifier "__addr") (, ",") (identifier "__len") () ")")))) (; ";")) (if_statement "if (local_d0 != (addrinfo *)0x0) {\n    freeaddrinfo(local_d0);\n  }" (if "if") (parenthesized_expression "(local_d0 != (addrinfo *)0x0)" (( "(") (binary_expression "local_d0 != (addrinfo *)0x0" (identifier "local_d0") (!= "!=") (cast_expression "(addrinfo *)0x0" (( "(") (type_descriptor "addrinfo *" (type_identifier "addrinfo") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    freeaddrinfo(local_d0);\n  }" ({ "{") (expression_statement "freeaddrinfo(local_d0);" (call_expression "freeaddrinfo(local_d0)" (identifier "freeaddrinfo") (argument_list "(local_d0)" (( "(") (identifier "local_d0") () ")"))) (; ";")) (} "}"))) (if_statement "if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }\n  else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" (if "if") (parenthesized_expression "((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0))" (( "(") (binary_expression "(iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)" (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = listen(__fd,0x80), iVar2 < 0)" (( "(") (comma_expression "iVar2 = listen(__fd,0x80), iVar2 < 0" (assignment_expression "iVar2 = listen(__fd,0x80)" (identifier "iVar2") (= "=") (call_expression "listen(__fd,0x80)" (identifier "listen") (argument_list "(__fd,0x80)" (( "(") (identifier "__fd") (, ",") (number_literal "0x80") () ")")))) (, ",") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    close(__fd);\n    piVar5 = __errno_location();\n    pcVar3 = strerror(*piVar5);\n    puVar1[1] = pcVar3;\n  }" ({ "{") (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar5);" (assignment_expression "pcVar3 = strerror(*piVar5)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar5)" (identifier "strerror") (argument_list "(*piVar5)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) () ")")))) (; ";")) (expression_statement "puVar1[1] = pcVar3;" (assignment_expression "puVar1[1] = pcVar3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "pcVar3")) (; ";")) (} "}")) (else_clause "else {\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" (else "else") (compound_statement "{\n    if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }\n    puVar1[2] = __fd;\n    FUN_00063bb0();\n    FUN_00061320(DAT_000a5a40,puVar1);\n  }" ({ "{") (if_statement "if ((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))) {\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }" (if "if") (parenthesized_expression "((local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0))))" (( "(") (binary_expression "(local_e8 == 10) &&\n       ((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))" (parenthesized_expression "(local_e8 == 10)" (( "(") (binary_expression "local_e8 == 10" (identifier "local_e8") (== "==") (number_literal "10")) () ")")) (&& "&&") (parenthesized_expression "((param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)))" (( "(") (parenthesized_expression "(param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0))" (( "(") (binary_expression "param_5 == 0 &&\n        (puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)" (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0)" (( "(") (comma_expression "puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1),\n        puVar4 != (undefined4 *)0x0" (assignment_expression "puVar4 = (undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)FUN_00064b00(param_1,param_2,param_3,param_4,1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00064b00(param_1,param_2,param_3,param_4,1)" (identifier "FUN_00064b00") (argument_list "(param_1,param_2,param_3,param_4,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (number_literal "1") () ")"))))) (, ",") (binary_expression "puVar4 != (undefined4 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }\n      puVar4[0x1a] = puVar1;\n      puVar1[0x1b] = puVar4;\n    }" ({ "{") (if_statement "if (puVar4[1] != 0) {\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }" (if "if") (parenthesized_expression "(puVar4[1] != 0)" (( "(") (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        close(__fd);\n        FUN_0001d220(puVar1);\n        puVar1 = puVar4;\n        goto LAB_00064df5;\n      }" ({ "{") (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (expression_statement "FUN_0001d220(puVar1);" (call_expression "FUN_0001d220(puVar1)" (identifier "FUN_0001d220") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "puVar1 = puVar4;" (assignment_expression "puVar1 = puVar4" (identifier "puVar1") (= "=") (identifier "puVar4")) (; ";")) (goto_statement "goto LAB_00064df5;" (goto "goto") (statement_identifier "LAB_00064df5") (; ";")) (} "}"))) (expression_statement "puVar4[0x1a] = puVar1;" (assignment_expression "puVar4[0x1a] = puVar1" (subscript_expression "puVar4[0x1a]" (identifier "puVar4") ([ "[") (number_literal "0x1a") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar1[0x1b] = puVar4;" (assignment_expression "puVar1[0x1b] = puVar4" (subscript_expression "puVar1[0x1b]" (identifier "puVar1") ([ "[") (number_literal "0x1b") (] "]")) (= "=") (identifier "puVar4")) (; ";")) (} "}"))) (expression_statement "puVar1[2] = __fd;" (assignment_expression "puVar1[2] = __fd" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "__fd")) (; ";")) (expression_statement "FUN_00063bb0();" (call_expression "FUN_00063bb0()" (identifier "FUN_00063bb0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00061320(DAT_000a5a40,puVar1);" (call_expression "FUN_00061320(DAT_000a5a40,puVar1)" (identifier "FUN_00061320") (argument_list "(DAT_000a5a40,puVar1)" (( "(") (identifier "DAT_000a5a40") (, ",") (identifier "puVar1") () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_00064df5:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\n  }" (statement_identifier "LAB_00064df5") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006dad0();\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                    \n    FUN_0006dad0();\n  }" ({ "{") (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" (identifier "FUN_0006dad0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

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

type_1 function_1(char *var_13,int port,type_2 plug,int var_15,int var_4)

{
  int var_28;
  type_3 s;
  int var_6;
  int var_11;
  char *pcVar3;
  type_3 var_25;
  type_4 __len;
  int *piVar5;
  type_5 *puVar6;
  type_6 *__addr;
  type_6 *psVar7;
  int var_1;
  type_7 bVar8;
  int var_14;
  type_8 *var_22;
  int on;
  type_8 hints;
  type_6 u;
  char portstr [6];
  
  bVar8 = 0;
  var_28 = *(int *)(var_1 + 0x14);
  var_22 = (type_8 *)0x0;
  on = 1;
  s = (type_3)var_2(1,0x70);
  s->fn = &tcp_fn_table;
  s->error = (char *)0x0;
  s->plug = plug;
  var_3(&s->output_data);
  s->writable = 0;
  s->sending_oob = 0;
  s->frozen = 0;
  s->localhost_only = var_15;
  s->pending_error = 0;
  s->child = (type_9)0x0;
  s->parent = (type_9)0x0;
  s->oobpending = 0;
  s->outgoingeof = ADDRTYPE_UNSPEC;
  s->incomingeof = 0;
  s->listener = 1;
  s->addr = (type_10)0x0;
  s->s = -1;
  if ((var_4 == 1) || (var_6 = var_5(10,1,0), var_6 < 0)) {
    var_6 = var_5(2,1,0);
    var_14 = 2;
    if (var_6 < 0) {
      piVar5 = var_7();
      pcVar3 = var_8(*piVar5);
      s->error = pcVar3;
      goto LAB_00064df5;
    }
  }
  else {
    var_14 = 10;
  }
  var_9(var_6);
  s->oobinline = 0;
  var_11 = var_10(var_6,1,2,&on,4);
  if (var_11 < 0) {
    piVar5 = var_7();
    pcVar3 = var_8(*piVar5);
    s->error = pcVar3;
    var_12(var_6);
    goto LAB_00064df5;
  }
  if (var_13 == (char *)0x0) {
LAB_00064e20:
    __addr = &u;
    psVar7 = __addr;
    for (var_11 = 0x20; var_11 != 0; var_11 = var_11 + -1) {
      *(type_5 *)psVar7 = 0;
      psVar7 = (type_6 *)((int)psVar7 + (type_11)bVar8 * -8 + 4);
    }
    u.sin.sin_port = (type_12)port << 8 | (type_12)port >> 8;
    if (var_14 == 10) {
      u.storage.ss_family = 10;
      puVar6 = (type_5 *)PTR_in6addr_loopback_000a4fb8;
      if (var_15 == 0) {
        puVar6 = (type_5 *)PTR_in6addr_any_000a4fb0;
      }
      u._8_4_ = *puVar6;
      u._12_4_ = puVar6[1];
      u._16_4_ = puVar6[2];
      u._20_4_ = puVar6[3];
      __len = 0x1c;
    }
    else {
      u.storage.ss_family = 2;
      if (var_15 == 0) {
        __len = 0x10;
      }
      else {
        u.sin6.sin6_flowinfo = 0x100007f;
        __len = 0x10;
      }
    }
  }
  else {
    hints.ai_flags = 4;
    hints.ai_socktype = 1;
    hints.ai_family = var_14;
    hints.ai_protocol = 0;
    hints.ai_addrlen = 0;
    hints.ai_addr = (type_13 *)0x0;
    hints.ai_canonname = (char *)0x0;
    hints.ai_next = (type_8 *)0x0;
    if (99999 < (type_11)port) {
                    /* WARNING: Subroutine does not return */
      var_16("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");
    }
    var_17(portstr,1,6,"%d",port);
    pcVar3 = var_18(var_13);
    var_11 = var_19(pcVar3,portstr,(type_8 *)&hints,(type_8 **)&var_22);
    var_20(pcVar3);
    if (var_11 != 0) goto LAB_00064e20;
    __addr = (type_6 *)var_22->ai_addr;
    __len = var_22->ai_addrlen;
  }
  var_11 = var_21(var_6,(type_13 *)&__addr->storage,__len);
  if (var_22 != (type_8 *)0x0) {
    var_23((type_8 *)var_22);
  }
  if ((var_11 < 0) || (var_11 = var_24(var_6,0x80), var_11 < 0)) {
    var_12(var_6);
    piVar5 = var_7();
    pcVar3 = var_8(*piVar5);
    s->error = pcVar3;
  }
  else {
    if ((var_14 == 10) &&
       ((var_4 == 0 &&
        (var_25 = (type_3)function_1(var_13,port,plug,var_15,1),
        var_25 != (type_3)0x0)))) {
      if (var_25->error != (char *)0x0) {
        var_12(var_6);
        var_20(s);
        s = var_25;
        goto LAB_00064df5;
      }
      var_25->parent = s;
      s->child = var_25;
    }
    s->s = var_6;
    var_26(s);
    var_27(sktree,s);
  }
LAB_00064df5:
  if (var_28 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_29();
  }
  return &s->fn;
}


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

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

undefined4 * MASKED(int param_1,uint param_2,undefined4 param_3,int param_4,int param_5)

{
  undefined4 *puVar1;
  int __fd;
  int iVar2;
  char *pcVar3;
  undefined4 *puVar4;
  socklen_t __len;
  int *piVar5;
  sockaddr *__addr;
  sockaddr *psVar6;
  int in_GS_OFFSET;
  byte bVar7;
  int local_e8;
  addrinfo *local_d0;
  undefined4 local_cc;
  addrinfo local_c8;
  sockaddr local_a8;
  undefined4 local_98;
  undefined4 local_94;
  char local_26 [6];
  int local_20;
  undefined4 uStack_14;
  
  bVar7 = 0;
  uStack_14 = 0x64b09;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_d0 = (addrinfo *)0x0;
  local_cc = 1;
  puVar1 = (undefined4 *)FUN_0001c990(1,0x70);
  *puVar1 = &PTR_FUN_000a5240;
  puVar1[1] = 0;
  puVar1[3] = param_3;
  FUN_0001c780(puVar1 + 4);
  puVar1[8] = 0;
  puVar1[0xc] = 0;
  puVar1[9] = 0;
  puVar1[10] = param_4;
  puVar1[0x11] = 0;
  puVar1[0x1b] = 0;
  puVar1[0x1a] = 0;
  puVar1[0xd] = 0;
  puVar1[0xf] = 0;
  puVar1[0x10] = 0;
  puVar1[0x12] = 1;
  puVar1[0x17] = 0;
  puVar1[2] = 0xffffffff;
  if ((param_5 == 1) || (__fd = socket(10,1,0), __fd < 0)) {
    __fd = socket(2,1,0);
    local_e8 = 2;
    if (__fd < 0) {
      piVar5 = __errno_location();
      pcVar3 = strerror(*piVar5);
      puVar1[1] = pcVar3;
      goto LAB_00064df5;
    }
  }
  else {
    local_e8 = 10;
  }
  FUN_00063340(__fd);
  puVar1[0xe] = 0;
  iVar2 = setsockopt(__fd,1,2,&local_cc,4);
  if (iVar2 < 0) {
    piVar5 = __errno_location();
    pcVar3 = strerror(*piVar5);
    puVar1[1] = pcVar3;
    close(__fd);
    goto LAB_00064df5;
  }
  if (param_1 == 0) {
LAB_00064e20:
    __addr = &local_a8;
    psVar6 = __addr;
    for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
      psVar6->sa_family = 0;
      psVar6->sa_data[0] = '\0';
      psVar6->sa_data[1] = '\0';
      psVar6 = (sockaddr *)((int)psVar6 + (uint)bVar7 * -8 + 4);
    }
    local_a8.sa_data._0_2_ = (ushort)param_2 << 8 | (ushort)param_2 >> 8;
    if (local_e8 == 10) {
      local_a8.sa_family = 10;
      pcVar3 = PTR_in6addr_loopback_000a4fb8;
      if (param_4 == 0) {
        pcVar3 = PTR_in6addr_any_000a4fb0;
      }
      local_a8.sa_data._6_4_ = *(undefined4 *)pcVar3;
      local_a8.sa_data._10_4_ = *(undefined4 *)(pcVar3 + 4);
      local_98 = *(undefined4 *)(pcVar3 + 8);
      local_94 = *(undefined4 *)(pcVar3 + 0xc);
      __len = 0x1c;
    }
    else {
      local_a8.sa_family = 2;
      if (param_4 == 0) {
        __len = 0x10;
      }
      else {
        local_a8.sa_data[2] = '\x7f';
        local_a8.sa_data[3] = '\0';
        local_a8.sa_data[4] = '\0';
        local_a8.sa_data[5] = '\x01';
        __len = 0x10;
      }
    }
  }
  else {
    local_c8.ai_flags = 4;
    local_c8.ai_socktype = 1;
    local_c8.ai_family = local_e8;
    local_c8.ai_protocol = 0;
    local_c8.ai_addrlen = 0;
    local_c8.ai_addr = (sockaddr *)0x0;
    local_c8.ai_canonname = (char *)0x0;
    local_c8.ai_next = (addrinfo *)0x0;
    if (99999 < param_2) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("port >= 0 && port <= 99999","unix/uxnet.c",0x392,"sk_newlistener");
    }
    __sprintf_chk(local_26,1,6,"%d",param_2);
    pcVar3 = (char *)FUN_0001d050(param_1);
    iVar2 = getaddrinfo(pcVar3,local_26,&local_c8,&local_d0);
    FUN_0001d220(pcVar3);
    if (iVar2 != 0) goto LAB_00064e20;
    __addr = local_d0->ai_addr;
    __len = local_d0->ai_addrlen;
  }
  iVar2 = bind(__fd,__addr,__len);
  if (local_d0 != (addrinfo *)0x0) {
    freeaddrinfo(local_d0);
  }
  if ((iVar2 < 0) || (iVar2 = listen(__fd,0x80), iVar2 < 0)) {
    close(__fd);
    piVar5 = __errno_location();
    pcVar3 = strerror(*piVar5);
    puVar1[1] = pcVar3;
  }
  else {
    if ((local_e8 == 10) &&
       ((param_5 == 0 &&
        (puVar4 = (undefined4 *)MASKED(param_1,param_2,param_3,param_4,1),
        puVar4 != (undefined4 *)0x0)))) {
      if (puVar4[1] != 0) {
        close(__fd);
        FUN_0001d220(puVar1);
        puVar1 = puVar4;
        goto LAB_00064df5;
      }
      puVar4[0x1a] = puVar1;
      puVar1[0x1b] = puVar4;
    }
    puVar1[2] = __fd;
    FUN_00063bb0();
    FUN_00061320(DAT_000a5a40,puVar1);
  }
LAB_00064df5:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006dad0();
  }
  return puVar1;
}

