
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int try_connect(Actual_Socket_conflict sock)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  anon_enum_32 aVar5;
  addrinfo *paVar6;
  int fd;
  int iVar7;
  int iVar8;
  int *piVar9;
  char *pcVar10;
  SockAddr_tag *pSVar11;
  uint uVar12;
  Plug pppVar13;
  socklen_t sVar14;
  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var15;
  int iVar16;
  sa_family_t sVar17;
  sockaddr_union *psVar18;
  code *pcVar19;
  int b;
  sockaddr_union u;
  SockAddr_tag thisaddr;
  
  puVar3 = PTR___stack_chk_guard_000adcd4;
  puVar1 = PTR_DAT_000ad2b8;
  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;
  del234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70),sock);
  if (-1 < sock->s) {
    (*(code *)PTR_close_000adb18)();
  }
  pcVar19 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);
  pSVar11 = &thisaddr;
  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);
  (*(*sock->plug)->log)(sock->plug,0,pSVar11,sock->port,(char *)0x0,0);
  aVar5 = sock->addr->superfamily;
  if (aVar5 == ADDRTYPE_UNSPEC) {
LAB_0007cf44:
    iVar4 = (*(code *)PTR___assert_fail_000adb00)
                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,
                       PTR_DAT_000ad2d0 + -0x690c);
    return iVar4;
  }
  iVar16 = 1;
  if (aVar5 != ABOUT_TO) {
    paVar6 = (sock->step).ai;
    iVar16 = 2;
    if ((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)) goto LAB_0007cf44;
  }
  fd = (*(code *)PTR_socket_000adb5c)(iVar16,2,0);
  sock->s = fd;
  if (fd < 0) {
    piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();
    iVar7 = *piVar9;
LAB_0007cc54:
    add234(*(tree234 **)(puVar1 + -0x1b70),sock);
    if (iVar7 != 0) {
LAB_0007ccd0:
      (*pcVar19)(&thisaddr,sock->addr,&sock->step);
      pppVar13 = sock->plug;
      iVar16 = sock->port;
      p_Var15 = (*pppVar13)->log;
      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);
      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);
    }
  }
  else {
    cloexec(fd);
    if (sock->oobinline != 0) {
      b = 1;
      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);
      if (-1 < iVar7) goto LAB_0007cb40;
LAB_0007cdf8:
      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar7 = *piVar9;
      (*(code *)PTR_close_000adb18)(fd);
      goto LAB_0007cc54;
    }
LAB_0007cb40:
    if (sock->nodelay == 0) {
      iVar7 = sock->keepalive;
    }
    else {
      b = 1;
      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);
      if (iVar7 < 0) goto LAB_0007cdf8;
      iVar7 = sock->keepalive;
    }
    if (iVar7 != 0) {
      b = 1;
      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);
      if (iVar7 < 0) goto LAB_0007cdf8;
    }
    iVar8 = 0x3ff;
    psVar18 = &u;
    if (sock->privport == 0) {
      iVar8 = 0;
    }
    (*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);
    puVar2 = PTR_in6addr_any_000adb88;
    sVar17 = (sa_family_t)iVar16;
    if (iVar16 != 1) {
LAB_0007cbf8:
      if (iVar16 == 10) {
        u._8_4_ = *(undefined4 *)puVar2;
        u._12_4_ = *(undefined4 *)(puVar2 + 4);
        u._16_4_ = *(undefined4 *)(puVar2 + 8);
        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);
        u.storage.ss_family = sVar17;
        u.sin.sin_port = (in_port_t)iVar8;
        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);
      }
      else {
        if (iVar16 != 2) {
          iVar4 = (*(code *)PTR___assert_fail_000adb00)
                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,
                             PTR_DAT_000ad2d0 + -0x690c);
          return iVar4;
        }
        u.sin6.sin6_flowinfo = 0;
        u.storage.ss_family = sVar17;
        u.sin.sin_port = (in_port_t)iVar8;
        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);
      }
      if (-1 < iVar7) {
LAB_0007cd34:
        if ((iVar16 != 2) && (iVar16 != 10)) {
          iVar4 = (*(code *)PTR___assert_fail_000adb00)
                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,
                             PTR_DAT_000ad2d0 + -0x690c);
          return iVar4;
        }
        paVar6 = (sock->step).ai;
        psVar18 = (sockaddr_union *)paVar6->ai_addr;
        sVar14 = paVar6->ai_addrlen;
        (psVar18->sin).sin_port = (in_port_t)sock->port;
        goto LAB_0007cd58;
      }
      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar7 = *piVar9;
      if (iVar7 == 0x7d) {
        uVar12 = iVar8 - 1;
        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;
        goto LAB_0007cbf8;
      }
      if (iVar7 == 0) goto LAB_0007cd34;
LAB_0007ccbc:
      add234(*(tree234 **)(puVar1 + -0x1b70),sock);
      goto LAB_0007ccd0;
    }
    if (sock->port != 0) {
      iVar4 = (*(code *)PTR___assert_fail_000adb00)
                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,
                         PTR_DAT_000ad2d0 + -0x690c);
      return iVar4;
    }
    pcVar10 = sock->addr->hostname;
    uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);
    if (0x6b < uVar12) goto LAB_0007cf70;
    u.storage.ss_family = sVar17;
    (*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);
    sVar14 = 0x6e;
LAB_0007cd58:
    nonblock(fd);
    iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);
    if (iVar16 < 0) {
      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar7 = *piVar9;
      if (iVar7 != 0x96) goto LAB_0007cc54;
    }
    else {
      sock->connected = 1;
      sock->writable = 1;
    }
    iVar7 = 0;
    uxsel_tell(sock);
    add234(*(tree234 **)(puVar1 + -0x1b70),sock);
  }
  if (iVar4 == *(int *)puVar3) {
    return iVar7;
  }
  (*(code *)PTR___stack_chk_fail_000adca4)();
LAB_0007cf70:
  iVar4 = (*(code *)PTR___assert_fail_000adb00)
                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,
                     PTR_DAT_000ad2d0 + -0x690c);
  return iVar4;
}



int FUN_0007c9f8(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  undefined4 uVar8;
  undefined1 *puVar9;
  uint uVar10;
  undefined4 *puVar11;
  int iVar12;
  undefined2 uVar14;
  undefined4 uVar13;
  undefined2 *puVar15;
  code *pcVar16;
  undefined4 local_2c0;
  undefined2 local_2bc;
  undefined2 local_2ba;
  undefined4 local_2b8;
  undefined4 local_2b4;
  undefined4 local_2b0;
  undefined4 local_2ac;
  undefined4 local_2a8;
  undefined1 auStack_23c [528];
  int local_2c;
  
  puVar3 = PTR___stack_chk_guard_000adcd4;
  puVar1 = PTR_DAT_000ad2b8;
  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;
  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);
  if (-1 < *(int *)(param_1 + 8)) {
    (*(code *)PTR_close_000adb18)();
  }
  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);
  puVar9 = auStack_23c;
  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));
  (**(code **)**(undefined4 **)(param_1 + 0xc))
            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);
  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);
  if (iVar4 == 0) {
LAB_0007cf44:
    iVar4 = (*(code *)PTR___assert_fail_000adb00)
                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,
                       PTR_DAT_000ad2d0 + -0x690c);
    return iVar4;
  }
  iVar12 = 1;
  if (iVar4 != 1) {
    iVar12 = 2;
    if ((*(int *)(param_1 + 0x60) != 0) &&
       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;
  }
  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);
  *(int *)(param_1 + 8) = iVar4;
  if (iVar4 < 0) {
    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
    iVar5 = *piVar7;
LAB_0007cc54:
    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);
    if (iVar5 != 0) {
LAB_0007ccd0:
      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);
      puVar11 = *(undefined4 **)(param_1 + 0xc);
      uVar13 = *(undefined4 *)(param_1 + 0x58);
      pcVar16 = *(code **)*puVar11;
      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);
      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);
    }
  }
  else {
    cloexec(iVar4);
    if (*(int *)(param_1 + 0x38) != 0) {
      local_2c0 = 1;
      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);
      if (-1 < iVar5) goto LAB_0007cb40;
LAB_0007cdf8:
      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar5 = *piVar7;
      (*(code *)PTR_close_000adb18)(iVar4);
      goto LAB_0007cc54;
    }
LAB_0007cb40:
    if (*(int *)(param_1 + 0x4c) == 0) {
      iVar5 = *(int *)(param_1 + 0x50);
    }
    else {
      local_2c0 = 1;
      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);
      if (iVar5 < 0) goto LAB_0007cdf8;
      iVar5 = *(int *)(param_1 + 0x50);
    }
    if (iVar5 != 0) {
      local_2c0 = 1;
      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);
      if (iVar5 < 0) goto LAB_0007cdf8;
    }
    iVar6 = 0x3ff;
    puVar15 = &local_2bc;
    if (*(int *)(param_1 + 0x54) == 0) {
      iVar6 = 0;
    }
    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);
    puVar2 = PTR_in6addr_any_000adb88;
    uVar14 = (undefined2)iVar12;
    if (iVar12 != 1) {
LAB_0007cbf8:
      if (iVar12 == 10) {
        local_2b4 = *(undefined4 *)puVar2;
        local_2b0 = *(undefined4 *)(puVar2 + 4);
        local_2ac = *(undefined4 *)(puVar2 + 8);
        local_2a8 = *(undefined4 *)(puVar2 + 0xc);
        local_2bc = uVar14;
        local_2ba = (short)iVar6;
        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);
      }
      else {
        if (iVar12 != 2) {
          iVar4 = (*(code *)PTR___assert_fail_000adb00)
                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,
                             PTR_DAT_000ad2d0 + -0x690c);
          return iVar4;
        }
        local_2b8 = 0;
        local_2bc = uVar14;
        local_2ba = (short)iVar6;
        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);
      }
      if (-1 < iVar5) {
LAB_0007cd34:
        if ((iVar12 != 2) && (iVar12 != 10)) {
          iVar4 = (*(code *)PTR___assert_fail_000adb00)
                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,
                             PTR_DAT_000ad2d0 + -0x690c);
          return iVar4;
        }
        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);
        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);
        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);
        goto LAB_0007cd58;
      }
      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar5 = *piVar7;
      if (iVar5 == 0x7d) {
        uVar10 = iVar6 - 1;
        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;
        goto LAB_0007cbf8;
      }
      if (iVar5 == 0) goto LAB_0007cd34;
LAB_0007ccbc:
      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);
      goto LAB_0007ccd0;
    }
    if (*(int *)(param_1 + 0x58) != 0) {
      iVar4 = (*(code *)PTR___assert_fail_000adb00)
                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,
                         PTR_DAT_000ad2d0 + -0x690c);
      return iVar4;
    }
    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;
    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);
    if (0x6b < uVar10) goto LAB_0007cf70;
    local_2bc = uVar14;
    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);
    uVar8 = 0x6e;
LAB_0007cd58:
    nonblock(iVar4);
    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);
    if (iVar4 < 0) {
      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar5 = *piVar7;
      if (iVar5 != 0x96) goto LAB_0007cc54;
    }
    else {
      *(undefined4 *)(param_1 + 0x1c) = 1;
      *(undefined4 *)(param_1 + 0x20) = 1;
    }
    iVar5 = 0;
    FUN_0007c630(param_1);
    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);
  }
  if (local_2c == *(int *)puVar3) {
    return iVar5;
  }
  (*(code *)PTR___stack_chk_fail_000adca4)();
LAB_0007cf70:
  iVar4 = (*(code *)PTR___assert_fail_000adb00)
                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,
                     PTR_DAT_000ad2d0 + -0x690c);
  return iVar4;
}


lui gp,0x4
addiu gp,gp,-0x7768
addu gp,gp,t9
lw v0,-0x75bc(gp)
addiu sp,sp,-0x2f8
lw v1,-0x7fd8(gp)
or a1,a0,zero
lw t9,-0x7e30(gp)
sw v0,0x24(sp)
sw s1,0x2d4(sp)
or s1,a0,zero
sw gp,0x18(sp)
sw ra,0x2f4(sp)
sw s8,0x2f0(sp)
sw s7,0x2ec(sp)
sw s6,0x2e8(sp)
sw s5,0x2e4(sp)
sw s4,0x2e0(sp)
sw s3,0x2dc(sp)
sw s2,0x2d8(sp)
sw s0,0x2d0(sp)
sw v1,0x28(sp)
lw v0,0x0(v0)
lw a0,-0x1b70(v1)
sw v0,0x2cc(sp)
bal 0x00079660
_nop
lw a0,0x8(s1)
bltz a0,0x0007ca80
_lw gp,0x18(sp)
lw t9,-0x7778(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v0,-0x7f98(gp)
addiu t4,sp,0xbc
addiu a2,s1,0x60
lw a1,0x5c(s1)
or a0,t4,zero
sw t4,0x30(sp)
addiu t9,v0,-0x36e4
sw a2,0x2c(sp)
bal 0x0007c91c
_sw t9,0x34(sp)
or a1,zero,zero
lw v0,0xc(s1)
lw a3,0x58(s1)
or a0,v0,zero
lw v0,0x0(v0)
sw zero,0x14(sp)
sw zero,0x10(sp)
lw t9,0x0(v0)
jalr t9
_or a2,t4,zero
lw v0,0x5c(s1)
lw v0,0x8(v0)
beq v0,zero,0x0007cf40
_lw gp,0x18(sp)
li v1,0x1
beq v0,v1,0x0007cb04
_li s2,0x1
lw v0,0x60(s1)
beq v0,zero,0x0007cb04
_li s2,0x2
lw s2,0x4(v0)
beq s2,zero,0x0007cf44
_lw a3,-0x7fc0(gp)
lw t9,-0x7734(gp)
or a2,zero,zero
li a1,0x2
jalr t9
_or a0,s2,zero
lw gp,0x18(sp)
or s3,v0,zero
bltz v0,0x0007cc40
_sw v0,0x8(s1)
lw t9,-0x7f00(gp)
bal 0x0007b9f0
_or a0,v0,zero
lw v0,0x38(s1)
bne v0,zero,0x0007cdc4
_lw gp,0x18(sp)
lw v0,0x4c(s1)
bne v0,zero,0x0007ce1c
_li v0,0x4
lw v0,0x50(s1)
bne v0,zero,0x0007ce54
_li v0,0x4
lw s0,0x54(s1)
li v0,0x3ff
lw t9,-0x7698(gp)
addiu s4,sp,0x3c
li a2,0x80
movz v0,zero,s0
or a1,zero,zero
or a0,s4,zero
jalr t9
_or s0,v0,zero
li v0,0x1
beq s2,v0,0x0007ceac
_lw gp,0x18(sp)
lw s8,-0x7708(gp)
li s5,0xa
b 0x0007cbf8
_li s6,0x7d
li v0,0x2
bne s2,v0,0x0007cf1c
_lw t9,-0x7688(gp)
li a2,0x10
or a1,s4,zero
sh s2,0x3c(sp)
or a0,s3,zero
sw zero,0x40(sp)
jalr t9
_sh s0,0x3e(sp)
lw gp,0x18(sp)
bgez v0,0x0007cd30
_lw t9,-0x76ac(gp)
jalr t9
_nop
lw s7,0x0(v0)
bne s7,s6,0x0007ccb4
_lw gp,0x18(sp)
beq s0,zero,0x0007ccbc
_addiu s0,s0,-0x1
andi v0,s0,0xffff
beq v0,zero,0x0007ccbc
_seh s0,v0
bne s2,s5,0x0007cb9c
_li a2,0x1c
lw t0,0x0(s8)
lw a3,0x4(s8)
or a1,s4,zero
lw v1,0x8(s8)
or a0,s3,zero
lw v0,0xc(s8)
lw t9,-0x7688(gp)
sh s2,0x3c(sp)
sw t0,0x44(sp)
sw a3,0x48(sp)
sw v1,0x4c(sp)
sw v0,0x50(sp)
jalr t9
_sh s0,0x3e(sp)
b 0x0007cbc8
_lw gp,0x18(sp)
lw t9,-0x76ac(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw s7,0x0(v0)
lw v0,0x28(sp)
or a1,s1,zero
lw t9,-0x7e34(gp)
bal 0x00079168
_lw a0,-0x1b70(v0)
bne s7,zero,0x0007ccd0
_lw gp,0x18(sp)
lw v1,0x24(sp)
or v0,s7,zero
lw a0,0x2cc(sp)
lw v1,0x0(v1)
bne a0,v1,0x0007cf64
_lw ra,0x2f4(sp)
lw s8,0x2f0(sp)
lw s7,0x2ec(sp)
lw s6,0x2e8(sp)
lw s5,0x2e4(sp)
lw s4,0x2e0(sp)
lw s3,0x2dc(sp)
lw s2,0x2d8(sp)
lw s1,0x2d4(sp)
lw s0,0x2d0(sp)
jr ra
_addiu sp,sp,0x2f8
beq s7,zero,0x0007cd34
_li v0,0x2
lw v0,0x28(sp)
or a1,s1,zero
lw t9,-0x7e34(gp)
bal 0x00079168
_lw a0,-0x1b70(v0)
lw s3,0x30(sp)
lw a1,0x5c(s1)
lw a2,0x2c(sp)
lw t9,0x34(sp)
jalr t9
_or a0,s3,zero
or a0,s7,zero
lw s0,0xc(s1)
lw gp,0x18(sp)
lw s2,0x58(s1)
lw v0,0x0(s0)
lw t9,-0x763c(gp)
jalr t9
_lw s1,0x0(v0)
li a1,0x1
sw s7,0x14(sp)
or a3,s2,zero
sw v0,0x10(sp)
or a2,s3,zero
or t9,s1,zero
jalr t9
_or a0,s0,zero
b 0x0007cc70
_lw gp,0x18(sp)
li v0,0x2
beq s2,v0,0x0007cd44
_li v0,0xa
bne s2,v0,0x0007cefc
_lw a3,-0x7fc0(gp)
lw v0,0x60(s1)
lw v1,0x58(s1)
lw s4,0x14(v0)
lw s0,0x10(v0)
sh v1,0x2(s4)
lw t9,-0x7f84(gp)
bal 0x0007bbfc
_or a0,s3,zero
or a2,s0,zero
lw gp,0x18(sp)
or a1,s4,zero
lw t9,-0x7770(gp)
jalr t9
_or a0,s3,zero
bltz v0,0x0007ce88
_lw gp,0x18(sp)
li v0,0x1
sw v0,0x1c(s1)
sw v0,0x20(s1)
lw t9,-0x7f98(gp)
or a0,s1,zero
addiu t9,t9,-0x39d0
bal 0x0007c630
_or s7,zero,zero
or a1,s1,zero
lw gp,0x18(sp)
lw v0,0x28(sp)
lw t9,-0x7e34(gp)
bal 0x00079168
_lw a0,-0x1b70(v0)
b 0x0007cc70
_lw gp,0x18(sp)
li v0,0x4
lw t9,-0x7564(gp)
addiu a3,sp,0x38
sw v0,0x10(sp)
li v0,0x1
li a2,0x100
ori a1,zero,0xffff
sw v0,0x38(sp)
jalr t9
_or a0,s3,zero
bgez v0,0x0007cb40
_lw gp,0x18(sp)
lw t9,-0x76ac(gp)
jalr t9
_nop
or a0,s3,zero
lw gp,0x18(sp)
lw t9,-0x7778(gp)
jalr t9
_lw s7,0x0(v0)
b 0x0007cc54
_lw gp,0x18(sp)
lw t9,-0x7564(gp)
addiu a3,sp,0x38
sw v0,0x10(sp)
li v0,0x1
li a2,0x1
li a1,0x6
sw v0,0x38(sp)
jalr t9
_or a0,s3,zero
bltz v0,0x0007cdf4
_lw gp,0x18(sp)
lw v0,0x50(s1)
beq v0,zero,0x0007cb58
_li v0,0x4
lw t9,-0x7564(gp)
addiu a3,sp,0x38
sw v0,0x10(sp)
li v0,0x1
li a2,0x8
ori a1,zero,0xffff
sw v0,0x38(sp)
jalr t9
_or a0,s3,zero
bgez v0,0x0007cb58
_lw gp,0x18(sp)
b 0x0007cdf8
_lw t9,-0x76ac(gp)
lw t9,-0x76ac(gp)
jalr t9
_nop
li a0,0x96
lw s7,0x0(v0)
bne s7,a0,0x0007cc54
_lw gp,0x18(sp)
b 0x0007cd94
_lw t9,-0x7f98(gp)
lw v0,0x58(s1)
bne v0,zero,0x0007cf94
_lw t9,-0x7668(gp)
lw s0,0x5c(s1)
addiu s0,s0,0x10
jalr t9
_or a0,s0,zero
sltiu v1,v0,0x6c
beq v1,zero,0x0007cf70
_lw gp,0x18(sp)
lw t9,-0x7640(gp)
li a3,0x6c
addiu a2,v0,0x1
sh s2,0x3c(sp)
addiu a0,sp,0x3e
jalr t9
_or a1,s0,zero
li s0,0x6e
b 0x0007cd58
_lw gp,0x18(sp)
li a2,0x2de
lw a1,-0x7fc0(gp)
lw a0,-0x7fc0(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x690c
addiu a1,a1,-0x6af8
jalr t9
_addiu a0,a0,-0x6a7c
lw a3,-0x7fc0(gp)
li a2,0x29f
lw a1,-0x7fc0(gp)
lw a0,-0x7fc0(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x690c
addiu a1,a1,-0x6af8
jalr t9
_addiu a0,a0,-0x6ad4
lw a3,-0x7fc0(gp)
li a2,0x25a
lw a1,-0x7fc0(gp)
lw a0,-0x7fc0(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x690c
addiu a1,a1,-0x6af8
jalr t9
_addiu a0,a0,-0x6ae8
lw t9,-0x75ec(gp)
jalr t9
_nop
lw a3,-0x7fc0(gp)
li a2,0x2d6
lw a1,-0x7fc0(gp)
lw a0,-0x7fc0(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x690c
addiu a1,a1,-0x6af8
jalr t9
_addiu a0,a0,-0x6ab0
lw a3,-0x7fc0(gp)
li a2,0x2d5
lw a1,-0x7fc0(gp)
lw a0,-0x7fc0(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x690c
addiu a1,a1,-0x6af8
jalr t9
_addiu a0,a0,-0x6ac0
(translation_unit "int FUN_0007c9f8(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}\n\n" (function_definition "int FUN_0007c9f8(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0007c9f8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined2 uVar14;" type_identifier identifier ;) (declaration "undefined4 uVar13;" type_identifier identifier ;) (declaration "undefined2 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "code *pcVar16;" type_identifier (pointer_declarator "*pcVar16" * identifier) ;) (declaration "undefined4 local_2c0;" type_identifier identifier ;) (declaration "undefined2 local_2bc;" type_identifier identifier ;) (declaration "undefined2 local_2ba;" type_identifier identifier ;) (declaration "undefined4 local_2b8;" type_identifier identifier ;) (declaration "undefined4 local_2b4;" type_identifier identifier ;) (declaration "undefined4 local_2b0;" type_identifier identifier ;) (declaration "undefined4 local_2ac;" type_identifier identifier ;) (declaration "undefined4 local_2a8;" type_identifier identifier ;) (declaration "undefined1 auStack_23c [528];" type_identifier (array_declarator "auStack_23c [528]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_000ad2b8;" (assignment_expression "puVar1 = PTR_DAT_000ad2b8" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000adcd4" * (cast_expression "(int *)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);" (call_expression "del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70)" * (cast_expression "(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b70)" ( (binary_expression "PTR_DAT_000ad2b8 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 8))" ( (binary_expression "-1 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR_close_000adb18)();\n  }" { (expression_statement "(*(code *)PTR_close_000adb18)();" (call_expression "(*(code *)PTR_close_000adb18)()" (parenthesized_expression "(*(code *)PTR_close_000adb18)" ( (pointer_expression "*(code *)PTR_close_000adb18" * (cast_expression "(code *)PTR_close_000adb18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);" (assignment_expression "pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2f8 + -0x36e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2f8 + -0x36e4)" ( (binary_expression "PTR_LAB_000ad2f8 + -0x36e4" identifier + number_literal) )))) ;) (expression_statement "puVar9 = auStack_23c;" (assignment_expression "puVar9 = auStack_23c" identifier = identifier) ;) (expression_statement "FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));" (call_expression "FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c))" identifier (argument_list "(auStack_23c,*(undefined4 *)(param_1 + 0x5c))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) ))) ;) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" ( (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))))))) )) (argument_list "(*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0)" ( (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x5c) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x5c) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x5c) + 8" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" { (labeled_statement "LAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ae8" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;)) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" identifier = number_literal) ;) (if_statement "if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (compound_statement "{\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }" { (expression_statement "iVar12 = 2;" (assignment_expression "iVar12 = 2" identifier = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;" if (parenthesized_expression "((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0))" ( (binary_expression "(*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x60) != 0)" ( (binary_expression "*(int *)(param_1 + 0x60) != 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)" ( (comma_expression "iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0" (assignment_expression "iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "iVar12 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0007cf44;" goto statement_identifier ;)) })) (expression_statement "iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);" (assignment_expression "iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0)" identifier = (call_expression "(*(code *)PTR_socket_000adb5c)(iVar12,2,0)" (parenthesized_expression "(*(code *)PTR_socket_000adb5c)" ( (pointer_expression "*(code *)PTR_socket_000adb5c" * (cast_expression "(code *)PTR_socket_000adb5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar12,2,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar4;" (assignment_expression "*(int *)(param_1 + 8) = iVar4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }" { (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (labeled_statement "LAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" statement_identifier : (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" * (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;)) (if_statement "if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }" { (labeled_statement "LAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);" statement_identifier : (expression_statement "(*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);" (call_expression "(*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60)" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) , (binary_expression "param_1 + 0x60" identifier + number_literal) ))) ;)) (expression_statement "puVar11 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar11 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar13 = *(undefined4 *)(param_1 + 0x58);" (assignment_expression "uVar13 = *(undefined4 *)(param_1 + 0x58)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "pcVar16 = *(code **)*puVar11;" (assignment_expression "pcVar16 = *(code **)*puVar11" identifier = (pointer_expression "*(code **)*puVar11" * (cast_expression "(code **)*puVar11" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*puVar11" * identifier)))) ;) (expression_statement "uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);" (assignment_expression "uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5)" identifier = (call_expression "(*(code *)PTR_strerror_000adc54)(iVar5)" (parenthesized_expression "(*(code *)PTR_strerror_000adc54)" ( (pointer_expression "*(code *)PTR_strerror_000adc54" * (cast_expression "(code *)PTR_strerror_000adc54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "(*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);" (call_expression "(*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5)" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "(puVar11,1,auStack_23c,uVar13,uVar8,iVar5)" ( identifier , number_literal , identifier , identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" else (compound_statement "{\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" { (expression_statement "cloexec(iVar4);" (call_expression "cloexec(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }" { (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0xffff,0x100,&local_2c0,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2c0" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar5) goto LAB_0007cb40;" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (goto_statement "goto LAB_0007cb40;" goto statement_identifier ;)) (labeled_statement "LAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" statement_identifier : (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "(*(code *)PTR_close_000adb18)(iVar4);" (call_expression "(*(code *)PTR_close_000adb18)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_000adb18)" ( (pointer_expression "*(code *)PTR_close_000adb18" * (cast_expression "(code *)PTR_close_000adb18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_0007cc54;" goto statement_identifier ;) })) (labeled_statement "LAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" else (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,6,1,&local_2c0,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2c0" & identifier) , number_literal )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0007cdf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0007cdf8;" goto statement_identifier ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) })))) (if_statement "if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }" { (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0xffff,8,&local_2c0,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2c0" & identifier) , number_literal )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0007cdf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0007cdf8;" goto statement_identifier ;)) })) (expression_statement "iVar6 = 0x3ff;" (assignment_expression "iVar6 = 0x3ff" identifier = number_literal) ;) (expression_statement "puVar15 = &local_2bc;" (assignment_expression "puVar15 = &local_2bc" identifier = (pointer_expression "&local_2bc" & identifier)) ;) (if_statement "if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) == 0)" ( (binary_expression "*(int *)(param_1 + 0x54) == 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);" (call_expression "(*(code *)PTR_memset_000adbf8)(puVar15,0,0x80)" (parenthesized_expression "(*(code *)PTR_memset_000adbf8)" ( (pointer_expression "*(code *)PTR_memset_000adbf8" * (cast_expression "(code *)PTR_memset_000adbf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar15,0,0x80)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar2 = PTR_in6addr_any_000adb88;" (assignment_expression "puVar2 = PTR_in6addr_any_000adb88" identifier = identifier) ;) (expression_statement "uVar14 = (undefined2)iVar12;" (assignment_expression "uVar14 = (undefined2)iVar12" identifier = (cast_expression "(undefined2)iVar12" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (if_statement "if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }" if (parenthesized_expression "(iVar12 != 1)" ( (binary_expression "iVar12 != 1" identifier != number_literal) )) (compound_statement "{\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }" { (labeled_statement "LAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" statement_identifier : (if_statement "if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" if (parenthesized_expression "(iVar12 == 10)" ( (binary_expression "iVar12 == 10" identifier == number_literal) )) (compound_statement "{\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }" { (expression_statement "local_2b4 = *(undefined4 *)puVar2;" (assignment_expression "local_2b4 = *(undefined4 *)puVar2" identifier = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_2b0 = *(undefined4 *)(puVar2 + 4);" (assignment_expression "local_2b0 = *(undefined4 *)(puVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 4)" * (cast_expression "(undefined4 *)(puVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_2ac = *(undefined4 *)(puVar2 + 8);" (assignment_expression "local_2ac = *(undefined4 *)(puVar2 + 8)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 8)" * (cast_expression "(undefined4 *)(puVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_2a8 = *(undefined4 *)(puVar2 + 0xc);" (assignment_expression "local_2a8 = *(undefined4 *)(puVar2 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" identifier = identifier) ;) (expression_statement "local_2ba = (short)iVar6;" (assignment_expression "local_2ba = (short)iVar6" identifier = (cast_expression "(short)iVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);" (assignment_expression "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c)" identifier = (call_expression "(*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" ( (pointer_expression "*(code *)PTR_bind_000adc08" * (cast_expression "(code *)PTR_bind_000adc08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar15,0x1c)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" else (compound_statement "{\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" { (if_statement "if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" if (parenthesized_expression "(iVar12 != 2)" ( (binary_expression "iVar12 != 2" identifier != number_literal) )) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ad4" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "local_2b8 = 0;" (assignment_expression "local_2b8 = 0" identifier = number_literal) ;) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" identifier = identifier) ;) (expression_statement "local_2ba = (short)iVar6;" (assignment_expression "local_2ba = (short)iVar6" identifier = (cast_expression "(short)iVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);" (assignment_expression "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10)" identifier = (call_expression "(*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" ( (pointer_expression "*(code *)PTR_bind_000adc08" * (cast_expression "(code *)PTR_bind_000adc08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar15,0x10)" ( identifier , identifier , number_literal )))) ;) })))) (if_statement "if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (compound_statement "{\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }" { (labeled_statement "LAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" statement_identifier : (if_statement "if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" if (parenthesized_expression "((iVar12 != 2) && (iVar12 != 10))" ( (binary_expression "(iVar12 != 2) && (iVar12 != 10)" (parenthesized_expression "(iVar12 != 2)" ( (binary_expression "iVar12 != 2" identifier != number_literal) )) && (parenthesized_expression "(iVar12 != 10)" ( (binary_expression "iVar12 != 10" identifier != number_literal) ))) )) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6a7c" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);" (assignment_expression "puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" identifier = (pointer_expression "*(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" * (cast_expression "(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" ( (type_descriptor "undefined2 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x14" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x10" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);" (assignment_expression "puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58)" (subscript_expression "puVar15[1]" identifier [ number_literal ]) = (cast_expression "(short)*(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))))) ;) (goto_statement "goto LAB_0007cd58;" goto statement_identifier ;) })) (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" if (parenthesized_expression "(iVar5 == 0x7d)" ( (binary_expression "iVar5 == 0x7d" identifier == number_literal) )) (compound_statement "{\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" { (expression_statement "uVar10 = iVar6 - 1;" (assignment_expression "uVar10 = iVar6 - 1" identifier = (binary_expression "iVar6 - 1" identifier - number_literal)) ;) (if_statement "if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;" if (parenthesized_expression "((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0))" ( (binary_expression "(iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)" (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)" ( (comma_expression "iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0" (assignment_expression "iVar6 = (int)(short)uVar10" identifier = (cast_expression "(int)(short)uVar10" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)uVar10" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) , (binary_expression "(uVar10 & 0xffff) == 0" (parenthesized_expression "(uVar10 & 0xffff)" ( (binary_expression "uVar10 & 0xffff" identifier & number_literal) )) == number_literal)) ))) )) (goto_statement "goto LAB_0007ccbc;" goto statement_identifier ;)) (goto_statement "goto LAB_0007cbf8;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0) goto LAB_0007cd34;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007cd34;" goto statement_identifier ;)) (labeled_statement "LAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" statement_identifier : (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" * (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;)) (goto_statement "goto LAB_0007ccd0;" goto statement_identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" ( (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ac0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar12 = *(int *)(param_1 + 0x5c) + 0x10;" (assignment_expression "iVar12 = *(int *)(param_1 + 0x5c) + 0x10" identifier = (binary_expression "*(int *)(param_1 + 0x5c) + 0x10" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);" (assignment_expression "uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12)" identifier = (call_expression "(*(code *)PTR_strlen_000adc28)(iVar12)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" ( (pointer_expression "*(code *)PTR_strlen_000adc28" * (cast_expression "(code *)PTR_strlen_000adc28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar12)" ( identifier )))) ;) (if_statement "if (0x6b < uVar10) goto LAB_0007cf70;" if (parenthesized_expression "(0x6b < uVar10)" ( (binary_expression "0x6b < uVar10" number_literal < identifier) )) (goto_statement "goto LAB_0007cf70;" goto statement_identifier ;)) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" identifier = identifier) ;) (expression_statement "(*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);" (call_expression "(*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c)" (parenthesized_expression "(*(code *)PTR___memcpy_chk_000adc50)" ( (pointer_expression "*(code *)PTR___memcpy_chk_000adc50" * (cast_expression "(code *)PTR___memcpy_chk_000adc50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_2ba,iVar12,uVar10 + 1,0x6c)" ( (pointer_expression "&local_2ba" & identifier) , identifier , (binary_expression "uVar10 + 1" identifier + number_literal) , number_literal ))) ;) (expression_statement "uVar8 = 0x6e;" (assignment_expression "uVar8 = 0x6e" identifier = number_literal) ;) (labeled_statement "LAB_0007cd58:\n    nonblock(iVar4);" statement_identifier : (expression_statement "nonblock(iVar4);" (call_expression "nonblock(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);" (assignment_expression "iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8)" identifier = (call_expression "(*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8)" (parenthesized_expression "(*(code *)PTR_connect_000adb20)" ( (pointer_expression "*(code *)PTR_connect_000adb20" * (cast_expression "(code *)PTR_connect_000adb20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar15,uVar8)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }" { (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar5 != 0x96) goto LAB_0007cc54;" if (parenthesized_expression "(iVar5 != 0x96)" ( (binary_expression "iVar5 != 0x96" identifier != number_literal) )) (goto_statement "goto LAB_0007cc54;" goto statement_identifier ;)) }) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" else (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_0007c630(param_1);" (call_expression "FUN_0007c630(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" * (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;) }))) (if_statement "if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar3)" ( (binary_expression "local_2c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ab0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;)) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint try_connect(Actual_Socket_conflict sock)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  anon_enum_32 aVar5;\n  addrinfo *paVar6;\n  int fd;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  SockAddr_tag *pSVar11;\n  uint uVar12;\n  Plug pppVar13;\n  socklen_t sVar14;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var15;\n  int iVar16;\n  sa_family_t sVar17;\n  sockaddr_union *psVar18;\n  code *pcVar19;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70),sock);\n  if (-1 < sock->s) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar19 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  pSVar11 = &thisaddr;\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  (*(*sock->plug)->log)(sock->plug,0,pSVar11,sock->port,(char *)0x0,0);\n  aVar5 = sock->addr->superfamily;\n  if (aVar5 == ADDRTYPE_UNSPEC) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar16 = 1;\n  if (aVar5 != ABOUT_TO) {\n    paVar6 = (sock->step).ai;\n    iVar16 = 2;\n    if ((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)) goto LAB_0007cf44;\n  }\n  fd = (*(code *)PTR_socket_000adb5c)(iVar16,2,0);\n  sock->s = fd;\n  if (fd < 0) {\n    piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar7 = *piVar9;\nLAB_0007cc54:\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n    if (iVar7 != 0) {\nLAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);\n      pppVar13 = sock->plug;\n      iVar16 = sock->port;\n      p_Var15 = (*pppVar13)->log;\n      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);\n      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);\n    }\n  }\n  else {\n    cloexec(fd);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }\n    if (iVar7 != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }\n    iVar8 = 0x3ff;\n    psVar18 = &u;\n    if (sock->privport == 0) {\n      iVar8 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    sVar17 = (sa_family_t)iVar16;\n    if (iVar16 != 1) {\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }\n    if (sock->port != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    pcVar10 = sock->addr->hostname;\n    uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);\n    if (0x6b < uVar12) goto LAB_0007cf70;\n    u.storage.ss_family = sVar17;\n    (*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);\n    sVar14 = 0x6e;\nLAB_0007cd58:\n    nonblock(fd);\n    iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);\n    if (iVar16 < 0) {\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }\n    iVar7 = 0;\n    uxsel_tell(sock);\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n  }\n  if (iVar4 == *(int *)puVar3) {\n    return iVar7;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}\n\n" comment (function_definition "int try_connect(Actual_Socket_conflict sock)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  anon_enum_32 aVar5;\n  addrinfo *paVar6;\n  int fd;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  SockAddr_tag *pSVar11;\n  uint uVar12;\n  Plug pppVar13;\n  socklen_t sVar14;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var15;\n  int iVar16;\n  sa_family_t sVar17;\n  sockaddr_union *psVar18;\n  code *pcVar19;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70),sock);\n  if (-1 < sock->s) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar19 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  pSVar11 = &thisaddr;\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  (*(*sock->plug)->log)(sock->plug,0,pSVar11,sock->port,(char *)0x0,0);\n  aVar5 = sock->addr->superfamily;\n  if (aVar5 == ADDRTYPE_UNSPEC) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar16 = 1;\n  if (aVar5 != ABOUT_TO) {\n    paVar6 = (sock->step).ai;\n    iVar16 = 2;\n    if ((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)) goto LAB_0007cf44;\n  }\n  fd = (*(code *)PTR_socket_000adb5c)(iVar16,2,0);\n  sock->s = fd;\n  if (fd < 0) {\n    piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar7 = *piVar9;\nLAB_0007cc54:\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n    if (iVar7 != 0) {\nLAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);\n      pppVar13 = sock->plug;\n      iVar16 = sock->port;\n      p_Var15 = (*pppVar13)->log;\n      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);\n      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);\n    }\n  }\n  else {\n    cloexec(fd);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }\n    if (iVar7 != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }\n    iVar8 = 0x3ff;\n    psVar18 = &u;\n    if (sock->privport == 0) {\n      iVar8 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    sVar17 = (sa_family_t)iVar16;\n    if (iVar16 != 1) {\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }\n    if (sock->port != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    pcVar10 = sock->addr->hostname;\n    uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);\n    if (0x6b < uVar12) goto LAB_0007cf70;\n    u.storage.ss_family = sVar17;\n    (*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);\n    sVar14 = 0x6e;\nLAB_0007cd58:\n    nonblock(fd);\n    iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);\n    if (iVar16 < 0) {\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }\n    iVar7 = 0;\n    uxsel_tell(sock);\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n  }\n  if (iVar4 == *(int *)puVar3) {\n    return iVar7;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" primitive_type (function_declarator "try_connect(Actual_Socket_conflict sock)" identifier (parameter_list "(Actual_Socket_conflict sock)" ( (parameter_declaration "Actual_Socket_conflict sock" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  anon_enum_32 aVar5;\n  addrinfo *paVar6;\n  int fd;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  SockAddr_tag *pSVar11;\n  uint uVar12;\n  Plug pppVar13;\n  socklen_t sVar14;\n  _func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var15;\n  int iVar16;\n  sa_family_t sVar17;\n  sockaddr_union *psVar18;\n  code *pcVar19;\n  int b;\n  sockaddr_union u;\n  SockAddr_tag thisaddr;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70),sock);\n  if (-1 < sock->s) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar19 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  pSVar11 = &thisaddr;\n  sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);\n  (*(*sock->plug)->log)(sock->plug,0,pSVar11,sock->port,(char *)0x0,0);\n  aVar5 = sock->addr->superfamily;\n  if (aVar5 == ADDRTYPE_UNSPEC) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar16 = 1;\n  if (aVar5 != ABOUT_TO) {\n    paVar6 = (sock->step).ai;\n    iVar16 = 2;\n    if ((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)) goto LAB_0007cf44;\n  }\n  fd = (*(code *)PTR_socket_000adb5c)(iVar16,2,0);\n  sock->s = fd;\n  if (fd < 0) {\n    piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar7 = *piVar9;\nLAB_0007cc54:\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n    if (iVar7 != 0) {\nLAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);\n      pppVar13 = sock->plug;\n      iVar16 = sock->port;\n      p_Var15 = (*pppVar13)->log;\n      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);\n      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);\n    }\n  }\n  else {\n    cloexec(fd);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }\n    if (iVar7 != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }\n    iVar8 = 0x3ff;\n    psVar18 = &u;\n    if (sock->privport == 0) {\n      iVar8 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    sVar17 = (sa_family_t)iVar16;\n    if (iVar16 != 1) {\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }\n    if (sock->port != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    pcVar10 = sock->addr->hostname;\n    uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);\n    if (0x6b < uVar12) goto LAB_0007cf70;\n    u.storage.ss_family = sVar17;\n    (*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);\n    sVar14 = 0x6e;\nLAB_0007cd58:\n    nonblock(fd);\n    iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);\n    if (iVar16 < 0) {\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }\n    iVar7 = 0;\n    uxsel_tell(sock);\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n  }\n  if (iVar4 == *(int *)puVar3) {\n    return iVar7;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "anon_enum_32 aVar5;" type_identifier identifier ;) (declaration "addrinfo *paVar6;" type_identifier (pointer_declarator "*paVar6" * identifier) ;) (declaration "int fd;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "SockAddr_tag *pSVar11;" type_identifier (pointer_declarator "*pSVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "Plug pppVar13;" type_identifier identifier ;) (declaration "socklen_t sVar14;" type_identifier identifier ;) (declaration "_func_void_Plug_int_SockAddr_int_char_ptr_int *p_Var15;" type_identifier (pointer_declarator "*p_Var15" * identifier) ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "sa_family_t sVar17;" type_identifier identifier ;) (declaration "sockaddr_union *psVar18;" type_identifier (pointer_declarator "*psVar18" * identifier) ;) (declaration "code *pcVar19;" type_identifier (pointer_declarator "*pcVar19" * identifier) ;) (declaration "int b;" primitive_type identifier ;) (declaration "sockaddr_union u;" type_identifier identifier ;) (declaration "SockAddr_tag thisaddr;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_000ad2b8;" (assignment_expression "puVar1 = PTR_DAT_000ad2b8" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "iVar4 = *(int *)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000adcd4" * (cast_expression "(int *)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "del234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70),sock);" (call_expression "del234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70),sock)" identifier (argument_list "(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70),sock)" ( (pointer_expression "*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70)" * (cast_expression "(tree234 **)(PTR_DAT_000ad2b8 + -0x1b70)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b70)" ( (binary_expression "PTR_DAT_000ad2b8 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (-1 < sock->s) {\n    (*(code *)PTR_close_000adb18)();\n  }" if (parenthesized_expression "(-1 < sock->s)" ( (binary_expression "-1 < sock->s" number_literal < (field_expression "sock->s" identifier -> field_identifier)) )) (compound_statement "{\n    (*(code *)PTR_close_000adb18)();\n  }" { (expression_statement "(*(code *)PTR_close_000adb18)();" (call_expression "(*(code *)PTR_close_000adb18)()" (parenthesized_expression "(*(code *)PTR_close_000adb18)" ( (pointer_expression "*(code *)PTR_close_000adb18" * (cast_expression "(code *)PTR_close_000adb18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "pcVar19 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);" (assignment_expression "pcVar19 = (code *)(PTR_LAB_000ad2f8 + -0x36e4)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2f8 + -0x36e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2f8 + -0x36e4)" ( (binary_expression "PTR_LAB_000ad2f8 + -0x36e4" identifier + number_literal) )))) ;) (expression_statement "pSVar11 = &thisaddr;" (assignment_expression "pSVar11 = &thisaddr" identifier = (pointer_expression "&thisaddr" & identifier)) ;) (expression_statement "sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step);" (call_expression "sk_extractaddr_tmp(&thisaddr,sock->addr,&sock->step)" identifier (argument_list "(&thisaddr,sock->addr,&sock->step)" ( (pointer_expression "&thisaddr" & identifier) , (field_expression "sock->addr" identifier -> field_identifier) , (pointer_expression "&sock->step" & (field_expression "sock->step" identifier -> field_identifier)) ))) ;) (expression_statement "(*(*sock->plug)->log)(sock->plug,0,pSVar11,sock->port,(char *)0x0,0);" (call_expression "(*(*sock->plug)->log)(sock->plug,0,pSVar11,sock->port,(char *)0x0,0)" (parenthesized_expression "(*(*sock->plug)->log)" ( (pointer_expression "*(*sock->plug)->log" * (field_expression "(*sock->plug)->log" (parenthesized_expression "(*sock->plug)" ( (pointer_expression "*sock->plug" * (field_expression "sock->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(sock->plug,0,pSVar11,sock->port,(char *)0x0,0)" ( (field_expression "sock->plug" identifier -> field_identifier) , number_literal , identifier , (field_expression "sock->port" identifier -> field_identifier) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;) (expression_statement "aVar5 = sock->addr->superfamily;" (assignment_expression "aVar5 = sock->addr->superfamily" identifier = (field_expression "sock->addr->superfamily" (field_expression "sock->addr" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (aVar5 == ADDRTYPE_UNSPEC) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" if (parenthesized_expression "(aVar5 == ADDRTYPE_UNSPEC)" ( (binary_expression "aVar5 == ADDRTYPE_UNSPEC" identifier == identifier) )) (compound_statement "{\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" { (labeled_statement "LAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ae8" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;)) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar16 = 1;" (assignment_expression "iVar16 = 1" identifier = number_literal) ;) (if_statement "if (aVar5 != ABOUT_TO) {\n    paVar6 = (sock->step).ai;\n    iVar16 = 2;\n    if ((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)) goto LAB_0007cf44;\n  }" if (parenthesized_expression "(aVar5 != ABOUT_TO)" ( (binary_expression "aVar5 != ABOUT_TO" identifier != identifier) )) (compound_statement "{\n    paVar6 = (sock->step).ai;\n    iVar16 = 2;\n    if ((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)) goto LAB_0007cf44;\n  }" { (expression_statement "paVar6 = (sock->step).ai;" (assignment_expression "paVar6 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar16 = 2;" (assignment_expression "iVar16 = 2" identifier = number_literal) ;) (if_statement "if ((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)) goto LAB_0007cf44;" if (parenthesized_expression "((paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0))" ( (binary_expression "(paVar6 != (addrinfo *)0x0) && (iVar16 = paVar6->ai_family, iVar16 == 0)" (parenthesized_expression "(paVar6 != (addrinfo *)0x0)" ( (binary_expression "paVar6 != (addrinfo *)0x0" identifier != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar16 = paVar6->ai_family, iVar16 == 0)" ( (comma_expression "iVar16 = paVar6->ai_family, iVar16 == 0" (assignment_expression "iVar16 = paVar6->ai_family" identifier = (field_expression "paVar6->ai_family" identifier -> field_identifier)) , (binary_expression "iVar16 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0007cf44;" goto statement_identifier ;)) })) (expression_statement "fd = (*(code *)PTR_socket_000adb5c)(iVar16,2,0);" (assignment_expression "fd = (*(code *)PTR_socket_000adb5c)(iVar16,2,0)" identifier = (call_expression "(*(code *)PTR_socket_000adb5c)(iVar16,2,0)" (parenthesized_expression "(*(code *)PTR_socket_000adb5c)" ( (pointer_expression "*(code *)PTR_socket_000adb5c" * (cast_expression "(code *)PTR_socket_000adb5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar16,2,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "sock->s = fd;" (assignment_expression "sock->s = fd" (field_expression "sock->s" identifier -> field_identifier) = identifier) ;) (if_statement "if (fd < 0) {\n    piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar7 = *piVar9;\nLAB_0007cc54:\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n    if (iVar7 != 0) {\nLAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);\n      pppVar13 = sock->plug;\n      iVar16 = sock->port;\n      p_Var15 = (*pppVar13)->log;\n      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);\n      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);\n    }\n  }\n  else {\n    cloexec(fd);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }\n    if (iVar7 != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }\n    iVar8 = 0x3ff;\n    psVar18 = &u;\n    if (sock->privport == 0) {\n      iVar8 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    sVar17 = (sa_family_t)iVar16;\n    if (iVar16 != 1) {\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }\n    if (sock->port != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    pcVar10 = sock->addr->hostname;\n    uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);\n    if (0x6b < uVar12) goto LAB_0007cf70;\n    u.storage.ss_family = sVar17;\n    (*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);\n    sVar14 = 0x6e;\nLAB_0007cd58:\n    nonblock(fd);\n    iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);\n    if (iVar16 < 0) {\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }\n    iVar7 = 0;\n    uxsel_tell(sock);\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n  }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n    piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar7 = *piVar9;\nLAB_0007cc54:\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n    if (iVar7 != 0) {\nLAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);\n      pppVar13 = sock->plug;\n      iVar16 = sock->port;\n      p_Var15 = (*pppVar13)->log;\n      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);\n      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);\n    }\n  }" { (expression_statement "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar7 = *piVar9;" (assignment_expression "iVar7 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (labeled_statement "LAB_0007cc54:\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);" statement_identifier : (expression_statement "add234(*(tree234 **)(puVar1 + -0x1b70),sock);" (call_expression "add234(*(tree234 **)(puVar1 + -0x1b70),sock)" identifier (argument_list "(*(tree234 **)(puVar1 + -0x1b70),sock)" ( (pointer_expression "*(tree234 **)(puVar1 + -0x1b70)" * (cast_expression "(tree234 **)(puVar1 + -0x1b70)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;)) (if_statement "if (iVar7 != 0) {\nLAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);\n      pppVar13 = sock->plug;\n      iVar16 = sock->port;\n      p_Var15 = (*pppVar13)->log;\n      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);\n      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);\n      pppVar13 = sock->plug;\n      iVar16 = sock->port;\n      p_Var15 = (*pppVar13)->log;\n      pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);\n      (*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);\n    }" { (labeled_statement "LAB_0007ccd0:\n      (*pcVar19)(&thisaddr,sock->addr,&sock->step);" statement_identifier : (expression_statement "(*pcVar19)(&thisaddr,sock->addr,&sock->step);" (call_expression "(*pcVar19)(&thisaddr,sock->addr,&sock->step)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(&thisaddr,sock->addr,&sock->step)" ( (pointer_expression "&thisaddr" & identifier) , (field_expression "sock->addr" identifier -> field_identifier) , (pointer_expression "&sock->step" & (field_expression "sock->step" identifier -> field_identifier)) ))) ;)) (expression_statement "pppVar13 = sock->plug;" (assignment_expression "pppVar13 = sock->plug" identifier = (field_expression "sock->plug" identifier -> field_identifier)) ;) (expression_statement "iVar16 = sock->port;" (assignment_expression "iVar16 = sock->port" identifier = (field_expression "sock->port" identifier -> field_identifier)) ;) (expression_statement "p_Var15 = (*pppVar13)->log;" (assignment_expression "p_Var15 = (*pppVar13)->log" identifier = (field_expression "(*pppVar13)->log" (parenthesized_expression "(*pppVar13)" ( (pointer_expression "*pppVar13" * identifier) )) -> field_identifier)) ;) (expression_statement "pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7);" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_strerror_000adc54)(iVar7)" identifier = (cast_expression "(char *)(*(code *)PTR_strerror_000adc54)(iVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strerror_000adc54)(iVar7)" (parenthesized_expression "(*(code *)PTR_strerror_000adc54)" ( (pointer_expression "*(code *)PTR_strerror_000adc54" * (cast_expression "(code *)PTR_strerror_000adc54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))))) ;) (expression_statement "(*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7);" (call_expression "(*p_Var15)(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7)" (parenthesized_expression "(*p_Var15)" ( (pointer_expression "*p_Var15" * identifier) )) (argument_list "(pppVar13,1,&thisaddr,iVar16,pcVar10,iVar7)" ( identifier , number_literal , (pointer_expression "&thisaddr" & identifier) , identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    cloexec(fd);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }\n    if (iVar7 != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }\n    iVar8 = 0x3ff;\n    psVar18 = &u;\n    if (sock->privport == 0) {\n      iVar8 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    sVar17 = (sa_family_t)iVar16;\n    if (iVar16 != 1) {\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }\n    if (sock->port != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    pcVar10 = sock->addr->hostname;\n    uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);\n    if (0x6b < uVar12) goto LAB_0007cf70;\n    u.storage.ss_family = sVar17;\n    (*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);\n    sVar14 = 0x6e;\nLAB_0007cd58:\n    nonblock(fd);\n    iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);\n    if (iVar16 < 0) {\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }\n    iVar7 = 0;\n    uxsel_tell(sock);\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n  }" else (compound_statement "{\n    cloexec(fd);\n    if (sock->oobinline != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }\n    if (iVar7 != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }\n    iVar8 = 0x3ff;\n    psVar18 = &u;\n    if (sock->privport == 0) {\n      iVar8 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    sVar17 = (sa_family_t)iVar16;\n    if (iVar16 != 1) {\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }\n    if (sock->port != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    pcVar10 = sock->addr->hostname;\n    uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);\n    if (0x6b < uVar12) goto LAB_0007cf70;\n    u.storage.ss_family = sVar17;\n    (*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);\n    sVar14 = 0x6e;\nLAB_0007cd58:\n    nonblock(fd);\n    iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);\n    if (iVar16 < 0) {\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }\n    iVar7 = 0;\n    uxsel_tell(sock);\n    add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n  }" { (expression_statement "cloexec(fd);" (call_expression "cloexec(fd)" identifier (argument_list "(fd)" ( identifier ))) ;) (if_statement "if (sock->oobinline != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }" if (parenthesized_expression "(sock->oobinline != 0)" ( (binary_expression "sock->oobinline != 0" (field_expression "sock->oobinline" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);\n      if (-1 < iVar7) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      (*(code *)PTR_close_000adb18)(fd);\n      goto LAB_0007cc54;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4);" (assignment_expression "iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(fd,0xffff,0x100,&b,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,0xffff,0x100,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar7) goto LAB_0007cb40;" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (goto_statement "goto LAB_0007cb40;" goto statement_identifier ;)) (labeled_statement "LAB_0007cdf8:\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();" statement_identifier : (expression_statement "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "iVar7 = *piVar9;" (assignment_expression "iVar7 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (expression_statement "(*(code *)PTR_close_000adb18)(fd);" (call_expression "(*(code *)PTR_close_000adb18)(fd)" (parenthesized_expression "(*(code *)PTR_close_000adb18)" ( (pointer_expression "*(code *)PTR_close_000adb18" * (cast_expression "(code *)PTR_close_000adb18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd)" ( identifier ))) ;) (goto_statement "goto LAB_0007cc54;" goto statement_identifier ;) })) (labeled_statement "LAB_0007cb40:\n    if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }" statement_identifier : (if_statement "if (sock->nodelay == 0) {\n      iVar7 = sock->keepalive;\n    }\n    else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }" if (parenthesized_expression "(sock->nodelay == 0)" ( (binary_expression "sock->nodelay == 0" (field_expression "sock->nodelay" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      iVar7 = sock->keepalive;\n    }" { (expression_statement "iVar7 = sock->keepalive;" (assignment_expression "iVar7 = sock->keepalive" identifier = (field_expression "sock->keepalive" identifier -> field_identifier)) ;) }) (else_clause "else {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }" else (compound_statement "{\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n      iVar7 = sock->keepalive;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4);" (assignment_expression "iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(fd,6,1,&b,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,6,1,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (iVar7 < 0) goto LAB_0007cdf8;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0007cdf8;" goto statement_identifier ;)) (expression_statement "iVar7 = sock->keepalive;" (assignment_expression "iVar7 = sock->keepalive" identifier = (field_expression "sock->keepalive" identifier -> field_identifier)) ;) })))) (if_statement "if (iVar7 != 0) {\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      b = 1;\n      iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);\n      if (iVar7 < 0) goto LAB_0007cdf8;\n    }" { (expression_statement "b = 1;" (assignment_expression "b = 1" identifier = number_literal) ;) (expression_statement "iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4);" (assignment_expression "iVar7 = (*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(fd,0xffff,8,&b,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,0xffff,8,&b,4)" ( identifier , number_literal , number_literal , (pointer_expression "&b" & identifier) , number_literal )))) ;) (if_statement "if (iVar7 < 0) goto LAB_0007cdf8;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0007cdf8;" goto statement_identifier ;)) })) (expression_statement "iVar8 = 0x3ff;" (assignment_expression "iVar8 = 0x3ff" identifier = number_literal) ;) (expression_statement "psVar18 = &u;" (assignment_expression "psVar18 = &u" identifier = (pointer_expression "&u" & identifier)) ;) (if_statement "if (sock->privport == 0) {\n      iVar8 = 0;\n    }" if (parenthesized_expression "(sock->privport == 0)" ( (binary_expression "sock->privport == 0" (field_expression "sock->privport" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      iVar8 = 0;\n    }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_memset_000adbf8)(psVar18,0,0x80);" (call_expression "(*(code *)PTR_memset_000adbf8)(psVar18,0,0x80)" (parenthesized_expression "(*(code *)PTR_memset_000adbf8)" ( (pointer_expression "*(code *)PTR_memset_000adbf8" * (cast_expression "(code *)PTR_memset_000adbf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(psVar18,0,0x80)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar2 = PTR_in6addr_any_000adb88;" (assignment_expression "puVar2 = PTR_in6addr_any_000adb88" identifier = identifier) ;) (expression_statement "sVar17 = (sa_family_t)iVar16;" (assignment_expression "sVar17 = (sa_family_t)iVar16" identifier = (cast_expression "(sa_family_t)iVar16" ( (type_descriptor "sa_family_t" type_identifier) ) identifier)) ;) (if_statement "if (iVar16 != 1) {\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }" if (parenthesized_expression "(iVar16 != 1)" ( (binary_expression "iVar16 != 1" identifier != number_literal) )) (compound_statement "{\nLAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }\n      if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar7 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);\n      goto LAB_0007ccd0;\n    }" { (labeled_statement "LAB_0007cbf8:\n      if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }" statement_identifier : (if_statement "if (iVar16 == 10) {\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }\n      else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }" if (parenthesized_expression "(iVar16 == 10)" ( (binary_expression "iVar16 == 10" identifier == number_literal) )) (compound_statement "{\n        u._8_4_ = *(undefined4 *)puVar2;\n        u._12_4_ = *(undefined4 *)(puVar2 + 4);\n        u._16_4_ = *(undefined4 *)(puVar2 + 8);\n        u._20_4_ = *(undefined4 *)(puVar2 + 0xc);\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);\n      }" { (expression_statement "u._8_4_ = *(undefined4 *)puVar2;" (assignment_expression "u._8_4_ = *(undefined4 *)puVar2" (field_expression "u._8_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "u._12_4_ = *(undefined4 *)(puVar2 + 4);" (assignment_expression "u._12_4_ = *(undefined4 *)(puVar2 + 4)" (field_expression "u._12_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(puVar2 + 4)" * (cast_expression "(undefined4 *)(puVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "u._16_4_ = *(undefined4 *)(puVar2 + 8);" (assignment_expression "u._16_4_ = *(undefined4 *)(puVar2 + 8)" (field_expression "u._16_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(puVar2 + 8)" * (cast_expression "(undefined4 *)(puVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "u._20_4_ = *(undefined4 *)(puVar2 + 0xc);" (assignment_expression "u._20_4_ = *(undefined4 *)(puVar2 + 0xc)" (field_expression "u._20_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "u.storage.ss_family = sVar17;" (assignment_expression "u.storage.ss_family = sVar17" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "u.sin.sin_port = (in_port_t)iVar8;" (assignment_expression "u.sin.sin_port = (in_port_t)iVar8" (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier) = (cast_expression "(in_port_t)iVar8" ( (type_descriptor "in_port_t" type_identifier) ) identifier)) ;) (expression_statement "iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c);" (assignment_expression "iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c)" identifier = (call_expression "(*(code *)PTR_bind_000adc08)(fd,psVar18,0x1c)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" ( (pointer_expression "*(code *)PTR_bind_000adc08" * (cast_expression "(code *)PTR_bind_000adc08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,psVar18,0x1c)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }" else (compound_statement "{\n        if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        u.sin6.sin6_flowinfo = 0;\n        u.storage.ss_family = sVar17;\n        u.sin.sin_port = (in_port_t)iVar8;\n        iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);\n      }" { (if_statement "if (iVar16 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" if (parenthesized_expression "(iVar16 != 2)" ( (binary_expression "iVar16 != 2" identifier != number_literal) )) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ad4" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "u.sin6.sin6_flowinfo = 0;" (assignment_expression "u.sin6.sin6_flowinfo = 0" (field_expression "u.sin6.sin6_flowinfo" (field_expression "u.sin6" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "u.storage.ss_family = sVar17;" (assignment_expression "u.storage.ss_family = sVar17" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "u.sin.sin_port = (in_port_t)iVar8;" (assignment_expression "u.sin.sin_port = (in_port_t)iVar8" (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier) = (cast_expression "(in_port_t)iVar8" ( (type_descriptor "in_port_t" type_identifier) ) identifier)) ;) (expression_statement "iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10);" (assignment_expression "iVar7 = (*(code *)PTR_bind_000adc08)(fd,psVar18,0x10)" identifier = (call_expression "(*(code *)PTR_bind_000adc08)(fd,psVar18,0x10)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" ( (pointer_expression "*(code *)PTR_bind_000adc08" * (cast_expression "(code *)PTR_bind_000adc08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,psVar18,0x10)" ( identifier , identifier , number_literal )))) ;) })))) (if_statement "if (-1 < iVar7) {\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (compound_statement "{\nLAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        paVar6 = (sock->step).ai;\n        psVar18 = (sockaddr_union *)paVar6->ai_addr;\n        sVar14 = paVar6->ai_addrlen;\n        (psVar18->sin).sin_port = (in_port_t)sock->port;\n        goto LAB_0007cd58;\n      }" { (labeled_statement "LAB_0007cd34:\n        if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" statement_identifier : (if_statement "if ((iVar16 != 2) && (iVar16 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" if (parenthesized_expression "((iVar16 != 2) && (iVar16 != 10))" ( (binary_expression "(iVar16 != 2) && (iVar16 != 10)" (parenthesized_expression "(iVar16 != 2)" ( (binary_expression "iVar16 != 2" identifier != number_literal) )) && (parenthesized_expression "(iVar16 != 10)" ( (binary_expression "iVar16 != 10" identifier != number_literal) ))) )) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6a7c" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "paVar6 = (sock->step).ai;" (assignment_expression "paVar6 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "psVar18 = (sockaddr_union *)paVar6->ai_addr;" (assignment_expression "psVar18 = (sockaddr_union *)paVar6->ai_addr" identifier = (cast_expression "(sockaddr_union *)paVar6->ai_addr" ( (type_descriptor "sockaddr_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "paVar6->ai_addr" identifier -> field_identifier))) ;) (expression_statement "sVar14 = paVar6->ai_addrlen;" (assignment_expression "sVar14 = paVar6->ai_addrlen" identifier = (field_expression "paVar6->ai_addrlen" identifier -> field_identifier)) ;) (expression_statement "(psVar18->sin).sin_port = (in_port_t)sock->port;" (assignment_expression "(psVar18->sin).sin_port = (in_port_t)sock->port" (field_expression "(psVar18->sin).sin_port" (parenthesized_expression "(psVar18->sin)" ( (field_expression "psVar18->sin" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(in_port_t)sock->port" ( (type_descriptor "in_port_t" type_identifier) ) (field_expression "sock->port" identifier -> field_identifier))) ;) (goto_statement "goto LAB_0007cd58;" goto statement_identifier ;) })) (expression_statement "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar7 = *piVar9;" (assignment_expression "iVar7 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (if_statement "if (iVar7 == 0x7d) {\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" if (parenthesized_expression "(iVar7 == 0x7d)" ( (binary_expression "iVar7 == 0x7d" identifier == number_literal) )) (compound_statement "{\n        uVar12 = iVar8 - 1;\n        if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" { (expression_statement "uVar12 = iVar8 - 1;" (assignment_expression "uVar12 = iVar8 - 1" identifier = (binary_expression "iVar8 - 1" identifier - number_literal)) ;) (if_statement "if ((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)) goto LAB_0007ccbc;" if (parenthesized_expression "((iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0))" ( (binary_expression "(iVar8 == 0) || (iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)" (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0)" ( (comma_expression "iVar8 = (int)(short)uVar12, (uVar12 & 0xffff) == 0" (assignment_expression "iVar8 = (int)(short)uVar12" identifier = (cast_expression "(int)(short)uVar12" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)uVar12" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) , (binary_expression "(uVar12 & 0xffff) == 0" (parenthesized_expression "(uVar12 & 0xffff)" ( (binary_expression "uVar12 & 0xffff" identifier & number_literal) )) == number_literal)) ))) )) (goto_statement "goto LAB_0007ccbc;" goto statement_identifier ;)) (goto_statement "goto LAB_0007cbf8;" goto statement_identifier ;) })) (if_statement "if (iVar7 == 0) goto LAB_0007cd34;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007cd34;" goto statement_identifier ;)) (labeled_statement "LAB_0007ccbc:\n      add234(*(tree234 **)(puVar1 + -0x1b70),sock);" statement_identifier : (expression_statement "add234(*(tree234 **)(puVar1 + -0x1b70),sock);" (call_expression "add234(*(tree234 **)(puVar1 + -0x1b70),sock)" identifier (argument_list "(*(tree234 **)(puVar1 + -0x1b70),sock)" ( (pointer_expression "*(tree234 **)(puVar1 + -0x1b70)" * (cast_expression "(tree234 **)(puVar1 + -0x1b70)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;)) (goto_statement "goto LAB_0007ccd0;" goto statement_identifier ;) })) (if_statement "if (sock->port != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" if (parenthesized_expression "(sock->port != 0)" ( (binary_expression "sock->port != 0" (field_expression "sock->port" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ac0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "pcVar10 = sock->addr->hostname;" (assignment_expression "pcVar10 = sock->addr->hostname" identifier = (field_expression "sock->addr->hostname" (field_expression "sock->addr" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10);" (assignment_expression "uVar12 = (*(code *)PTR_strlen_000adc28)(pcVar10)" identifier = (call_expression "(*(code *)PTR_strlen_000adc28)(pcVar10)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" ( (pointer_expression "*(code *)PTR_strlen_000adc28" * (cast_expression "(code *)PTR_strlen_000adc28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (0x6b < uVar12) goto LAB_0007cf70;" if (parenthesized_expression "(0x6b < uVar12)" ( (binary_expression "0x6b < uVar12" number_literal < identifier) )) (goto_statement "goto LAB_0007cf70;" goto statement_identifier ;)) (expression_statement "u.storage.ss_family = sVar17;" (assignment_expression "u.storage.ss_family = sVar17" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c);" (call_expression "(*(code *)PTR___memcpy_chk_000adc50)(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c)" (parenthesized_expression "(*(code *)PTR___memcpy_chk_000adc50)" ( (pointer_expression "*(code *)PTR___memcpy_chk_000adc50" * (cast_expression "(code *)PTR___memcpy_chk_000adc50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(u.storage.__ss_padding,pcVar10,uVar12 + 1,0x6c)" ( (field_expression "u.storage.__ss_padding" (field_expression "u.storage" identifier . field_identifier) . field_identifier) , identifier , (binary_expression "uVar12 + 1" identifier + number_literal) , number_literal ))) ;) (expression_statement "sVar14 = 0x6e;" (assignment_expression "sVar14 = 0x6e" identifier = number_literal) ;) (labeled_statement "LAB_0007cd58:\n    nonblock(fd);" statement_identifier : (expression_statement "nonblock(fd);" (call_expression "nonblock(fd)" identifier (argument_list "(fd)" ( identifier ))) ;)) (expression_statement "iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14);" (assignment_expression "iVar16 = (*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14)" identifier = (call_expression "(*(code *)PTR_connect_000adb20)(fd,psVar18,sVar14)" (parenthesized_expression "(*(code *)PTR_connect_000adb20)" ( (pointer_expression "*(code *)PTR_connect_000adb20" * (cast_expression "(code *)PTR_connect_000adb20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,psVar18,sVar14)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar16 < 0) {\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }" if (parenthesized_expression "(iVar16 < 0)" ( (binary_expression "iVar16 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar7 = *piVar9;\n      if (iVar7 != 0x96) goto LAB_0007cc54;\n    }" { (expression_statement "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar9 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar7 = *piVar9;" (assignment_expression "iVar7 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (if_statement "if (iVar7 != 0x96) goto LAB_0007cc54;" if (parenthesized_expression "(iVar7 != 0x96)" ( (binary_expression "iVar7 != 0x96" identifier != number_literal) )) (goto_statement "goto LAB_0007cc54;" goto statement_identifier ;)) }) (else_clause "else {\n      sock->connected = 1;\n      sock->writable = 1;\n    }" else (compound_statement "{\n      sock->connected = 1;\n      sock->writable = 1;\n    }" { (expression_statement "sock->connected = 1;" (assignment_expression "sock->connected = 1" (field_expression "sock->connected" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->writable = 1;" (assignment_expression "sock->writable = 1" (field_expression "sock->writable" identifier -> field_identifier) = number_literal) ;) }))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uxsel_tell(sock);" (call_expression "uxsel_tell(sock)" identifier (argument_list "(sock)" ( identifier ))) ;) (expression_statement "add234(*(tree234 **)(puVar1 + -0x1b70),sock);" (call_expression "add234(*(tree234 **)(puVar1 + -0x1b70),sock)" identifier (argument_list "(*(tree234 **)(puVar1 + -0x1b70),sock)" ( (pointer_expression "*(tree234 **)(puVar1 + -0x1b70)" * (cast_expression "(tree234 **)(puVar1 + -0x1b70)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;) }))) (if_statement "if (iVar4 == *(int *)puVar3) {\n    return iVar7;\n  }" if (parenthesized_expression "(iVar4 == *(int *)puVar3)" ( (binary_expression "iVar4 == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar7;\n  }" { (return_statement "return iVar7;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ab0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;)) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int FUN_0007c9f8(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}\n\n" (function_definition "int FUN_0007c9f8(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0007c9f8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined2 uVar14;" type_identifier identifier ;) (declaration "undefined4 uVar13;" type_identifier identifier ;) (declaration "undefined2 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "code *pcVar16;" type_identifier (pointer_declarator "*pcVar16" * identifier) ;) (declaration "undefined4 local_2c0;" type_identifier identifier ;) (declaration "undefined2 local_2bc;" type_identifier identifier ;) (declaration "undefined2 local_2ba;" type_identifier identifier ;) (declaration "undefined4 local_2b8;" type_identifier identifier ;) (declaration "undefined4 local_2b4;" type_identifier identifier ;) (declaration "undefined4 local_2b0;" type_identifier identifier ;) (declaration "undefined4 local_2ac;" type_identifier identifier ;) (declaration "undefined4 local_2a8;" type_identifier identifier ;) (declaration "undefined1 auStack_23c [528];" type_identifier (array_declarator "auStack_23c [528]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_000ad2b8;" (assignment_expression "puVar1 = PTR_DAT_000ad2b8" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000adcd4" * (cast_expression "(int *)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);" (call_expression "del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70)" * (cast_expression "(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b70)" ( (binary_expression "PTR_DAT_000ad2b8 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 8))" ( (binary_expression "-1 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR_close_000adb18)();\n  }" { (expression_statement "(*(code *)PTR_close_000adb18)();" (call_expression "(*(code *)PTR_close_000adb18)()" (parenthesized_expression "(*(code *)PTR_close_000adb18)" ( (pointer_expression "*(code *)PTR_close_000adb18" * (cast_expression "(code *)PTR_close_000adb18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);" (assignment_expression "pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4)" identifier = (cast_expression "(code *)(PTR_LAB_000ad2f8 + -0x36e4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000ad2f8 + -0x36e4)" ( (binary_expression "PTR_LAB_000ad2f8 + -0x36e4" identifier + number_literal) )))) ;) (expression_statement "puVar9 = auStack_23c;" (assignment_expression "puVar9 = auStack_23c" identifier = identifier) ;) (expression_statement "FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));" (call_expression "FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c))" identifier (argument_list "(auStack_23c,*(undefined4 *)(param_1 + 0x5c))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) ))) ;) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" ( (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))))))) )) (argument_list "(*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0)" ( (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x5c) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x5c) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x5c) + 8" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" { (labeled_statement "LAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ae8" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;)) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" identifier = number_literal) ;) (if_statement "if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (compound_statement "{\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }" { (expression_statement "iVar12 = 2;" (assignment_expression "iVar12 = 2" identifier = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;" if (parenthesized_expression "((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0))" ( (binary_expression "(*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x60) != 0)" ( (binary_expression "*(int *)(param_1 + 0x60) != 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)" ( (comma_expression "iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0" (assignment_expression "iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "iVar12 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0007cf44;" goto statement_identifier ;)) })) (expression_statement "iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);" (assignment_expression "iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0)" identifier = (call_expression "(*(code *)PTR_socket_000adb5c)(iVar12,2,0)" (parenthesized_expression "(*(code *)PTR_socket_000adb5c)" ( (pointer_expression "*(code *)PTR_socket_000adb5c" * (cast_expression "(code *)PTR_socket_000adb5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar12,2,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar4;" (assignment_expression "*(int *)(param_1 + 8) = iVar4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }" { (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (labeled_statement "LAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" statement_identifier : (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" * (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;)) (if_statement "if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }" { (labeled_statement "LAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);" statement_identifier : (expression_statement "(*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);" (call_expression "(*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60)" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) , (binary_expression "param_1 + 0x60" identifier + number_literal) ))) ;)) (expression_statement "puVar11 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar11 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar13 = *(undefined4 *)(param_1 + 0x58);" (assignment_expression "uVar13 = *(undefined4 *)(param_1 + 0x58)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "pcVar16 = *(code **)*puVar11;" (assignment_expression "pcVar16 = *(code **)*puVar11" identifier = (pointer_expression "*(code **)*puVar11" * (cast_expression "(code **)*puVar11" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*puVar11" * identifier)))) ;) (expression_statement "uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);" (assignment_expression "uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5)" identifier = (call_expression "(*(code *)PTR_strerror_000adc54)(iVar5)" (parenthesized_expression "(*(code *)PTR_strerror_000adc54)" ( (pointer_expression "*(code *)PTR_strerror_000adc54" * (cast_expression "(code *)PTR_strerror_000adc54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "(*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);" (call_expression "(*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5)" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "(puVar11,1,auStack_23c,uVar13,uVar8,iVar5)" ( identifier , number_literal , identifier , identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" else (compound_statement "{\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" { (expression_statement "cloexec(iVar4);" (call_expression "cloexec(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }" { (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0xffff,0x100,&local_2c0,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2c0" & identifier) , number_literal )))) ;) (if_statement "if (-1 < iVar5) goto LAB_0007cb40;" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (goto_statement "goto LAB_0007cb40;" goto statement_identifier ;)) (labeled_statement "LAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" statement_identifier : (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "(*(code *)PTR_close_000adb18)(iVar4);" (call_expression "(*(code *)PTR_close_000adb18)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_000adb18)" ( (pointer_expression "*(code *)PTR_close_000adb18" * (cast_expression "(code *)PTR_close_000adb18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_0007cc54;" goto statement_identifier ;) })) (labeled_statement "LAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" else (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" { (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,6,1,&local_2c0,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2c0" & identifier) , number_literal )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0007cdf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0007cdf8;" goto statement_identifier ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x50)" identifier = (pointer_expression "*(int *)(param_1 + 0x50)" * (cast_expression "(int *)(param_1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) })))) (if_statement "if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }" { (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4)" identifier = (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" ( (pointer_expression "*(code *)PTR_setsockopt_000add2c" * (cast_expression "(code *)PTR_setsockopt_000add2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0xffff,8,&local_2c0,4)" ( identifier , number_literal , number_literal , (pointer_expression "&local_2c0" & identifier) , number_literal )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0007cdf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0007cdf8;" goto statement_identifier ;)) })) (expression_statement "iVar6 = 0x3ff;" (assignment_expression "iVar6 = 0x3ff" identifier = number_literal) ;) (expression_statement "puVar15 = &local_2bc;" (assignment_expression "puVar15 = &local_2bc" identifier = (pointer_expression "&local_2bc" & identifier)) ;) (if_statement "if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) == 0)" ( (binary_expression "*(int *)(param_1 + 0x54) == 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);" (call_expression "(*(code *)PTR_memset_000adbf8)(puVar15,0,0x80)" (parenthesized_expression "(*(code *)PTR_memset_000adbf8)" ( (pointer_expression "*(code *)PTR_memset_000adbf8" * (cast_expression "(code *)PTR_memset_000adbf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar15,0,0x80)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar2 = PTR_in6addr_any_000adb88;" (assignment_expression "puVar2 = PTR_in6addr_any_000adb88" identifier = identifier) ;) (expression_statement "uVar14 = (undefined2)iVar12;" (assignment_expression "uVar14 = (undefined2)iVar12" identifier = (cast_expression "(undefined2)iVar12" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (if_statement "if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }" if (parenthesized_expression "(iVar12 != 1)" ( (binary_expression "iVar12 != 1" identifier != number_literal) )) (compound_statement "{\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }" { (labeled_statement "LAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" statement_identifier : (if_statement "if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" if (parenthesized_expression "(iVar12 == 10)" ( (binary_expression "iVar12 == 10" identifier == number_literal) )) (compound_statement "{\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }" { (expression_statement "local_2b4 = *(undefined4 *)puVar2;" (assignment_expression "local_2b4 = *(undefined4 *)puVar2" identifier = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_2b0 = *(undefined4 *)(puVar2 + 4);" (assignment_expression "local_2b0 = *(undefined4 *)(puVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 4)" * (cast_expression "(undefined4 *)(puVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_2ac = *(undefined4 *)(puVar2 + 8);" (assignment_expression "local_2ac = *(undefined4 *)(puVar2 + 8)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 8)" * (cast_expression "(undefined4 *)(puVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_2a8 = *(undefined4 *)(puVar2 + 0xc);" (assignment_expression "local_2a8 = *(undefined4 *)(puVar2 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" identifier = identifier) ;) (expression_statement "local_2ba = (short)iVar6;" (assignment_expression "local_2ba = (short)iVar6" identifier = (cast_expression "(short)iVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);" (assignment_expression "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c)" identifier = (call_expression "(*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" ( (pointer_expression "*(code *)PTR_bind_000adc08" * (cast_expression "(code *)PTR_bind_000adc08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar15,0x1c)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" else (compound_statement "{\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" { (if_statement "if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" if (parenthesized_expression "(iVar12 != 2)" ( (binary_expression "iVar12 != 2" identifier != number_literal) )) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ad4" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "local_2b8 = 0;" (assignment_expression "local_2b8 = 0" identifier = number_literal) ;) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" identifier = identifier) ;) (expression_statement "local_2ba = (short)iVar6;" (assignment_expression "local_2ba = (short)iVar6" identifier = (cast_expression "(short)iVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);" (assignment_expression "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10)" identifier = (call_expression "(*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" ( (pointer_expression "*(code *)PTR_bind_000adc08" * (cast_expression "(code *)PTR_bind_000adc08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar15,0x10)" ( identifier , identifier , number_literal )))) ;) })))) (if_statement "if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (compound_statement "{\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }" { (labeled_statement "LAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" statement_identifier : (if_statement "if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" if (parenthesized_expression "((iVar12 != 2) && (iVar12 != 10))" ( (binary_expression "(iVar12 != 2) && (iVar12 != 10)" (parenthesized_expression "(iVar12 != 2)" ( (binary_expression "iVar12 != 2" identifier != number_literal) )) && (parenthesized_expression "(iVar12 != 10)" ( (binary_expression "iVar12 != 10" identifier != number_literal) ))) )) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6a7c" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);" (assignment_expression "puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" identifier = (pointer_expression "*(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" * (cast_expression "(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" ( (type_descriptor "undefined2 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x14" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x10" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);" (assignment_expression "puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58)" (subscript_expression "puVar15[1]" identifier [ number_literal ]) = (cast_expression "(short)*(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))))) ;) (goto_statement "goto LAB_0007cd58;" goto statement_identifier ;) })) (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" if (parenthesized_expression "(iVar5 == 0x7d)" ( (binary_expression "iVar5 == 0x7d" identifier == number_literal) )) (compound_statement "{\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" { (expression_statement "uVar10 = iVar6 - 1;" (assignment_expression "uVar10 = iVar6 - 1" identifier = (binary_expression "iVar6 - 1" identifier - number_literal)) ;) (if_statement "if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;" if (parenthesized_expression "((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0))" ( (binary_expression "(iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)" (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)" ( (comma_expression "iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0" (assignment_expression "iVar6 = (int)(short)uVar10" identifier = (cast_expression "(int)(short)uVar10" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)uVar10" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) , (binary_expression "(uVar10 & 0xffff) == 0" (parenthesized_expression "(uVar10 & 0xffff)" ( (binary_expression "uVar10 & 0xffff" identifier & number_literal) )) == number_literal)) ))) )) (goto_statement "goto LAB_0007ccbc;" goto statement_identifier ;)) (goto_statement "goto LAB_0007cbf8;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 0) goto LAB_0007cd34;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007cd34;" goto statement_identifier ;)) (labeled_statement "LAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" statement_identifier : (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" * (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;)) (goto_statement "goto LAB_0007ccd0;" goto statement_identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" ( (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" { (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ac0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar12 = *(int *)(param_1 + 0x5c) + 0x10;" (assignment_expression "iVar12 = *(int *)(param_1 + 0x5c) + 0x10" identifier = (binary_expression "*(int *)(param_1 + 0x5c) + 0x10" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);" (assignment_expression "uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12)" identifier = (call_expression "(*(code *)PTR_strlen_000adc28)(iVar12)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" ( (pointer_expression "*(code *)PTR_strlen_000adc28" * (cast_expression "(code *)PTR_strlen_000adc28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar12)" ( identifier )))) ;) (if_statement "if (0x6b < uVar10) goto LAB_0007cf70;" if (parenthesized_expression "(0x6b < uVar10)" ( (binary_expression "0x6b < uVar10" number_literal < identifier) )) (goto_statement "goto LAB_0007cf70;" goto statement_identifier ;)) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" identifier = identifier) ;) (expression_statement "(*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);" (call_expression "(*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c)" (parenthesized_expression "(*(code *)PTR___memcpy_chk_000adc50)" ( (pointer_expression "*(code *)PTR___memcpy_chk_000adc50" * (cast_expression "(code *)PTR___memcpy_chk_000adc50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_2ba,iVar12,uVar10 + 1,0x6c)" ( (pointer_expression "&local_2ba" & identifier) , identifier , (binary_expression "uVar10 + 1" identifier + number_literal) , number_literal ))) ;) (expression_statement "uVar8 = 0x6e;" (assignment_expression "uVar8 = 0x6e" identifier = number_literal) ;) (labeled_statement "LAB_0007cd58:\n    nonblock(iVar4);" statement_identifier : (expression_statement "nonblock(iVar4);" (call_expression "nonblock(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);" (assignment_expression "iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8)" identifier = (call_expression "(*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8)" (parenthesized_expression "(*(code *)PTR_connect_000adb20)" ( (pointer_expression "*(code *)PTR_connect_000adb20" * (cast_expression "(code *)PTR_connect_000adb20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar15,uVar8)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }" { (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" ( (pointer_expression "*(code *)PTR___errno_location_000adbe4" * (cast_expression "(code *)PTR___errno_location_000adbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar5 != 0x96) goto LAB_0007cc54;" if (parenthesized_expression "(iVar5 != 0x96)" ( (binary_expression "iVar5 != 0x96" identifier != number_literal) )) (goto_statement "goto LAB_0007cc54;" goto statement_identifier ;)) }) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" else (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_0007c630(param_1);" (call_expression "FUN_0007c630(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" identifier (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" * (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x1b70)" ( (binary_expression "puVar1 + -0x1b70" identifier + number_literal) )))) , identifier ))) ;) }))) (if_statement "if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar3)" ( (binary_expression "local_2c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x6ab0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x690c" identifier + number_literal) )))) ;)) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) ))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , IDENT , IDENT , IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;)) (return_statement return IDENT ;) })))
(function_definition "int FUN_0007c9f8(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_0007c9f8(int param_1)" (identifier "FUN_0007c9f8") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  uint uVar10;\n  undefined4 *puVar11;\n  int iVar12;\n  undefined2 uVar14;\n  undefined4 uVar13;\n  undefined2 *puVar15;\n  code *pcVar16;\n  undefined4 local_2c0;\n  undefined2 local_2bc;\n  undefined2 local_2ba;\n  undefined4 local_2b8;\n  undefined4 local_2b4;\n  undefined4 local_2b0;\n  undefined4 local_2ac;\n  undefined4 local_2a8;\n  undefined1 auStack_23c [528];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  puVar1 = PTR_DAT_000ad2b8;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);\n  if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }\n  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);\n  puVar9 = auStack_23c;\n  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));\n  (**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);\n  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);\n  if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }\n  iVar12 = 1;\n  if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }\n  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);\n  *(int *)(param_1 + 8) = iVar4;\n  if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }\n  if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_000adca4)();\nLAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);\n  return iVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "undefined4 *puVar11;" (type_identifier "undefined4") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "undefined2 uVar14;" (type_identifier "undefined2") (identifier "uVar14") (; ";")) (declaration "undefined4 uVar13;" (type_identifier "undefined4") (identifier "uVar13") (; ";")) (declaration "undefined2 *puVar15;" (type_identifier "undefined2") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "code *pcVar16;" (type_identifier "code") (pointer_declarator "*pcVar16" (* "*") (identifier "pcVar16")) (; ";")) (declaration "undefined4 local_2c0;" (type_identifier "undefined4") (identifier "local_2c0") (; ";")) (declaration "undefined2 local_2bc;" (type_identifier "undefined2") (identifier "local_2bc") (; ";")) (declaration "undefined2 local_2ba;" (type_identifier "undefined2") (identifier "local_2ba") (; ";")) (declaration "undefined4 local_2b8;" (type_identifier "undefined4") (identifier "local_2b8") (; ";")) (declaration "undefined4 local_2b4;" (type_identifier "undefined4") (identifier "local_2b4") (; ";")) (declaration "undefined4 local_2b0;" (type_identifier "undefined4") (identifier "local_2b0") (; ";")) (declaration "undefined4 local_2ac;" (type_identifier "undefined4") (identifier "local_2ac") (; ";")) (declaration "undefined4 local_2a8;" (type_identifier "undefined4") (identifier "local_2a8") (; ";")) (declaration "undefined1 auStack_23c [528];" (type_identifier "undefined1") (array_declarator "auStack_23c [528]" (identifier "auStack_23c") ([ "[") (number_literal "528") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000adcd4" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_000adcd4")) (; ";")) (expression_statement "puVar1 = PTR_DAT_000ad2b8;" (assignment_expression "puVar1 = PTR_DAT_000ad2b8" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000ad2b8")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000adcd4" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000adcd4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000adcd4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000adcd4")))) (; ";")) (expression_statement "del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);" (call_expression "del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1)" (identifier "del234") (argument_list "(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1)" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b70)" (( "(") (binary_expression "PTR_DAT_000ad2b8 + -0x1b70" (identifier "PTR_DAT_000ad2b8") (+ "+") (number_literal "-0x1b70")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (-1 < *(int *)(param_1 + 8)) {\n    (*(code *)PTR_close_000adb18)();\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(param_1 + 8))" (( "(") (binary_expression "-1 < *(int *)(param_1 + 8)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    (*(code *)PTR_close_000adb18)();\n  }" ({ "{") (expression_statement "(*(code *)PTR_close_000adb18)();" (call_expression "(*(code *)PTR_close_000adb18)()" (parenthesized_expression "(*(code *)PTR_close_000adb18)" (( "(") (pointer_expression "*(code *)PTR_close_000adb18" (* "*") (cast_expression "(code *)PTR_close_000adb18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000adb18"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);" (assignment_expression "pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4)" (identifier "pcVar16") (= "=") (cast_expression "(code *)(PTR_LAB_000ad2f8 + -0x36e4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000ad2f8 + -0x36e4)" (( "(") (binary_expression "PTR_LAB_000ad2f8 + -0x36e4" (identifier "PTR_LAB_000ad2f8") (+ "+") (number_literal "-0x36e4")) () ")")))) (; ";")) (expression_statement "puVar9 = auStack_23c;" (assignment_expression "puVar9 = auStack_23c" (identifier "puVar9") (= "=") (identifier "auStack_23c")) (; ";")) (expression_statement "FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));" (call_expression "FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c))" (identifier "FUN_0007c91c") (argument_list "(auStack_23c,*(undefined4 *)(param_1 + 0x5c))" (( "(") (identifier "auStack_23c") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) () ")"))) (; ";")) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))\n            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" (( "(") (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" (* "*") (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 0xc)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))))))) () ")")) (argument_list "(*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0)" (( "(") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "0") (, ",") (identifier "puVar9") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x5c) + 8)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x5c) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x5c) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x5c) + 8" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);\n    return iVar4;\n  }" ({ "{") (labeled_statement "LAB_0007cf44:\n    iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" (statement_identifier "LAB_0007cf44") (: ":") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000adb00" (* "*") (cast_expression "(code *)PTR___assert_fail_000adb00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000adb00"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,\n                       PTR_DAT_000ad2d0 + -0x690c)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x6ae8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6ae8")) (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6af8")) (, ",") (number_literal "0x25a") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x690c" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x690c")) () ")")))) (; ";"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" (identifier "iVar12") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar4 != 1) {\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }" (if "if") (parenthesized_expression "(iVar4 != 1)" (( "(") (binary_expression "iVar4 != 1" (identifier "iVar4") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    iVar12 = 2;\n    if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;\n  }" ({ "{") (expression_statement "iVar12 = 2;" (assignment_expression "iVar12 = 2" (identifier "iVar12") (= "=") (number_literal "2")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x60) != 0) &&\n       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x60) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) != 0" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)" (( "(") (comma_expression "iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0" (assignment_expression "iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x60) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + 4" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (, ",") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_0007cf44;" (goto "goto") (statement_identifier "LAB_0007cf44") (; ";"))) (} "}"))) (expression_statement "iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);" (assignment_expression "iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_socket_000adb5c)(iVar12,2,0)" (parenthesized_expression "(*(code *)PTR_socket_000adb5c)" (( "(") (pointer_expression "*(code *)PTR_socket_000adb5c" (* "*") (cast_expression "(code *)PTR_socket_000adb5c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_socket_000adb5c"))) () ")")) (argument_list "(iVar12,2,0)" (( "(") (identifier "iVar12") (, ",") (number_literal "2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar4;" (assignment_expression "*(int *)(param_1 + 8) = iVar4" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 < 0) {\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }\n  else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n    iVar5 = *piVar7;\nLAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n    if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }\n  }" ({ "{") (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" (identifier "piVar7") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000adbe4" (* "*") (cast_expression "(code *)PTR___errno_location_000adbe4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000adbe4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" (identifier "iVar5") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (labeled_statement "LAB_0007cc54:\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (statement_identifier "LAB_0007cc54") (: ":") (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" (identifier "add234") (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x1b70)" (( "(") (binary_expression "puVar1 + -0x1b70" (identifier "puVar1") (+ "+") (number_literal "-0x1b70")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";"))) (if_statement "if (iVar5 != 0) {\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);\n      puVar11 = *(undefined4 **)(param_1 + 0xc);\n      uVar13 = *(undefined4 *)(param_1 + 0x58);\n      pcVar16 = *(code **)*puVar11;\n      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);\n      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);\n    }" ({ "{") (labeled_statement "LAB_0007ccd0:\n      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);" (statement_identifier "LAB_0007ccd0") (: ":") (expression_statement "(*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);" (call_expression "(*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60)" (parenthesized_expression "(*pcVar16)" (( "(") (pointer_expression "*pcVar16" (* "*") (identifier "pcVar16")) () ")")) (argument_list "(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60)" (( "(") (identifier "auStack_23c") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (, ",") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))) (; ";"))) (expression_statement "puVar11 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar11 = *(undefined4 **)(param_1 + 0xc)" (identifier "puVar11") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar13 = *(undefined4 *)(param_1 + 0x58);" (assignment_expression "uVar13 = *(undefined4 *)(param_1 + 0x58)" (identifier "uVar13") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (expression_statement "pcVar16 = *(code **)*puVar11;" (assignment_expression "pcVar16 = *(code **)*puVar11" (identifier "pcVar16") (= "=") (pointer_expression "*(code **)*puVar11" (* "*") (cast_expression "(code **)*puVar11" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*puVar11" (* "*") (identifier "puVar11"))))) (; ";")) (expression_statement "uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);" (assignment_expression "uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5)" (identifier "uVar8") (= "=") (call_expression "(*(code *)PTR_strerror_000adc54)(iVar5)" (parenthesized_expression "(*(code *)PTR_strerror_000adc54)" (( "(") (pointer_expression "*(code *)PTR_strerror_000adc54" (* "*") (cast_expression "(code *)PTR_strerror_000adc54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_000adc54"))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "(*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);" (call_expression "(*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5)" (parenthesized_expression "(*pcVar16)" (( "(") (pointer_expression "*pcVar16" (* "*") (identifier "pcVar16")) () ")")) (argument_list "(puVar11,1,auStack_23c,uVar13,uVar8,iVar5)" (( "(") (identifier "puVar11") (, ",") (number_literal "1") (, ",") (identifier "auStack_23c") (, ",") (identifier "uVar13") (, ",") (identifier "uVar8") (, ",") (identifier "iVar5") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" (else "else") (compound_statement "{\n    cloexec(iVar4);\n    if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }\nLAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }\n    iVar6 = 0x3ff;\n    puVar15 = &local_2bc;\n    if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }\n    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);\n    puVar2 = PTR_in6addr_any_000adb88;\n    uVar14 = (undefined2)iVar12;\n    if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }\n    if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }\n    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;\n    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);\n    if (0x6b < uVar10) goto LAB_0007cf70;\n    local_2bc = uVar14;\n    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);\n    uVar8 = 0x6e;\nLAB_0007cd58:\n    nonblock(iVar4);\n    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);\n    if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }\n    iVar5 = 0;\n    FUN_0007c630(param_1);\n    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n  }" ({ "{") (expression_statement "cloexec(iVar4);" (call_expression "cloexec(iVar4)" (identifier "cloexec") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);\n      if (-1 < iVar5) goto LAB_0007cb40;\nLAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      (*(code *)PTR_close_000adb18)(iVar4);\n      goto LAB_0007cc54;\n    }" ({ "{") (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" (identifier "local_2c0") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" (( "(") (pointer_expression "*(code *)PTR_setsockopt_000add2c" (* "*") (cast_expression "(code *)PTR_setsockopt_000add2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_setsockopt_000add2c"))) () ")")) (argument_list "(iVar4,0xffff,0x100,&local_2c0,4)" (( "(") (identifier "iVar4") (, ",") (number_literal "0xffff") (, ",") (number_literal "0x100") (, ",") (pointer_expression "&local_2c0" (& "&") (identifier "local_2c0")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (-1 < iVar5) goto LAB_0007cb40;" (if "if") (parenthesized_expression "(-1 < iVar5)" (( "(") (binary_expression "-1 < iVar5" (number_literal "-1") (< "<") (identifier "iVar5")) () ")")) (goto_statement "goto LAB_0007cb40;" (goto "goto") (statement_identifier "LAB_0007cb40") (; ";"))) (labeled_statement "LAB_0007cdf8:\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (statement_identifier "LAB_0007cdf8") (: ":") (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" (identifier "piVar7") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000adbe4" (* "*") (cast_expression "(code *)PTR___errno_location_000adbe4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000adbe4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";"))) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" (identifier "iVar5") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (expression_statement "(*(code *)PTR_close_000adb18)(iVar4);" (call_expression "(*(code *)PTR_close_000adb18)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_000adb18)" (( "(") (pointer_expression "*(code *)PTR_close_000adb18" (* "*") (cast_expression "(code *)PTR_close_000adb18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000adb18"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (goto_statement "goto LAB_0007cc54;" (goto "goto") (statement_identifier "LAB_0007cc54") (; ";")) (} "}"))) (labeled_statement "LAB_0007cb40:\n    if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" (statement_identifier "LAB_0007cb40") (: ":") (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n      iVar5 = *(int *)(param_1 + 0x50);\n    }\n    else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x50)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" (else "else") (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n      iVar5 = *(int *)(param_1 + 0x50);\n    }" ({ "{") (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" (identifier "local_2c0") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" (( "(") (pointer_expression "*(code *)PTR_setsockopt_000add2c" (* "*") (cast_expression "(code *)PTR_setsockopt_000add2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_setsockopt_000add2c"))) () ")")) (argument_list "(iVar4,6,1,&local_2c0,4)" (( "(") (identifier "iVar4") (, ",") (number_literal "6") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_2c0" (& "&") (identifier "local_2c0")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar5 < 0) goto LAB_0007cdf8;" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007cdf8;" (goto "goto") (statement_identifier "LAB_0007cdf8") (; ";"))) (expression_statement "iVar5 = *(int *)(param_1 + 0x50);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x50)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x50)" (* "*") (cast_expression "(int *)(param_1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (} "}"))))) (if_statement "if (iVar5 != 0) {\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_2c0 = 1;\n      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);\n      if (iVar5 < 0) goto LAB_0007cdf8;\n    }" ({ "{") (expression_statement "local_2c0 = 1;" (assignment_expression "local_2c0 = 1" (identifier "local_2c0") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);" (assignment_expression "iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4)" (parenthesized_expression "(*(code *)PTR_setsockopt_000add2c)" (( "(") (pointer_expression "*(code *)PTR_setsockopt_000add2c" (* "*") (cast_expression "(code *)PTR_setsockopt_000add2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_setsockopt_000add2c"))) () ")")) (argument_list "(iVar4,0xffff,8,&local_2c0,4)" (( "(") (identifier "iVar4") (, ",") (number_literal "0xffff") (, ",") (number_literal "8") (, ",") (pointer_expression "&local_2c0" (& "&") (identifier "local_2c0")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar5 < 0) goto LAB_0007cdf8;" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007cdf8;" (goto "goto") (statement_identifier "LAB_0007cdf8") (; ";"))) (} "}"))) (expression_statement "iVar6 = 0x3ff;" (assignment_expression "iVar6 = 0x3ff" (identifier "iVar6") (= "=") (number_literal "0x3ff")) (; ";")) (expression_statement "puVar15 = &local_2bc;" (assignment_expression "puVar15 = &local_2bc" (identifier "puVar15") (= "=") (pointer_expression "&local_2bc" (& "&") (identifier "local_2bc"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x54) == 0) {\n      iVar6 = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x54) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) == 0" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = 0;\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);" (call_expression "(*(code *)PTR_memset_000adbf8)(puVar15,0,0x80)" (parenthesized_expression "(*(code *)PTR_memset_000adbf8)" (( "(") (pointer_expression "*(code *)PTR_memset_000adbf8" (* "*") (cast_expression "(code *)PTR_memset_000adbf8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000adbf8"))) () ")")) (argument_list "(puVar15,0,0x80)" (( "(") (identifier "puVar15") (, ",") (number_literal "0") (, ",") (number_literal "0x80") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_in6addr_any_000adb88;" (assignment_expression "puVar2 = PTR_in6addr_any_000adb88" (identifier "puVar2") (= "=") (identifier "PTR_in6addr_any_000adb88")) (; ";")) (expression_statement "uVar14 = (undefined2)iVar12;" (assignment_expression "uVar14 = (undefined2)iVar12" (identifier "uVar14") (= "=") (cast_expression "(undefined2)iVar12" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "iVar12"))) (; ";")) (if_statement "if (iVar12 != 1) {\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }" (if "if") (parenthesized_expression "(iVar12 != 1)" (( "(") (binary_expression "iVar12 != 1" (identifier "iVar12") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\nLAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }\n      if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }\n      if (iVar5 == 0) goto LAB_0007cd34;\nLAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);\n      goto LAB_0007ccd0;\n    }" ({ "{") (labeled_statement "LAB_0007cbf8:\n      if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" (statement_identifier "LAB_0007cbf8") (: ":") (if_statement "if (iVar12 == 10) {\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }\n      else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" (if "if") (parenthesized_expression "(iVar12 == 10)" (( "(") (binary_expression "iVar12 == 10" (identifier "iVar12") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n        local_2b4 = *(undefined4 *)puVar2;\n        local_2b0 = *(undefined4 *)(puVar2 + 4);\n        local_2ac = *(undefined4 *)(puVar2 + 8);\n        local_2a8 = *(undefined4 *)(puVar2 + 0xc);\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);\n      }" ({ "{") (expression_statement "local_2b4 = *(undefined4 *)puVar2;" (assignment_expression "local_2b4 = *(undefined4 *)puVar2" (identifier "local_2b4") (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "local_2b0 = *(undefined4 *)(puVar2 + 4);" (assignment_expression "local_2b0 = *(undefined4 *)(puVar2 + 4)" (identifier "local_2b0") (= "=") (pointer_expression "*(undefined4 *)(puVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_2ac = *(undefined4 *)(puVar2 + 8);" (assignment_expression "local_2ac = *(undefined4 *)(puVar2 + 8)" (identifier "local_2ac") (= "=") (pointer_expression "*(undefined4 *)(puVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 8)" (( "(") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_2a8 = *(undefined4 *)(puVar2 + 0xc);" (assignment_expression "local_2a8 = *(undefined4 *)(puVar2 + 0xc)" (identifier "local_2a8") (= "=") (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xc)" (( "(") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" (identifier "local_2bc") (= "=") (identifier "uVar14")) (; ";")) (expression_statement "local_2ba = (short)iVar6;" (assignment_expression "local_2ba = (short)iVar6" (identifier "local_2ba") (= "=") (cast_expression "(short)iVar6" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "iVar6"))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);" (assignment_expression "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" (( "(") (pointer_expression "*(code *)PTR_bind_000adc08" (* "*") (cast_expression "(code *)PTR_bind_000adc08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bind_000adc08"))) () ")")) (argument_list "(iVar4,puVar15,0x1c)" (( "(") (identifier "iVar4") (, ",") (identifier "puVar15") (, ",") (number_literal "0x1c") () ")")))) (; ";")) (} "}")) (else_clause "else {\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" (else "else") (compound_statement "{\n        if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        local_2b8 = 0;\n        local_2bc = uVar14;\n        local_2ba = (short)iVar6;\n        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);\n      }" ({ "{") (if_statement "if (iVar12 != 2) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" (if "if") (parenthesized_expression "(iVar12 != 2)" (( "(") (binary_expression "iVar12 != 2" (identifier "iVar12") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000adb00" (* "*") (cast_expression "(code *)PTR___assert_fail_000adb00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000adb00"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,\n                             PTR_DAT_000ad2d0 + -0x690c)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x6ad4" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6ad4")) (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6af8")) (, ",") (number_literal "0x29f") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x690c" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x690c")) () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "local_2b8 = 0;" (assignment_expression "local_2b8 = 0" (identifier "local_2b8") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" (identifier "local_2bc") (= "=") (identifier "uVar14")) (; ";")) (expression_statement "local_2ba = (short)iVar6;" (assignment_expression "local_2ba = (short)iVar6" (identifier "local_2ba") (= "=") (cast_expression "(short)iVar6" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "iVar6"))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);" (assignment_expression "iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10)" (parenthesized_expression "(*(code *)PTR_bind_000adc08)" (( "(") (pointer_expression "*(code *)PTR_bind_000adc08" (* "*") (cast_expression "(code *)PTR_bind_000adc08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bind_000adc08"))) () ")")) (argument_list "(iVar4,puVar15,0x10)" (( "(") (identifier "iVar4") (, ",") (identifier "puVar15") (, ",") (number_literal "0x10") () ")")))) (; ";")) (} "}"))))) (if_statement "if (-1 < iVar5) {\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }" (if "if") (parenthesized_expression "(-1 < iVar5)" (( "(") (binary_expression "-1 < iVar5" (number_literal "-1") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\nLAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }\n        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);\n        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);\n        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);\n        goto LAB_0007cd58;\n      }" ({ "{") (labeled_statement "LAB_0007cd34:\n        if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" (statement_identifier "LAB_0007cd34") (: ":") (if_statement "if ((iVar12 != 2) && (iVar12 != 10)) {\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" (if "if") (parenthesized_expression "((iVar12 != 2) && (iVar12 != 10))" (( "(") (binary_expression "(iVar12 != 2) && (iVar12 != 10)" (parenthesized_expression "(iVar12 != 2)" (( "(") (binary_expression "iVar12 != 2" (identifier "iVar12") (!= "!=") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "(iVar12 != 10)" (( "(") (binary_expression "iVar12 != 10" (identifier "iVar12") (!= "!=") (number_literal "10")) () ")"))) () ")")) (compound_statement "{\n          iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);\n          return iVar4;\n        }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000adb00" (* "*") (cast_expression "(code *)PTR___assert_fail_000adb00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000adb00"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,\n                             PTR_DAT_000ad2d0 + -0x690c)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x6a7c" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6a7c")) (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6af8")) (, ",") (number_literal "0x2de") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x690c" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x690c")) () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))) (expression_statement "puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);" (assignment_expression "puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" (identifier "puVar15") (= "=") (pointer_expression "*(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" (* "*") (cast_expression "(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14)" (( "(") (type_descriptor "undefined2 **" (type_identifier "undefined2") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x14)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + 0x14" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + 0x10" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);" (assignment_expression "puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58)" (subscript_expression "puVar15[1]" (identifier "puVar15") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(short)*(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))))) (; ";")) (goto_statement "goto LAB_0007cd58;" (goto "goto") (statement_identifier "LAB_0007cd58") (; ";")) (} "}"))) (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" (identifier "piVar7") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000adbe4" (* "*") (cast_expression "(code *)PTR___errno_location_000adbe4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000adbe4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" (identifier "iVar5") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (if_statement "if (iVar5 == 0x7d) {\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" (if "if") (parenthesized_expression "(iVar5 == 0x7d)" (( "(") (binary_expression "iVar5 == 0x7d" (identifier "iVar5") (== "==") (number_literal "0x7d")) () ")")) (compound_statement "{\n        uVar10 = iVar6 - 1;\n        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;\n        goto LAB_0007cbf8;\n      }" ({ "{") (expression_statement "uVar10 = iVar6 - 1;" (assignment_expression "uVar10 = iVar6 - 1" (identifier "uVar10") (= "=") (binary_expression "iVar6 - 1" (identifier "iVar6") (- "-") (number_literal "1"))) (; ";")) (if_statement "if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;" (if "if") (parenthesized_expression "((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0))" (( "(") (binary_expression "(iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)" (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)" (( "(") (comma_expression "iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0" (assignment_expression "iVar6 = (int)(short)uVar10" (identifier "iVar6") (= "=") (cast_expression "(int)(short)uVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(short)uVar10" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar10")))) (, ",") (binary_expression "(uVar10 & 0xffff) == 0" (parenthesized_expression "(uVar10 & 0xffff)" (( "(") (binary_expression "uVar10 & 0xffff" (identifier "uVar10") (& "&") (number_literal "0xffff")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_0007ccbc;" (goto "goto") (statement_identifier "LAB_0007ccbc") (; ";"))) (goto_statement "goto LAB_0007cbf8;" (goto "goto") (statement_identifier "LAB_0007cbf8") (; ";")) (} "}"))) (if_statement "if (iVar5 == 0) goto LAB_0007cd34;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007cd34;" (goto "goto") (statement_identifier "LAB_0007cd34") (; ";"))) (labeled_statement "LAB_0007ccbc:\n      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (statement_identifier "LAB_0007ccbc") (: ":") (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" (identifier "add234") (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x1b70)" (( "(") (binary_expression "puVar1 + -0x1b70" (identifier "puVar1") (+ "+") (number_literal "-0x1b70")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";"))) (goto_statement "goto LAB_0007ccd0;" (goto "goto") (statement_identifier "LAB_0007ccd0") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);\n      return iVar4;\n    }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000adb00" (* "*") (cast_expression "(code *)PTR___assert_fail_000adb00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000adb00"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,\n                         PTR_DAT_000ad2d0 + -0x690c)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x6ac0" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6ac0")) (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6af8")) (, ",") (number_literal "0x2d5") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x690c" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x690c")) () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "iVar12 = *(int *)(param_1 + 0x5c) + 0x10;" (assignment_expression "iVar12 = *(int *)(param_1 + 0x5c) + 0x10" (identifier "iVar12") (= "=") (binary_expression "*(int *)(param_1 + 0x5c) + 0x10" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);" (assignment_expression "uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12)" (identifier "uVar10") (= "=") (call_expression "(*(code *)PTR_strlen_000adc28)(iVar12)" (parenthesized_expression "(*(code *)PTR_strlen_000adc28)" (( "(") (pointer_expression "*(code *)PTR_strlen_000adc28" (* "*") (cast_expression "(code *)PTR_strlen_000adc28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000adc28"))) () ")")) (argument_list "(iVar12)" (( "(") (identifier "iVar12") () ")")))) (; ";")) (if_statement "if (0x6b < uVar10) goto LAB_0007cf70;" (if "if") (parenthesized_expression "(0x6b < uVar10)" (( "(") (binary_expression "0x6b < uVar10" (number_literal "0x6b") (< "<") (identifier "uVar10")) () ")")) (goto_statement "goto LAB_0007cf70;" (goto "goto") (statement_identifier "LAB_0007cf70") (; ";"))) (expression_statement "local_2bc = uVar14;" (assignment_expression "local_2bc = uVar14" (identifier "local_2bc") (= "=") (identifier "uVar14")) (; ";")) (expression_statement "(*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);" (call_expression "(*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c)" (parenthesized_expression "(*(code *)PTR___memcpy_chk_000adc50)" (( "(") (pointer_expression "*(code *)PTR___memcpy_chk_000adc50" (* "*") (cast_expression "(code *)PTR___memcpy_chk_000adc50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___memcpy_chk_000adc50"))) () ")")) (argument_list "(&local_2ba,iVar12,uVar10 + 1,0x6c)" (( "(") (pointer_expression "&local_2ba" (& "&") (identifier "local_2ba")) (, ",") (identifier "iVar12") (, ",") (binary_expression "uVar10 + 1" (identifier "uVar10") (+ "+") (number_literal "1")) (, ",") (number_literal "0x6c") () ")"))) (; ";")) (expression_statement "uVar8 = 0x6e;" (assignment_expression "uVar8 = 0x6e" (identifier "uVar8") (= "=") (number_literal "0x6e")) (; ";")) (labeled_statement "LAB_0007cd58:\n    nonblock(iVar4);" (statement_identifier "LAB_0007cd58") (: ":") (expression_statement "nonblock(iVar4);" (call_expression "nonblock(iVar4)" (identifier "nonblock") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";"))) (expression_statement "iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);" (assignment_expression "iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8)" (parenthesized_expression "(*(code *)PTR_connect_000adb20)" (( "(") (pointer_expression "*(code *)PTR_connect_000adb20" (* "*") (cast_expression "(code *)PTR_connect_000adb20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_connect_000adb20"))) () ")")) (argument_list "(iVar4,puVar15,uVar8)" (( "(") (identifier "iVar4") (, ",") (identifier "puVar15") (, ",") (identifier "uVar8") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();\n      iVar5 = *piVar7;\n      if (iVar5 != 0x96) goto LAB_0007cc54;\n    }" ({ "{") (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)()" (identifier "piVar7") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_000adbe4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000adbe4)()" (parenthesized_expression "(*(code *)PTR___errno_location_000adbe4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000adbe4" (* "*") (cast_expression "(code *)PTR___errno_location_000adbe4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000adbe4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" (identifier "iVar5") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (if_statement "if (iVar5 != 0x96) goto LAB_0007cc54;" (if "if") (parenthesized_expression "(iVar5 != 0x96)" (( "(") (binary_expression "iVar5 != 0x96" (identifier "iVar5") (!= "!=") (number_literal "0x96")) () ")")) (goto_statement "goto LAB_0007cc54;" (goto "goto") (statement_identifier "LAB_0007cc54") (; ";"))) (} "}")) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" (else "else") (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1c) = 1;\n      *(undefined4 *)(param_1 + 0x20) = 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0007c630(param_1);" (call_expression "FUN_0007c630(param_1)" (identifier "FUN_0007c630") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);" (call_expression "add234(*(undefined4 *)(puVar1 + -0x1b70),param_1)" (identifier "add234") (argument_list "(*(undefined4 *)(puVar1 + -0x1b70),param_1)" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + -0x1b70)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x1b70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x1b70)" (( "(") (binary_expression "puVar1 + -0x1b70" (identifier "puVar1") (+ "+") (number_literal "-0x1b70")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_2c == *(int *)puVar3) {\n    return iVar5;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar3)" (( "(") (binary_expression "local_2c == *(int *)puVar3" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return iVar5;\n  }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000adca4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000adca4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0007cf70:\n  iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" (statement_identifier "LAB_0007cf70") (: ":") (expression_statement "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c);" (assignment_expression "iVar4 = (*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_000adb00)\n                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000adb00" (* "*") (cast_expression "(code *)PTR___assert_fail_000adb00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000adb00"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,\n                     PTR_DAT_000ad2d0 + -0x690c)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x6ab0" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6ab0")) (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x6af8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x6af8")) (, ",") (number_literal "0x2d6") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x690c" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x690c")) () ")")))) (; ";"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (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: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))) (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: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier) (identifier) (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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)))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))))) (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: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  undefined4 uVar8;
  undefined1 *puVar9;
  uint uVar10;
  undefined4 *puVar11;
  int iVar12;
  undefined2 uVar14;
  undefined4 uVar13;
  undefined2 *puVar15;
  code *pcVar16;
  undefined4 local_2c0;
  undefined2 local_2bc;
  undefined2 local_2ba;
  undefined4 local_2b8;
  undefined4 local_2b4;
  undefined4 local_2b0;
  undefined4 local_2ac;
  undefined4 local_2a8;
  undefined1 auStack_23c [528];
  int local_2c;
  
  puVar3 = PTR___stack_chk_guard_000adcd4;
  puVar1 = PTR_DAT_000ad2b8;
  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;
  del234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b70),param_1);
  if (-1 < *(int *)(param_1 + 8)) {
    (*(code *)PTR_close_000adb18)();
  }
  pcVar16 = (code *)(PTR_LAB_000ad2f8 + -0x36e4);
  puVar9 = auStack_23c;
  FUN_0007c91c(auStack_23c,*(undefined4 *)(param_1 + 0x5c));
  (**(code **)**(undefined4 **)(param_1 + 0xc))
            (*(undefined4 **)(param_1 + 0xc),0,puVar9,*(undefined4 *)(param_1 + 0x58),0,0);
  iVar4 = *(int *)(*(int *)(param_1 + 0x5c) + 8);
  if (iVar4 == 0) {
LAB_0007cf44:
    iVar4 = (*(code *)PTR___assert_fail_000adb00)
                      (PTR_DAT_000ad2d0 + -0x6ae8,PTR_DAT_000ad2d0 + -0x6af8,0x25a,
                       PTR_DAT_000ad2d0 + -0x690c);
    return iVar4;
  }
  iVar12 = 1;
  if (iVar4 != 1) {
    iVar12 = 2;
    if ((*(int *)(param_1 + 0x60) != 0) &&
       (iVar12 = *(int *)(*(int *)(param_1 + 0x60) + 4), iVar12 == 0)) goto LAB_0007cf44;
  }
  iVar4 = (*(code *)PTR_socket_000adb5c)(iVar12,2,0);
  *(int *)(param_1 + 8) = iVar4;
  if (iVar4 < 0) {
    piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
    iVar5 = *piVar7;
LAB_0007cc54:
    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);
    if (iVar5 != 0) {
LAB_0007ccd0:
      (*pcVar16)(auStack_23c,*(undefined4 *)(param_1 + 0x5c),param_1 + 0x60);
      puVar11 = *(undefined4 **)(param_1 + 0xc);
      uVar13 = *(undefined4 *)(param_1 + 0x58);
      pcVar16 = *(code **)*puVar11;
      uVar8 = (*(code *)PTR_strerror_000adc54)(iVar5);
      (*pcVar16)(puVar11,1,auStack_23c,uVar13,uVar8,iVar5);
    }
  }
  else {
    cloexec(iVar4);
    if (*(int *)(param_1 + 0x38) != 0) {
      local_2c0 = 1;
      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,0x100,&local_2c0,4);
      if (-1 < iVar5) goto LAB_0007cb40;
LAB_0007cdf8:
      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar5 = *piVar7;
      (*(code *)PTR_close_000adb18)(iVar4);
      goto LAB_0007cc54;
    }
LAB_0007cb40:
    if (*(int *)(param_1 + 0x4c) == 0) {
      iVar5 = *(int *)(param_1 + 0x50);
    }
    else {
      local_2c0 = 1;
      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,6,1,&local_2c0,4);
      if (iVar5 < 0) goto LAB_0007cdf8;
      iVar5 = *(int *)(param_1 + 0x50);
    }
    if (iVar5 != 0) {
      local_2c0 = 1;
      iVar5 = (*(code *)PTR_setsockopt_000add2c)(iVar4,0xffff,8,&local_2c0,4);
      if (iVar5 < 0) goto LAB_0007cdf8;
    }
    iVar6 = 0x3ff;
    puVar15 = &local_2bc;
    if (*(int *)(param_1 + 0x54) == 0) {
      iVar6 = 0;
    }
    (*(code *)PTR_memset_000adbf8)(puVar15,0,0x80);
    puVar2 = PTR_in6addr_any_000adb88;
    uVar14 = (undefined2)iVar12;
    if (iVar12 != 1) {
LAB_0007cbf8:
      if (iVar12 == 10) {
        local_2b4 = *(undefined4 *)puVar2;
        local_2b0 = *(undefined4 *)(puVar2 + 4);
        local_2ac = *(undefined4 *)(puVar2 + 8);
        local_2a8 = *(undefined4 *)(puVar2 + 0xc);
        local_2bc = uVar14;
        local_2ba = (short)iVar6;
        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x1c);
      }
      else {
        if (iVar12 != 2) {
          iVar4 = (*(code *)PTR___assert_fail_000adb00)
                            (PTR_DAT_000ad2d0 + -0x6ad4,PTR_DAT_000ad2d0 + -0x6af8,0x29f,
                             PTR_DAT_000ad2d0 + -0x690c);
          return iVar4;
        }
        local_2b8 = 0;
        local_2bc = uVar14;
        local_2ba = (short)iVar6;
        iVar5 = (*(code *)PTR_bind_000adc08)(iVar4,puVar15,0x10);
      }
      if (-1 < iVar5) {
LAB_0007cd34:
        if ((iVar12 != 2) && (iVar12 != 10)) {
          iVar4 = (*(code *)PTR___assert_fail_000adb00)
                            (PTR_DAT_000ad2d0 + -0x6a7c,PTR_DAT_000ad2d0 + -0x6af8,0x2de,
                             PTR_DAT_000ad2d0 + -0x690c);
          return iVar4;
        }
        puVar15 = *(undefined2 **)(*(int *)(param_1 + 0x60) + 0x14);
        uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x60) + 0x10);
        puVar15[1] = (short)*(undefined4 *)(param_1 + 0x58);
        goto LAB_0007cd58;
      }
      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar5 = *piVar7;
      if (iVar5 == 0x7d) {
        uVar10 = iVar6 - 1;
        if ((iVar6 == 0) || (iVar6 = (int)(short)uVar10, (uVar10 & 0xffff) == 0)) goto LAB_0007ccbc;
        goto LAB_0007cbf8;
      }
      if (iVar5 == 0) goto LAB_0007cd34;
LAB_0007ccbc:
      add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);
      goto LAB_0007ccd0;
    }
    if (*(int *)(param_1 + 0x58) != 0) {
      iVar4 = (*(code *)PTR___assert_fail_000adb00)
                        (PTR_DAT_000ad2d0 + -0x6ac0,PTR_DAT_000ad2d0 + -0x6af8,0x2d5,
                         PTR_DAT_000ad2d0 + -0x690c);
      return iVar4;
    }
    iVar12 = *(int *)(param_1 + 0x5c) + 0x10;
    uVar10 = (*(code *)PTR_strlen_000adc28)(iVar12);
    if (0x6b < uVar10) goto LAB_0007cf70;
    local_2bc = uVar14;
    (*(code *)PTR___memcpy_chk_000adc50)(&local_2ba,iVar12,uVar10 + 1,0x6c);
    uVar8 = 0x6e;
LAB_0007cd58:
    nonblock(iVar4);
    iVar4 = (*(code *)PTR_connect_000adb20)(iVar4,puVar15,uVar8);
    if (iVar4 < 0) {
      piVar7 = (int *)(*(code *)PTR___errno_location_000adbe4)();
      iVar5 = *piVar7;
      if (iVar5 != 0x96) goto LAB_0007cc54;
    }
    else {
      *(undefined4 *)(param_1 + 0x1c) = 1;
      *(undefined4 *)(param_1 + 0x20) = 1;
    }
    iVar5 = 0;
    FUN_0007c630(param_1);
    add234(*(undefined4 *)(puVar1 + -0x1b70),param_1);
  }
  if (local_2c == *(int *)puVar3) {
    return iVar5;
  }
  (*(code *)PTR___stack_chk_fail_000adca4)();
LAB_0007cf70:
  iVar4 = (*(code *)PTR___assert_fail_000adb00)
                    (PTR_DAT_000ad2d0 + -0x6ab0,PTR_DAT_000ad2d0 + -0x6af8,0x2d6,
                     PTR_DAT_000ad2d0 + -0x690c);
  return iVar4;
}

