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

X11Display * x11_setup_display(char *display,Conf *conf)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  X11Display *pXVar5;
  char *sockpath;
  SockAddr pSVar6;
  char *pcVar7;
  int iVar8;
  uint uVar9;
  SockAddr cmp;
  _STACK *p_Var10;
  undefined1 *puVar11;
  X11Display *disp;
  plug_function_table *dummy;
  
  puVar3 = PTR___stack_chk_guard_000adcd4;
  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;
  pXVar5 = (X11Display *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);
  if ((display == (char *)0x0) || (*display == '\0')) {
    sockpath = platform_get_x_display();
    if ((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')) {
      (*(code *)PTR_safefree_000ad380)(sockpath);
      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);
      cVar1 = *sockpath;
    }
  }
  else {
    sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);
    cVar1 = *sockpath;
  }
  if (cVar1 == '/') {
    pXVar5->unixsocketpath = sockpath;
    pXVar5->hostname = (char *)0x0;
    pXVar5->unixdomain = 1;
    pXVar5->screennum = 0;
    pXVar5->displaynum = -1;
    pXVar5->addr = (SockAddr)0x0;
    goto LAB_00087420;
  }
  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a);
  puVar2 = PTR_strchr_000adc2c;
  if (puVar11 == (undefined1 *)0x0) {
    disp = (X11Display *)0x0;
    (*(code *)PTR_safefree_000ad380)(pXVar5);
    (*(code *)PTR_safefree_000ad380)(sockpath);
    goto LAB_00087470;
  }
  pcVar7 = puVar11 + 1;
  *puVar11 = 0;
  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar7,0x2e);
  puVar2 = PTR_strtol_000adb28;
  if (puVar11 == (undefined1 *)0x0) {
    iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10);
    pXVar5->displaynum = iVar8;
  }
  else {
    *puVar11 = 0;
    iVar8 = (*(code *)puVar2)(pcVar7);
    pXVar5->displaynum = iVar8;
    if (puVar11 + 1 != (undefined1 *)0x0) {
      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);
      pXVar5->screennum = iVar8;
      goto LAB_00087554;
    }
  }
  pXVar5->screennum = 0;
LAB_00087554:
  if ((sockpath < pcVar7) &&
     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),
     puVar11 != (undefined1 *)0x0)) {
    *puVar11 = 0;
    if (puVar11[1] != '\0') goto LAB_000878c0;
    pcVar7 = (char *)0x0;
    pXVar5->hostname = (char *)0x0;
    goto LAB_00087588;
  }
  if (*sockpath == '\0') {
    pXVar5->hostname = (char *)0x0;
    pcVar7 = (char *)0x0;
  }
  else {
    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);
    pXVar5->hostname = pcVar7;
  }
  if ((*sockpath != '\0') &&
     (iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {
    pXVar5->unixdomain = 0;
    if (pcVar7 != (char *)0x0) goto LAB_000875cc;
    goto LAB_000876dc;
  }
  pXVar5->unixdomain = *(int *)PTR_platform_uses_x11_unix_by_default_000adab4;
  do {
    if ((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)) {
LAB_000876dc:
      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);
      pXVar5->hostname = pcVar7;
    }
LAB_000875cc:
    puVar2 = PTR_safefree_000ad380;
    pXVar5->unixsocketpath = (char *)0x0;
    pXVar5->addr = (SockAddr)0x0;
    (*(code *)puVar2)(sockpath);
    puVar2 = PTR_name_lookup_000ad528;
    if (pXVar5->unixdomain == 0) {
      iVar8 = pXVar5->displaynum + 6000;
      pXVar5->port = iVar8;
      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);
      pXVar5->addr = pSVar6;
      pcVar7 = sk_addr_error(pSVar6);
      if (pcVar7 == (char *)0x0) {
        pSVar6 = pXVar5->addr;
        if (pXVar5->unixdomain != 0) goto LAB_00087660;
        iVar8 = sk_address_is_local(pSVar6);
        if (iVar8 != 0) {
          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);
          pcVar7 = sk_addr_error(pSVar6);
          if (pcVar7 != (char *)0x0) {
LAB_00087784:
            sk_addr_free(pSVar6);
            goto LAB_00087650;
          }
          cmp = sk_addr_dup(pSVar6);
          p_Var10 = sk_new((cmp *)cmp);
          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);
          (**(code **)(p_Var10->num + 4))(p_Var10);
          if (sockpath != (char *)0x0) goto LAB_00087784;
          sk_addr_free(pXVar5->addr);
          sockpath = pXVar5->unixsocketpath;
          pXVar5->unixdomain = 1;
          pXVar5->addr = pSVar6;
          goto LAB_00087664;
        }
LAB_00087650:
        disp = pXVar5;
        if (pXVar5->unixdomain != 0) goto LAB_0008765c;
        goto LAB_00087454;
      }
      sk_addr_free(pXVar5->addr);
      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);
      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);
      disp = (X11Display *)0x0;
      (*(code *)PTR_safefree_000ad380)(pXVar5);
    }
    else {
LAB_0008765c:
      pSVar6 = pXVar5->addr;
LAB_00087660:
      sockpath = pXVar5->unixsocketpath;
LAB_00087664:
      if (pSVar6 == (SockAddr)0x0) {
LAB_00087420:
        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);
        sockpath = pXVar5->unixsocketpath;
        pXVar5->addr = pSVar6;
      }
      if (sockpath == (char *)0x0) {
        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)
                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);
        pXVar5->realhost = pcVar7;
      }
      else {
        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);
        pXVar5->realhost = pcVar7;
      }
      pXVar5->port = 0;
      disp = pXVar5;
LAB_00087454:
      disp->localauthproto = 0;
      disp->localauthdata = (uchar *)0x0;
      disp->localauthdatalen = 0;
      platform_get_x11_auth(disp,conf);
    }
LAB_00087470:
    if (iVar4 == *(int *)puVar3) {
      return disp;
    }
    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();
    pXVar5 = disp;
LAB_000878c0:
    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);
    pXVar5->hostname = pcVar7;
LAB_00087588:
    iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);
    if (iVar8 == 0) {
      uVar9 = 1;
    }
    else {
      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);
      uVar9 = (uint)(iVar8 == 0);
    }
    pXVar5->unixdomain = uVar9;
  } while( true );
}



uint * x11_setup_display(char *param_1,undefined4 param_2)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  uint *puVar5;
  char *pcVar6;
  uint uVar7;
  int iVar8;
  uint uVar9;
  cmp *cmp;
  _STACK *p_Var10;
  undefined1 *puVar11;
  uint *puVar12;
  char *pcVar13;
  
  puVar3 = PTR___stack_chk_guard_000adcd4;
  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;
  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);
  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {
    pcVar6 = (char *)platform_get_x_display();
    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {
      (*(code *)PTR_safefree_000ad380)(pcVar6);
      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);
      cVar1 = *pcVar6;
    }
  }
  else {
    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);
    cVar1 = *pcVar6;
  }
  if (cVar1 == '/') {
    puVar5[4] = (uint)pcVar6;
    puVar5[1] = 0;
    *puVar5 = 1;
    puVar5[3] = 0;
    puVar5[2] = 0xffffffff;
    puVar5[5] = 0;
    goto LAB_00087420;
  }
  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);
  puVar2 = PTR_strchr_000adc2c;
  if (puVar11 == (undefined1 *)0x0) {
    puVar12 = (uint *)0x0;
    (*(code *)PTR_safefree_000ad380)(puVar5);
    (*(code *)PTR_safefree_000ad380)(pcVar6);
    goto LAB_00087470;
  }
  pcVar13 = puVar11 + 1;
  *puVar11 = 0;
  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);
  puVar2 = PTR_strtol_000adb28;
  if (puVar11 == (undefined1 *)0x0) {
    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);
    puVar5[2] = uVar7;
  }
  else {
    *puVar11 = 0;
    uVar7 = (*(code *)puVar2)(pcVar13);
    puVar5[2] = uVar7;
    if (puVar11 + 1 != (undefined1 *)0x0) {
      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);
      puVar5[3] = uVar7;
      goto LAB_00087554;
    }
  }
  puVar5[3] = 0;
LAB_00087554:
  if ((pcVar6 < pcVar13) &&
     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),
     puVar11 != (undefined1 *)0x0)) {
    *puVar11 = 0;
    if (puVar11[1] != '\0') goto LAB_000878c0;
    uVar7 = 0;
    puVar5[1] = 0;
    goto LAB_00087588;
  }
  if (*pcVar6 == '\0') {
    puVar5[1] = 0;
    uVar7 = 0;
  }
  else {
    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);
    puVar5[1] = uVar7;
  }
  if ((*pcVar6 != '\0') &&
     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {
    *puVar5 = 0;
    if (uVar7 != 0) goto LAB_000875cc;
    goto LAB_000876dc;
  }
  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;
  do {
    if ((uVar7 == 0) && (*puVar5 == 0)) {
LAB_000876dc:
      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);
      puVar5[1] = uVar7;
    }
LAB_000875cc:
    puVar2 = PTR_safefree_000ad380;
    puVar5[4] = 0;
    puVar5[5] = 0;
    (*(code *)puVar2)(pcVar6);
    puVar2 = PTR_name_lookup_000ad528;
    if (*puVar5 == 0) {
      puVar5[6] = puVar5[2] + 6000;
      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);
      puVar5[5] = uVar7;
      iVar8 = sk_addr_error(uVar7);
      if (iVar8 == 0) {
        uVar7 = puVar5[5];
        if (*puVar5 != 0) goto LAB_00087660;
        iVar8 = sk_address_is_local(uVar7);
        if (iVar8 != 0) {
          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);
          iVar8 = sk_addr_error(uVar7);
          if (iVar8 != 0) {
LAB_00087784:
            sk_addr_free(uVar7);
            goto LAB_00087650;
          }
          cmp = (cmp *)sk_addr_dup(uVar7);
          p_Var10 = sk_new(cmp);
          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);
          (**(code **)(p_Var10->num + 4))(p_Var10);
          if (pcVar6 != (char *)0x0) goto LAB_00087784;
          sk_addr_free(puVar5[5]);
          pcVar6 = (char *)puVar5[4];
          *puVar5 = 1;
          puVar5[5] = uVar7;
          goto LAB_00087664;
        }
LAB_00087650:
        puVar12 = puVar5;
        if (*puVar5 != 0) goto LAB_0008765c;
        goto LAB_00087454;
      }
      sk_addr_free(puVar5[5]);
      (*(code *)PTR_safefree_000ad380)(puVar5[1]);
      (*(code *)PTR_safefree_000ad380)(puVar5[4]);
      puVar12 = (uint *)0x0;
      (*(code *)PTR_safefree_000ad380)(puVar5);
    }
    else {
LAB_0008765c:
      uVar7 = puVar5[5];
LAB_00087660:
      pcVar6 = (char *)puVar5[4];
LAB_00087664:
      if (uVar7 == 0) {
LAB_00087420:
        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);
        pcVar6 = (char *)puVar5[4];
        puVar5[5] = uVar7;
      }
      if (pcVar6 == (char *)0x0) {
        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);
        puVar5[7] = uVar7;
      }
      else {
        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);
        puVar5[7] = uVar7;
      }
      puVar5[6] = 0;
      puVar12 = puVar5;
LAB_00087454:
      puVar12[8] = 0;
      puVar12[9] = 0;
      puVar12[10] = 0;
      platform_get_x11_auth(puVar12,param_2);
    }
LAB_00087470:
    if (iVar4 == *(int *)puVar3) {
      return puVar12;
    }
    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();
    puVar5 = puVar12;
LAB_000878c0:
    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);
    puVar5[1] = uVar7;
LAB_00087588:
    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);
    if (iVar8 == 0) {
      uVar9 = 1;
    }
    else {
      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);
      uVar9 = (uint)(iVar8 == 0);
    }
    *puVar5 = uVar9;
  } while( true );
}


lui gp,0x3
addiu gp,gp,-0x20c8
addu gp,gp,t9
addiu sp,sp,-0x50
lw t9,-0x7e7c(gp)
sw s2,0x3c(sp)
lw s2,-0x75bc(gp)
sw s5,0x48(sp)
or s5,a1,zero
sw s1,0x38(sp)
li a1,0x2c
or s1,a0,zero
sw gp,0x20(sp)
sw s0,0x34(sp)
li a0,0x1
sw ra,0x4c(sp)
sw s4,0x44(sp)
sw s3,0x40(sp)
lw v0,0x0(s2)
sw v0,0x2c(sp)
jalr t9
_nop
lw gp,0x20(sp)
beq s1,zero,0x000873c8
_or s0,v0,zero
lb v0,0x0(s1)
bne v0,zero,0x000876f4
_lw t9,-0x7fb4(gp)
lw t9,-0x77e8(gp)
bal 0x0007b17c
_nop
lw gp,0x20(sp)
beq v0,zero,0x000874a4
_or s1,v0,zero
lb v0,0x0(v0)
beq v0,zero,0x000874a8
_lw t9,-0x7f10(gp)
li v1,0x2f
bne v0,v1,0x000874dc
_lw t9,-0x7cec(gp)
li v0,0x1
sw s1,0x10(s0)
sw zero,0x4(s0)
sw v0,0x0(s0)
li v0,-0x1
sw zero,0xc(s0)
sw v0,0x8(s0)
sw zero,0x14(s0)
lw t9,-0x77e4(gp)
or a0,s1,zero
bal 0x0007ec10
_lw a1,0x8(s0)
lw s1,0x10(s0)
lw gp,0x20(sp)
sw v0,0x14(s0)
beq s1,zero,0x00087738
_lw t9,-0x7fb4(gp)
jalr t9
_or a0,s1,zero
lw gp,0x20(sp)
sw v0,0x1c(s0)
sw zero,0x18(s0)
lw t9,-0x77e0(gp)
or a1,s5,zero
sw zero,0x20(s0)
or a0,s0,zero
sw zero,0x24(s0)
bal 0x00079700
_sw zero,0x28(s0)
lw gp,0x20(sp)
lw a0,0x2c(sp)
or v0,s0,zero
lw v1,0x0(s2)
bne a0,v1,0x000878b4
_lw ra,0x4c(sp)
lw s5,0x48(sp)
lw s4,0x44(sp)
lw s3,0x40(sp)
lw s2,0x3c(sp)
lw s1,0x38(sp)
lw s0,0x34(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7f10(gp)
jalr t9
_or a0,s1,zero
lw gp,0x20(sp)
lw a0,-0x7fc0(gp)
lw t9,-0x7fb4(gp)
jalr t9
_addiu a0,a0,-0x53dc
li v1,0x2f
or s1,v0,zero
lb v0,0x0(v0)
beq v0,v1,0x000873f8
_lw gp,0x20(sp)
lw t9,-0x7cec(gp)
li a1,0x3a
jalr t9
_or a0,s1,zero
beq v0,zero,0x0008788c
_lw gp,0x20(sp)
lw t9,-0x7664(gp)
addiu s3,v0,0x1
li a1,0x2e
sb zero,0x0(v0)
jalr t9
_or a0,s3,zero
li a2,0xa
lw gp,0x20(sp)
or a1,zero,zero
beq v0,zero,0x0008770c
_lw t9,-0x7768(gp)
sb zero,0x0(v0)
addiu s4,v0,0x1
jalr t9
_or a0,s3,zero
lw gp,0x20(sp)
beq s4,zero,0x0008771c
_sw v0,0x8(s0)
lw t9,-0x7768(gp)
li a2,0xa
or a1,zero,zero
jalr t9
_or a0,s4,zero
lw gp,0x20(sp)
sw v0,0xc(s0)
sltu s3,s1,s3
beq s3,zero,0x00087674
_lw t9,-0x7664(gp)
li a1,0x2f
jalr t9
_or a0,s1,zero
beq v0,zero,0x00087674
_lw gp,0x20(sp)
lb v1,0x1(v0)
bne v1,zero,0x000878c0
_sb zero,0x0(v0)
or s3,zero,zero
sw zero,0x4(s0)
lw a1,-0x7fc8(gp)
or a0,s1,zero
lw t9,-0x757c(gp)
jalr t9
_addiu a1,a1,-0x8f8
beq v0,zero,0x00087730
_lw gp,0x20(sp)
lw a1,-0x7fc0(gp)
or a0,s1,zero
lw t9,-0x757c(gp)
jalr t9
_addiu a1,a1,-0x53d8
lw gp,0x20(sp)
sltiu v0,v0,0x1
beq s3,zero,0x000876cc
_sw v0,0x0(s0)
lw t9,-0x7f10(gp)
or a0,s1,zero
sw zero,0x10(s0)
jalr t9
_sw zero,0x14(s0)
lw v0,0x0(s0)
bne v0,zero,0x0008765c
_lw gp,0x20(sp)
lw a1,0x8(s0)
addiu a2,s0,0x1c
lw a0,0x4(s0)
or a3,s5,zero
lw t9,-0x7d68(gp)
addiu a1,a1,0x1770
sw a1,0x18(s0)
sw zero,0x18(sp)
sw zero,0x14(sp)
jalr t9
_sw zero,0x10(sp)
lw gp,0x20(sp)
or a0,v0,zero
lw t9,-0x7d64(gp)
bal 0x0007eaf8
_sw v0,0x14(s0)
bne v0,zero,0x00087798
_lw gp,0x20(sp)
lw v0,0x0(s0)
bne v0,zero,0x00087660
_lw s3,0x14(s0)
lw t9,-0x7d1c(gp)
bal 0x0007d580
_or a0,s3,zero
bne v0,zero,0x00087758
_lw gp,0x20(sp)
lw v0,0x0(s0)
beq v0,zero,0x00087454
_lw t9,-0x77e0(gp)
lw s3,0x14(s0)
lw s1,0x10(s0)
bne s3,zero,0x00087434
_lw t9,-0x77e4(gp)
b 0x00087420
_or a0,s1,zero
lb v0,0x0(s1)
beq v0,zero,0x00087724
_lw t9,-0x7fb4(gp)
jalr t9
_or a0,s1,zero
lw gp,0x20(sp)
or s3,v0,zero
sw v0,0x4(s0)
lb v0,0x0(s1)
beq v0,zero,0x000876c0
_lw v0,-0x77dc(gp)
lw a1,-0x7fc0(gp)
or a0,s1,zero
lw t9,-0x757c(gp)
jalr t9
_addiu a1,a1,-0x53d8
bne v0,zero,0x000877e0
_lw gp,0x20(sp)
lw v0,-0x77dc(gp)
lw v0,0x0(v0)
bne s3,zero,0x000875c8
_sw v0,0x0(s0)
lw v0,0x0(s0)
bne v0,zero,0x000875cc
_lw t9,-0x7f10(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7fb4(gp)
jalr t9
_addiu a0,a0,-0x81c
lw gp,0x20(sp)
b 0x000875c8
_sw v0,0x4(s0)
jalr t9
_or a0,s1,zero
or s1,v0,zero
lw gp,0x20(sp)
b 0x000873ec
_lb v0,0x0(v0)
jalr t9
_or a0,s3,zero
lw gp,0x20(sp)
sw v0,0x8(s0)
b 0x00087554
_sw zero,0xc(s0)
sw zero,0x4(s0)
b 0x00087694
_or s3,zero,zero
b 0x000875c0
_li v0,0x1
lw a0,-0x7fc0(gp)
lw t9,-0x7fb8(gp)
lw a1,0x8(s0)
jalr t9
_addiu a0,a0,-0x53d0
lw gp,0x20(sp)
b 0x0008744c
_sw v0,0x1c(s0)
lw t9,-0x77e4(gp)
or a0,zero,zero
bal 0x0007ec10
_lw a1,0x8(s0)
lw gp,0x20(sp)
or a0,v0,zero
lw t9,-0x7d64(gp)
bal 0x0007eaf8
_or s3,v0,zero
beq v0,zero,0x000877f0
_lw gp,0x20(sp)
lw t9,-0x7d60(gp)
bal 0x0007d6f0
_or a0,s3,zero
b 0x00087650
_lw gp,0x20(sp)
lw t9,-0x7d60(gp)
bal 0x0007d6f0
_lw a0,0x14(s0)
lw gp,0x20(sp)
lw t9,-0x7f10(gp)
jalr t9
_lw a0,0x4(s0)
lw gp,0x20(sp)
lw t9,-0x7f10(gp)
jalr t9
_lw a0,0x10(s0)
or a0,s0,zero
lw gp,0x20(sp)
lw t9,-0x7f10(gp)
jalr t9
_or s0,zero,zero
b 0x00087470
_lw gp,0x20(sp)
bne s3,zero,0x000875c8
_sw zero,0x0(s0)
b 0x000876dc
_lw a0,-0x7fc8(gp)
lw v0,-0x7fd8(gp)
or a0,s3,zero
lw t9,-0x77d8(gp)
addiu v0,v0,-0x3164
bal 0x0007d724
_sw v0,0x28(sp)
addiu v1,sp,0x28
lw gp,0x20(sp)
or a3,zero,zero
or a2,zero,zero
sw v1,0x18(sp)
or a1,zero,zero
sw zero,0x14(sp)
or a0,v0,zero
lw t9,-0x7d0c(gp)
bal 0x0007d738
_sw zero,0x10(sp)
or s1,v0,zero
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0x1c(v0)
jalr t9
_nop
or a0,s1,zero
lw v1,0x0(s1)
lw t9,0x4(v1)
jalr t9
_or s1,v0,zero
bne s1,zero,0x00087784
_lw gp,0x20(sp)
lw t9,-0x7d60(gp)
bal 0x0007d6f0
_lw a0,0x14(s0)
li v0,0x1
lw gp,0x20(sp)
lw s1,0x10(s0)
sw v0,0x0(s0)
b 0x00087664
_sw s3,0x14(s0)
lw t9,-0x7f10(gp)
or a0,s0,zero
jalr t9
_or s0,zero,zero
lw gp,0x20(sp)
lw t9,-0x7f10(gp)
jalr t9
_or a0,s1,zero
b 0x00087470
_lw gp,0x20(sp)
lw t9,-0x75ec(gp)
jalr t9
_nop
lw t9,-0x7fb4(gp)
jalr t9
_addiu a0,v0,0x1
lw gp,0x20(sp)
or s3,v0,zero
b 0x00087588
_sw v0,0x4(s0)
(translation_unit "uint * x11_setup_display(char *param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}\n\n" (function_definition "uint * x11_setup_display(char *param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}" type_identifier (pointer_declarator "* x11_setup_display(char *param_1,undefined4 param_2)" * (function_declarator "x11_setup_display(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type 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 "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "cmp *cmp;" type_identifier (pointer_declarator "*cmp" * identifier) ;) (declaration "_STACK *p_Var10;" type_identifier (pointer_declarator "*p_Var10" * identifier) ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000adcd4" 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 "puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);" (assignment_expression "puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" identifier = (cast_expression "(uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" ( (pointer_expression "*(code *)PTR_safemalloc_000ad414" * (cast_expression "(code *)PTR_safemalloc_000ad414" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x2c)" ( number_literal , number_literal ))))) ;) (if_statement "if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" if (parenthesized_expression "((param_1 == (char *)0x0) || (*param_1 == '\0'))" ( (binary_expression "(param_1 == (char *)0x0) || (*param_1 == '\0')" (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }" { (expression_statement "pcVar6 = (char *)platform_get_x_display();" (assignment_expression "pcVar6 = (char *)platform_get_x_display()" identifier = (cast_expression "(char *)platform_get_x_display()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "platform_get_x_display()" identifier (argument_list "()" ( ))))) ;) (if_statement "if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }" if (parenthesized_expression "((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0'))" ( (binary_expression "(pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')" (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(cVar1 = *pcVar6, cVar1 == '\0')" ( (comma_expression "cVar1 = *pcVar6, cVar1 == '\0'" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) , (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }" { (expression_statement "(*(code *)PTR_safefree_000ad380)(pcVar6);" (call_expression "(*(code *)PTR_safefree_000ad380)(pcVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x53dc)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x53dc" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) })) }) (else_clause "else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" else (compound_statement "{\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" { (expression_statement "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(param_1)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) }))) (if_statement "if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }" { (expression_statement "puVar5[4] = (uint)pcVar6;" (assignment_expression "puVar5[4] = (uint)pcVar6" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 1;" (assignment_expression "*puVar5 = 1" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[3] = 0;" (assignment_expression "puVar5[3] = 0" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[2] = 0xffffffff;" (assignment_expression "puVar5[2] = 0xffffffff" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00087420;" goto statement_identifier ;) })) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" (parenthesized_expression "(*(code *)PTR_host_strrchr_000ad5a4)" ( (pointer_expression "*(code *)PTR_host_strrchr_000ad5a4" * (cast_expression "(code *)PTR_host_strrchr_000ad5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,0x3a)" ( identifier , number_literal ))))) ;) (expression_statement "puVar2 = PTR_strchr_000adc2c;" (assignment_expression "puVar2 = PTR_strchr_000adc2c" identifier = identifier) ;) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }" if (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" ( (binary_expression "puVar11 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }" { (expression_statement "puVar12 = (uint *)0x0;" (assignment_expression "puVar12 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(pcVar6);" (call_expression "(*(code *)PTR_safefree_000ad380)(pcVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (goto_statement "goto LAB_00087470;" goto statement_identifier ;) })) (expression_statement "pcVar13 = puVar11 + 1;" (assignment_expression "pcVar13 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (expression_statement "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar2)(pcVar13,0x2e)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar2)(pcVar13,0x2e)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar13,0x2e)" ( identifier , number_literal ))))) ;) (expression_statement "puVar2 = PTR_strtol_000adb28;" (assignment_expression "puVar2 = PTR_strtol_000adb28" identifier = identifier) ;) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" if (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" ( (binary_expression "puVar11 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }" { (expression_statement "uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);" (assignment_expression "uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_000adb28)(pcVar13,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" ( (pointer_expression "*(code *)PTR_strtol_000adb28" * (cast_expression "(code *)PTR_strtol_000adb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar13,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "puVar5[2] = uVar7;" (assignment_expression "puVar5[2] = uVar7" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" else (compound_statement "{\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" { (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (expression_statement "uVar7 = (*(code *)puVar2)(pcVar13);" (assignment_expression "uVar7 = (*(code *)puVar2)(pcVar13)" identifier = (call_expression "(*(code *)puVar2)(pcVar13)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar13)" ( identifier )))) ;) (expression_statement "puVar5[2] = uVar7;" (assignment_expression "puVar5[2] = uVar7" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }" if (parenthesized_expression "(puVar11 + 1 != (undefined1 *)0x0)" ( (binary_expression "puVar11 + 1 != (undefined1 *)0x0" (binary_expression "puVar11 + 1" identifier + number_literal) != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }" { (expression_statement "uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);" (assignment_expression "uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" ( (pointer_expression "*(code *)PTR_strtol_000adb28" * (cast_expression "(code *)PTR_strtol_000adb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11 + 1,0,10)" ( (binary_expression "puVar11 + 1" identifier + number_literal) , number_literal , number_literal )))) ;) (expression_statement "puVar5[3] = uVar7;" (assignment_expression "puVar5[3] = uVar7" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00087554;" goto statement_identifier ;) })) }))) (expression_statement "puVar5[3] = 0;" (assignment_expression "puVar5[3] = 0" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" statement_identifier : (if_statement "if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" if (parenthesized_expression "((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0))" ( (binary_expression "(pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)" (parenthesized_expression "(pcVar6 < pcVar13)" ( (binary_expression "pcVar6 < pcVar13" identifier < identifier) )) && (parenthesized_expression "(puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)" ( (comma_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000adc2c)" ( (pointer_expression "*(code *)PTR_strchr_000adc2c" * (cast_expression "(code *)PTR_strchr_000adc2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,0x2f)" ( identifier , number_literal ))))) , (binary_expression "puVar11 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" { (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (if_statement "if (puVar11[1] != '\0') goto LAB_000878c0;" if (parenthesized_expression "(puVar11[1] != '\0')" ( (binary_expression "puVar11[1] != '\0'" (subscript_expression "puVar11[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000878c0;" goto statement_identifier ;)) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00087588;" goto statement_identifier ;) }))) (if_statement "if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }" { (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" else (compound_statement "{\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" { (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" if (parenthesized_expression "((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0))" ( (binary_expression "(*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" (parenthesized_expression "(*pcVar6 != '\0')" ( (binary_expression "*pcVar6 != '\0'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" ( (comma_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" identifier + number_literal) )))) , (binary_expression "iVar8 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (if_statement "if (uVar7 != 0) goto LAB_000875cc;" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000875cc;" goto statement_identifier ;)) (goto_statement "goto LAB_000876dc;" goto statement_identifier ;) })) (expression_statement "*puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;" (assignment_expression "*puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" * (cast_expression "(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );" do (compound_statement "{\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  }" { (if_statement "if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }" if (parenthesized_expression "((uVar7 == 0) && (*puVar5 == 0))" ( (binary_expression "(uVar7 == 0) && (*puVar5 == 0)" (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) && (parenthesized_expression "(*puVar5 == 0)" ( (binary_expression "*puVar5 == 0" (pointer_expression "*puVar5" * identifier) == number_literal) ))) )) (compound_statement "{\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }" { (labeled_statement "LAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" statement_identifier : (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2c8 + -0x81c)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x81c" identifier + number_literal) )))) ;)) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) })) (labeled_statement "LAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;" statement_identifier : (expression_statement "puVar2 = PTR_safefree_000ad380;" (assignment_expression "puVar2 = PTR_safefree_000ad380" identifier = identifier) ;)) (expression_statement "puVar5[4] = 0;" (assignment_expression "puVar5[4] = 0" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*(code *)puVar2)(pcVar6);" (call_expression "(*(code *)puVar2)(pcVar6)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_name_lookup_000ad528;" (assignment_expression "puVar2 = PTR_name_lookup_000ad528" identifier = identifier) ;) (if_statement "if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" if (parenthesized_expression "(*puVar5 == 0)" ( (binary_expression "*puVar5 == 0" (pointer_expression "*puVar5" * identifier) == number_literal) )) (compound_statement "{\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }" { (expression_statement "puVar5[6] = puVar5[2] + 6000;" (assignment_expression "puVar5[6] = puVar5[2] + 6000" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = (binary_expression "puVar5[2] + 6000" (subscript_expression "puVar5[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);" (assignment_expression "uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" identifier = (call_expression "(*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" ( (subscript_expression "puVar5[1]" identifier [ number_literal ]) , (binary_expression "puVar5[2] + 6000" (subscript_expression "puVar5[2]" identifier [ number_literal ]) + number_literal) , (binary_expression "puVar5 + 7" identifier + number_literal) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar8 = sk_addr_error(uVar7);" (assignment_expression "iVar8 = sk_addr_error(uVar7)" identifier = (call_expression "sk_addr_error(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" { (expression_statement "uVar7 = puVar5[5];" (assignment_expression "uVar7 = puVar5[5]" identifier = (subscript_expression "puVar5[5]" identifier [ number_literal ])) ;) (if_statement "if (*puVar5 != 0) goto LAB_00087660;" if (parenthesized_expression "(*puVar5 != 0)" ( (binary_expression "*puVar5 != 0" (pointer_expression "*puVar5" * identifier) != number_literal) )) (goto_statement "goto LAB_00087660;" goto statement_identifier ;)) (expression_statement "iVar8 = sk_address_is_local(uVar7);" (assignment_expression "iVar8 = sk_address_is_local(uVar7)" identifier = (call_expression "sk_address_is_local(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (if_statement "if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }" { (expression_statement "uVar7 = platform_get_x11_unix_address(0,puVar5[2]);" (assignment_expression "uVar7 = platform_get_x11_unix_address(0,puVar5[2])" identifier = (call_expression "platform_get_x11_unix_address(0,puVar5[2])" identifier (argument_list "(0,puVar5[2])" ( number_literal , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar8 = sk_addr_error(uVar7);" (assignment_expression "iVar8 = sk_addr_error(uVar7)" identifier = (call_expression "sk_addr_error(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (if_statement "if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }" { (labeled_statement "LAB_00087784:\n            sk_addr_free(uVar7);" statement_identifier : (expression_statement "sk_addr_free(uVar7);" (call_expression "sk_addr_free(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;)) (goto_statement "goto LAB_00087650;" goto statement_identifier ;) })) (expression_statement "cmp = (cmp *)sk_addr_dup(uVar7);" (assignment_expression "cmp = (cmp *)sk_addr_dup(uVar7)" identifier = (cast_expression "(cmp *)sk_addr_dup(uVar7)" ( (type_descriptor "cmp *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sk_addr_dup(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))))) ;) (expression_statement "p_Var10 = sk_new(cmp);" (assignment_expression "p_Var10 = sk_new(cmp)" identifier = (call_expression "sk_new(cmp)" identifier (argument_list "(cmp)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);" (assignment_expression "pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" identifier = (cast_expression "(char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(p_Var10->num + 0x1c))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 0x1c))" ( (pointer_expression "**(code **)(p_Var10->num + 0x1c)" * (pointer_expression "*(code **)(p_Var10->num + 0x1c)" * (cast_expression "(code **)(p_Var10->num + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var10->num + 0x1c)" ( (binary_expression "p_Var10->num + 0x1c" (field_expression "p_Var10->num" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(p_Var10)" ( identifier ))))) ;) (expression_statement "(**(code **)(p_Var10->num + 4))(p_Var10);" (call_expression "(**(code **)(p_Var10->num + 4))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 4))" ( (pointer_expression "**(code **)(p_Var10->num + 4)" * (pointer_expression "*(code **)(p_Var10->num + 4)" * (cast_expression "(code **)(p_Var10->num + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var10->num + 4)" ( (binary_expression "p_Var10->num + 4" (field_expression "p_Var10->num" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(p_Var10)" ( identifier ))) ;) (if_statement "if (pcVar6 != (char *)0x0) goto LAB_00087784;" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00087784;" goto statement_identifier ;)) (expression_statement "sk_addr_free(puVar5[5]);" (call_expression "sk_addr_free(puVar5[5])" identifier (argument_list "(puVar5[5])" ( (subscript_expression "puVar5[5]" identifier [ number_literal ]) ))) ;) (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" identifier = (cast_expression "(char *)puVar5[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[4]" identifier [ number_literal ]))) ;) (expression_statement "*puVar5 = 1;" (assignment_expression "*puVar5 = 1" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00087664;" goto statement_identifier ;) })) (labeled_statement "LAB_00087650:\n        puVar12 = puVar5;" statement_identifier : (expression_statement "puVar12 = puVar5;" (assignment_expression "puVar12 = puVar5" identifier = identifier) ;)) (if_statement "if (*puVar5 != 0) goto LAB_0008765c;" if (parenthesized_expression "(*puVar5 != 0)" ( (binary_expression "*puVar5 != 0" (pointer_expression "*puVar5" * identifier) != number_literal) )) (goto_statement "goto LAB_0008765c;" goto statement_identifier ;)) (goto_statement "goto LAB_00087454;" goto statement_identifier ;) })) (expression_statement "sk_addr_free(puVar5[5]);" (call_expression "sk_addr_free(puVar5[5])" identifier (argument_list "(puVar5[5])" ( (subscript_expression "puVar5[5]" identifier [ number_literal ]) ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5[1]);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5[1])" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5[1])" ( (subscript_expression "puVar5[1]" identifier [ number_literal ]) ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5[4]);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5[4])" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5[4])" ( (subscript_expression "puVar5[4]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar12 = (uint *)0x0;" (assignment_expression "puVar12 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) }) (else_clause "else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" else (compound_statement "{\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" { (labeled_statement "LAB_0008765c:\n      uVar7 = puVar5[5];" statement_identifier : (expression_statement "uVar7 = puVar5[5];" (assignment_expression "uVar7 = puVar5[5]" identifier = (subscript_expression "puVar5[5]" identifier [ number_literal ])) ;)) (labeled_statement "LAB_00087660:\n      pcVar6 = (char *)puVar5[4];" statement_identifier : (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" identifier = (cast_expression "(char *)puVar5[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[4]" identifier [ number_literal ]))) ;)) (labeled_statement "LAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" statement_identifier : (if_statement "if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" { (labeled_statement "LAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);" statement_identifier : (expression_statement "uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);" (assignment_expression "uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2])" identifier = (call_expression "platform_get_x11_unix_address(pcVar6,puVar5[2])" identifier (argument_list "(pcVar6,puVar5[2])" ( identifier , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;)) (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" identifier = (cast_expression "(char *)puVar5[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[4]" identifier [ number_literal ]))) ;) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }" { (expression_statement "uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);" (assignment_expression "uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" identifier = (call_expression "(*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" (parenthesized_expression "(*(code *)PTR_dupprintf_000ad2d8)" ( (pointer_expression "*(code *)PTR_dupprintf_000ad2d8" * (cast_expression "(code *)PTR_dupprintf_000ad2d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" ( (binary_expression "PTR_DAT_000ad2d0 + -0x53d0" identifier + number_literal) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" else (compound_statement "{\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" { (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar12 = puVar5;" (assignment_expression "puVar12 = puVar5" identifier = identifier) ;) (labeled_statement "LAB_00087454:\n      puVar12[8] = 0;" statement_identifier : (expression_statement "puVar12[8] = 0;" (assignment_expression "puVar12[8] = 0" (subscript_expression "puVar12[8]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "puVar12[9] = 0;" (assignment_expression "puVar12[9] = 0" (subscript_expression "puVar12[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar12[10] = 0;" (assignment_expression "puVar12[10] = 0" (subscript_expression "puVar12[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "platform_get_x11_auth(puVar12,param_2);" (call_expression "platform_get_x11_auth(puVar12,param_2)" identifier (argument_list "(puVar12,param_2)" ( identifier , identifier ))) ;) }))) (labeled_statement "LAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }" statement_identifier : (if_statement "if (iVar4 == *(int *)puVar3) {\n      return puVar12;\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 puVar12;\n    }" { (return_statement "return puVar12;" return identifier ;) }))) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" identifier = (cast_expression "(undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (expression_statement "puVar5 = puVar12;" (assignment_expression "puVar5 = puVar12" identifier = identifier) ;) (labeled_statement "LAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" statement_identifier : (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11 + 1)" ( (binary_expression "puVar11 + 1" identifier + number_literal) )))) ;)) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);" statement_identifier : (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x8f8" identifier + number_literal) )))) ;)) (if_statement "if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar9 = 1;\n    }" { (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" else (compound_statement "{\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" { (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" identifier + number_literal) )))) ;) (expression_statement "uVar9 = (uint)(iVar8 == 0);" (assignment_expression "uVar9 = (uint)(iVar8 == 0)" identifier = (call_expression "(uint)(iVar8 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )))) ;) }))) (expression_statement "*puVar5 = uVar9;" (assignment_expression "*puVar5 = uVar9" (pointer_expression "*puVar5" * identifier) = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nX11Display * x11_setup_display(char *display,Conf *conf)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  X11Display *pXVar5;\n  char *sockpath;\n  SockAddr pSVar6;\n  char *pcVar7;\n  int iVar8;\n  uint uVar9;\n  SockAddr cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  X11Display *disp;\n  plug_function_table *dummy;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  pXVar5 = (X11Display *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((display == (char *)0x0) || (*display == '\0')) {\n    sockpath = platform_get_x_display();\n    if ((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(sockpath);\n      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *sockpath;\n    }\n  }\n  else {\n    sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);\n    cVar1 = *sockpath;\n  }\n  if (cVar1 == '/') {\n    pXVar5->unixsocketpath = sockpath;\n    pXVar5->hostname = (char *)0x0;\n    pXVar5->unixdomain = 1;\n    pXVar5->screennum = 0;\n    pXVar5->displaynum = -1;\n    pXVar5->addr = (SockAddr)0x0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    disp = (X11Display *)0x0;\n    (*(code *)PTR_safefree_000ad380)(pXVar5);\n    (*(code *)PTR_safefree_000ad380)(sockpath);\n    goto LAB_00087470;\n  }\n  pcVar7 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar7,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10);\n    pXVar5->displaynum = iVar8;\n  }\n  else {\n    *puVar11 = 0;\n    iVar8 = (*(code *)puVar2)(pcVar7);\n    pXVar5->displaynum = iVar8;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }\n  }\n  pXVar5->screennum = 0;\nLAB_00087554:\n  if ((sockpath < pcVar7) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    pcVar7 = (char *)0x0;\n    pXVar5->hostname = (char *)0x0;\n    goto LAB_00087588;\n  }\n  if (*sockpath == '\0') {\n    pXVar5->hostname = (char *)0x0;\n    pcVar7 = (char *)0x0;\n  }\n  else {\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n    pXVar5->hostname = pcVar7;\n  }\n  if ((*sockpath != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    pXVar5->unixdomain = 0;\n    if (pcVar7 != (char *)0x0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  pXVar5->unixdomain = *(int *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)) {\nLAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      pXVar5->hostname = pcVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    pXVar5->unixsocketpath = (char *)0x0;\n    pXVar5->addr = (SockAddr)0x0;\n    (*(code *)puVar2)(sockpath);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (pXVar5->unixdomain == 0) {\n      iVar8 = pXVar5->displaynum + 6000;\n      pXVar5->port = iVar8;\n      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);\n      pXVar5->addr = pSVar6;\n      pcVar7 = sk_addr_error(pSVar6);\n      if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(pXVar5->addr);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);\n      disp = (X11Display *)0x0;\n      (*(code *)PTR_safefree_000ad380)(pXVar5);\n    }\n    else {\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return disp;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    pXVar5 = disp;\nLAB_000878c0:\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    pXVar5->hostname = pcVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    pXVar5->unixdomain = uVar9;\n  } while( true );\n}\n\n" comment (function_definition "X11Display * x11_setup_display(char *display,Conf *conf)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  X11Display *pXVar5;\n  char *sockpath;\n  SockAddr pSVar6;\n  char *pcVar7;\n  int iVar8;\n  uint uVar9;\n  SockAddr cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  X11Display *disp;\n  plug_function_table *dummy;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  pXVar5 = (X11Display *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((display == (char *)0x0) || (*display == '\0')) {\n    sockpath = platform_get_x_display();\n    if ((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(sockpath);\n      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *sockpath;\n    }\n  }\n  else {\n    sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);\n    cVar1 = *sockpath;\n  }\n  if (cVar1 == '/') {\n    pXVar5->unixsocketpath = sockpath;\n    pXVar5->hostname = (char *)0x0;\n    pXVar5->unixdomain = 1;\n    pXVar5->screennum = 0;\n    pXVar5->displaynum = -1;\n    pXVar5->addr = (SockAddr)0x0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    disp = (X11Display *)0x0;\n    (*(code *)PTR_safefree_000ad380)(pXVar5);\n    (*(code *)PTR_safefree_000ad380)(sockpath);\n    goto LAB_00087470;\n  }\n  pcVar7 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar7,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10);\n    pXVar5->displaynum = iVar8;\n  }\n  else {\n    *puVar11 = 0;\n    iVar8 = (*(code *)puVar2)(pcVar7);\n    pXVar5->displaynum = iVar8;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }\n  }\n  pXVar5->screennum = 0;\nLAB_00087554:\n  if ((sockpath < pcVar7) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    pcVar7 = (char *)0x0;\n    pXVar5->hostname = (char *)0x0;\n    goto LAB_00087588;\n  }\n  if (*sockpath == '\0') {\n    pXVar5->hostname = (char *)0x0;\n    pcVar7 = (char *)0x0;\n  }\n  else {\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n    pXVar5->hostname = pcVar7;\n  }\n  if ((*sockpath != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    pXVar5->unixdomain = 0;\n    if (pcVar7 != (char *)0x0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  pXVar5->unixdomain = *(int *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)) {\nLAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      pXVar5->hostname = pcVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    pXVar5->unixsocketpath = (char *)0x0;\n    pXVar5->addr = (SockAddr)0x0;\n    (*(code *)puVar2)(sockpath);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (pXVar5->unixdomain == 0) {\n      iVar8 = pXVar5->displaynum + 6000;\n      pXVar5->port = iVar8;\n      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);\n      pXVar5->addr = pSVar6;\n      pcVar7 = sk_addr_error(pSVar6);\n      if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(pXVar5->addr);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);\n      disp = (X11Display *)0x0;\n      (*(code *)PTR_safefree_000ad380)(pXVar5);\n    }\n    else {\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return disp;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    pXVar5 = disp;\nLAB_000878c0:\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    pXVar5->hostname = pcVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    pXVar5->unixdomain = uVar9;\n  } while( true );\n}" type_identifier (pointer_declarator "* x11_setup_display(char *display,Conf *conf)" * (function_declarator "x11_setup_display(char *display,Conf *conf)" identifier (parameter_list "(char *display,Conf *conf)" ( (parameter_declaration "char *display" primitive_type (pointer_declarator "*display" * identifier)) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  X11Display *pXVar5;\n  char *sockpath;\n  SockAddr pSVar6;\n  char *pcVar7;\n  int iVar8;\n  uint uVar9;\n  SockAddr cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  X11Display *disp;\n  plug_function_table *dummy;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  pXVar5 = (X11Display *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((display == (char *)0x0) || (*display == '\0')) {\n    sockpath = platform_get_x_display();\n    if ((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(sockpath);\n      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *sockpath;\n    }\n  }\n  else {\n    sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);\n    cVar1 = *sockpath;\n  }\n  if (cVar1 == '/') {\n    pXVar5->unixsocketpath = sockpath;\n    pXVar5->hostname = (char *)0x0;\n    pXVar5->unixdomain = 1;\n    pXVar5->screennum = 0;\n    pXVar5->displaynum = -1;\n    pXVar5->addr = (SockAddr)0x0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    disp = (X11Display *)0x0;\n    (*(code *)PTR_safefree_000ad380)(pXVar5);\n    (*(code *)PTR_safefree_000ad380)(sockpath);\n    goto LAB_00087470;\n  }\n  pcVar7 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar7,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10);\n    pXVar5->displaynum = iVar8;\n  }\n  else {\n    *puVar11 = 0;\n    iVar8 = (*(code *)puVar2)(pcVar7);\n    pXVar5->displaynum = iVar8;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }\n  }\n  pXVar5->screennum = 0;\nLAB_00087554:\n  if ((sockpath < pcVar7) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    pcVar7 = (char *)0x0;\n    pXVar5->hostname = (char *)0x0;\n    goto LAB_00087588;\n  }\n  if (*sockpath == '\0') {\n    pXVar5->hostname = (char *)0x0;\n    pcVar7 = (char *)0x0;\n  }\n  else {\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n    pXVar5->hostname = pcVar7;\n  }\n  if ((*sockpath != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    pXVar5->unixdomain = 0;\n    if (pcVar7 != (char *)0x0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  pXVar5->unixdomain = *(int *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)) {\nLAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      pXVar5->hostname = pcVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    pXVar5->unixsocketpath = (char *)0x0;\n    pXVar5->addr = (SockAddr)0x0;\n    (*(code *)puVar2)(sockpath);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (pXVar5->unixdomain == 0) {\n      iVar8 = pXVar5->displaynum + 6000;\n      pXVar5->port = iVar8;\n      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);\n      pXVar5->addr = pSVar6;\n      pcVar7 = sk_addr_error(pSVar6);\n      if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(pXVar5->addr);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);\n      disp = (X11Display *)0x0;\n      (*(code *)PTR_safefree_000ad380)(pXVar5);\n    }\n    else {\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return disp;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    pXVar5 = disp;\nLAB_000878c0:\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    pXVar5->hostname = pcVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    pXVar5->unixdomain = uVar9;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type 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 "X11Display *pXVar5;" type_identifier (pointer_declarator "*pXVar5" * identifier) ;) (declaration "char *sockpath;" primitive_type (pointer_declarator "*sockpath" * identifier) ;) (declaration "SockAddr pSVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "SockAddr cmp;" type_identifier identifier ;) (declaration "_STACK *p_Var10;" type_identifier (pointer_declarator "*p_Var10" * identifier) ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "X11Display *disp;" type_identifier (pointer_declarator "*disp" * identifier) ;) (declaration "plug_function_table *dummy;" type_identifier (pointer_declarator "*dummy" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000adcd4" 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 "pXVar5 = (X11Display *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);" (assignment_expression "pXVar5 = (X11Display *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" identifier = (cast_expression "(X11Display *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" ( (type_descriptor "X11Display *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" ( (pointer_expression "*(code *)PTR_safemalloc_000ad414" * (cast_expression "(code *)PTR_safemalloc_000ad414" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x2c)" ( number_literal , number_literal ))))) ;) (if_statement "if ((display == (char *)0x0) || (*display == '\0')) {\n    sockpath = platform_get_x_display();\n    if ((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(sockpath);\n      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *sockpath;\n    }\n  }\n  else {\n    sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);\n    cVar1 = *sockpath;\n  }" if (parenthesized_expression "((display == (char *)0x0) || (*display == '\0'))" ( (binary_expression "(display == (char *)0x0) || (*display == '\0')" (parenthesized_expression "(display == (char *)0x0)" ( (binary_expression "display == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*display == '\0')" ( (binary_expression "*display == '\0'" (pointer_expression "*display" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    sockpath = platform_get_x_display();\n    if ((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(sockpath);\n      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *sockpath;\n    }\n  }" { (expression_statement "sockpath = platform_get_x_display();" (assignment_expression "sockpath = platform_get_x_display()" identifier = (call_expression "platform_get_x_display()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(sockpath);\n      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *sockpath;\n    }" if (parenthesized_expression "((sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0'))" ( (binary_expression "(sockpath == (char *)0x0) || (cVar1 = *sockpath, cVar1 == '\0')" (parenthesized_expression "(sockpath == (char *)0x0)" ( (binary_expression "sockpath == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(cVar1 = *sockpath, cVar1 == '\0')" ( (comma_expression "cVar1 = *sockpath, cVar1 == '\0'" (assignment_expression "cVar1 = *sockpath" identifier = (pointer_expression "*sockpath" * identifier)) , (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      (*(code *)PTR_safefree_000ad380)(sockpath);\n      sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *sockpath;\n    }" { (expression_statement "(*(code *)PTR_safefree_000ad380)(sockpath);" (call_expression "(*(code *)PTR_safefree_000ad380)(sockpath)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath)" ( identifier ))) ;) (expression_statement "sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);" (assignment_expression "sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x53dc)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x53dc" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *sockpath;" (assignment_expression "cVar1 = *sockpath" identifier = (pointer_expression "*sockpath" * identifier)) ;) })) }) (else_clause "else {\n    sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);\n    cVar1 = *sockpath;\n  }" else (compound_statement "{\n    sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);\n    cVar1 = *sockpath;\n  }" { (expression_statement "sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display);" (assignment_expression "sockpath = (char *)(*(code *)PTR_dupstr_000ad2dc)(display)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(display)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(display)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(display)" ( identifier ))))) ;) (expression_statement "cVar1 = *sockpath;" (assignment_expression "cVar1 = *sockpath" identifier = (pointer_expression "*sockpath" * identifier)) ;) }))) (if_statement "if (cVar1 == '/') {\n    pXVar5->unixsocketpath = sockpath;\n    pXVar5->hostname = (char *)0x0;\n    pXVar5->unixdomain = 1;\n    pXVar5->screennum = 0;\n    pXVar5->displaynum = -1;\n    pXVar5->addr = (SockAddr)0x0;\n    goto LAB_00087420;\n  }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    pXVar5->unixsocketpath = sockpath;\n    pXVar5->hostname = (char *)0x0;\n    pXVar5->unixdomain = 1;\n    pXVar5->screennum = 0;\n    pXVar5->displaynum = -1;\n    pXVar5->addr = (SockAddr)0x0;\n    goto LAB_00087420;\n  }" { (expression_statement "pXVar5->unixsocketpath = sockpath;" (assignment_expression "pXVar5->unixsocketpath = sockpath" (field_expression "pXVar5->unixsocketpath" identifier -> field_identifier) = identifier) ;) (expression_statement "pXVar5->hostname = (char *)0x0;" (assignment_expression "pXVar5->hostname = (char *)0x0" (field_expression "pXVar5->hostname" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pXVar5->unixdomain = 1;" (assignment_expression "pXVar5->unixdomain = 1" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) = number_literal) ;) (expression_statement "pXVar5->screennum = 0;" (assignment_expression "pXVar5->screennum = 0" (field_expression "pXVar5->screennum" identifier -> field_identifier) = number_literal) ;) (expression_statement "pXVar5->displaynum = -1;" (assignment_expression "pXVar5->displaynum = -1" (field_expression "pXVar5->displaynum" identifier -> field_identifier) = number_literal) ;) (expression_statement "pXVar5->addr = (SockAddr)0x0;" (assignment_expression "pXVar5->addr = (SockAddr)0x0" (field_expression "pXVar5->addr" identifier -> field_identifier) = (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) ;) (goto_statement "goto LAB_00087420;" goto statement_identifier ;) })) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_host_strrchr_000ad5a4)(sockpath,0x3a)" (parenthesized_expression "(*(code *)PTR_host_strrchr_000ad5a4)" ( (pointer_expression "*(code *)PTR_host_strrchr_000ad5a4" * (cast_expression "(code *)PTR_host_strrchr_000ad5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath,0x3a)" ( identifier , number_literal ))))) ;) (expression_statement "puVar2 = PTR_strchr_000adc2c;" (assignment_expression "puVar2 = PTR_strchr_000adc2c" identifier = identifier) ;) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    disp = (X11Display *)0x0;\n    (*(code *)PTR_safefree_000ad380)(pXVar5);\n    (*(code *)PTR_safefree_000ad380)(sockpath);\n    goto LAB_00087470;\n  }" if (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" ( (binary_expression "puVar11 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    disp = (X11Display *)0x0;\n    (*(code *)PTR_safefree_000ad380)(pXVar5);\n    (*(code *)PTR_safefree_000ad380)(sockpath);\n    goto LAB_00087470;\n  }" { (expression_statement "disp = (X11Display *)0x0;" (assignment_expression "disp = (X11Display *)0x0" identifier = (cast_expression "(X11Display *)0x0" ( (type_descriptor "X11Display *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(pXVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(pXVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pXVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(sockpath);" (call_expression "(*(code *)PTR_safefree_000ad380)(sockpath)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath)" ( identifier ))) ;) (goto_statement "goto LAB_00087470;" goto statement_identifier ;) })) (expression_statement "pcVar7 = puVar11 + 1;" (assignment_expression "pcVar7 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (expression_statement "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar7,0x2e);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar7,0x2e)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar2)(pcVar7,0x2e)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar2)(pcVar7,0x2e)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,0x2e)" ( identifier , number_literal ))))) ;) (expression_statement "puVar2 = PTR_strtol_000adb28;" (assignment_expression "puVar2 = PTR_strtol_000adb28" identifier = identifier) ;) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10);\n    pXVar5->displaynum = iVar8;\n  }\n  else {\n    *puVar11 = 0;\n    iVar8 = (*(code *)puVar2)(pcVar7);\n    pXVar5->displaynum = iVar8;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }\n  }" if (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" ( (binary_expression "puVar11 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10);\n    pXVar5->displaynum = iVar8;\n  }" { (expression_statement "iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10);" (assignment_expression "iVar8 = (*(code *)PTR_strtol_000adb28)(pcVar7,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_000adb28)(pcVar7,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" ( (pointer_expression "*(code *)PTR_strtol_000adb28" * (cast_expression "(code *)PTR_strtol_000adb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "pXVar5->displaynum = iVar8;" (assignment_expression "pXVar5->displaynum = iVar8" (field_expression "pXVar5->displaynum" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    *puVar11 = 0;\n    iVar8 = (*(code *)puVar2)(pcVar7);\n    pXVar5->displaynum = iVar8;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }\n  }" else (compound_statement "{\n    *puVar11 = 0;\n    iVar8 = (*(code *)puVar2)(pcVar7);\n    pXVar5->displaynum = iVar8;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }\n  }" { (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (expression_statement "iVar8 = (*(code *)puVar2)(pcVar7);" (assignment_expression "iVar8 = (*(code *)puVar2)(pcVar7)" identifier = (call_expression "(*(code *)puVar2)(pcVar7)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pXVar5->displaynum = iVar8;" (assignment_expression "pXVar5->displaynum = iVar8" (field_expression "pXVar5->displaynum" identifier -> field_identifier) = identifier) ;) (if_statement "if (puVar11 + 1 != (undefined1 *)0x0) {\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }" if (parenthesized_expression "(puVar11 + 1 != (undefined1 *)0x0)" ( (binary_expression "puVar11 + 1 != (undefined1 *)0x0" (binary_expression "puVar11 + 1" identifier + number_literal) != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      pXVar5->screennum = iVar8;\n      goto LAB_00087554;\n    }" { (expression_statement "iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);" (assignment_expression "iVar8 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" ( (pointer_expression "*(code *)PTR_strtol_000adb28" * (cast_expression "(code *)PTR_strtol_000adb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11 + 1,0,10)" ( (binary_expression "puVar11 + 1" identifier + number_literal) , number_literal , number_literal )))) ;) (expression_statement "pXVar5->screennum = iVar8;" (assignment_expression "pXVar5->screennum = iVar8" (field_expression "pXVar5->screennum" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00087554;" goto statement_identifier ;) })) }))) (expression_statement "pXVar5->screennum = 0;" (assignment_expression "pXVar5->screennum = 0" (field_expression "pXVar5->screennum" identifier -> field_identifier) = number_literal) ;) (labeled_statement "LAB_00087554:\n  if ((sockpath < pcVar7) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    pcVar7 = (char *)0x0;\n    pXVar5->hostname = (char *)0x0;\n    goto LAB_00087588;\n  }" statement_identifier : (if_statement "if ((sockpath < pcVar7) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    pcVar7 = (char *)0x0;\n    pXVar5->hostname = (char *)0x0;\n    goto LAB_00087588;\n  }" if (parenthesized_expression "((sockpath < pcVar7) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0))" ( (binary_expression "(sockpath < pcVar7) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0)" (parenthesized_expression "(sockpath < pcVar7)" ( (binary_expression "sockpath < pcVar7" identifier < identifier) )) && (parenthesized_expression "(puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0)" ( (comma_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f),\n     puVar11 != (undefined1 *)0x0" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000adc2c)(sockpath,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000adc2c)" ( (pointer_expression "*(code *)PTR_strchr_000adc2c" * (cast_expression "(code *)PTR_strchr_000adc2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath,0x2f)" ( identifier , number_literal ))))) , (binary_expression "puVar11 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    pcVar7 = (char *)0x0;\n    pXVar5->hostname = (char *)0x0;\n    goto LAB_00087588;\n  }" { (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (if_statement "if (puVar11[1] != '\0') goto LAB_000878c0;" if (parenthesized_expression "(puVar11[1] != '\0')" ( (binary_expression "puVar11[1] != '\0'" (subscript_expression "puVar11[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000878c0;" goto statement_identifier ;)) (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pXVar5->hostname = (char *)0x0;" (assignment_expression "pXVar5->hostname = (char *)0x0" (field_expression "pXVar5->hostname" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00087588;" goto statement_identifier ;) }))) (if_statement "if (*sockpath == '\0') {\n    pXVar5->hostname = (char *)0x0;\n    pcVar7 = (char *)0x0;\n  }\n  else {\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n    pXVar5->hostname = pcVar7;\n  }" if (parenthesized_expression "(*sockpath == '\0')" ( (binary_expression "*sockpath == '\0'" (pointer_expression "*sockpath" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pXVar5->hostname = (char *)0x0;\n    pcVar7 = (char *)0x0;\n  }" { (expression_statement "pXVar5->hostname = (char *)0x0;" (assignment_expression "pXVar5->hostname = (char *)0x0" (field_expression "pXVar5->hostname" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n    pXVar5->hostname = pcVar7;\n  }" else (compound_statement "{\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n    pXVar5->hostname = pcVar7;\n  }" { (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(sockpath)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath)" ( identifier ))))) ;) (expression_statement "pXVar5->hostname = pcVar7;" (assignment_expression "pXVar5->hostname = pcVar7" (field_expression "pXVar5->hostname" identifier -> field_identifier) = identifier) ;) }))) (if_statement "if ((*sockpath != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    pXVar5->unixdomain = 0;\n    if (pcVar7 != (char *)0x0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" if (parenthesized_expression "((*sockpath != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0))" ( (binary_expression "(*sockpath != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" (parenthesized_expression "(*sockpath != '\0')" ( (binary_expression "*sockpath != '\0'" (pointer_expression "*sockpath" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" ( (comma_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath,PTR_DAT_000ad2d0 + -0x53d8)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" identifier + number_literal) )))) , (binary_expression "iVar8 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    pXVar5->unixdomain = 0;\n    if (pcVar7 != (char *)0x0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" { (expression_statement "pXVar5->unixdomain = 0;" (assignment_expression "pXVar5->unixdomain = 0" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) = number_literal) ;) (if_statement "if (pcVar7 != (char *)0x0) goto LAB_000875cc;" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000875cc;" goto statement_identifier ;)) (goto_statement "goto LAB_000876dc;" goto statement_identifier ;) })) (expression_statement "pXVar5->unixdomain = *(int *)PTR_platform_uses_x11_unix_by_default_000adab4;" (assignment_expression "pXVar5->unixdomain = *(int *)PTR_platform_uses_x11_unix_by_default_000adab4" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) = (pointer_expression "*(int *)PTR_platform_uses_x11_unix_by_default_000adab4" * (cast_expression "(int *)PTR_platform_uses_x11_unix_by_default_000adab4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n    if ((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)) {\nLAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      pXVar5->hostname = pcVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    pXVar5->unixsocketpath = (char *)0x0;\n    pXVar5->addr = (SockAddr)0x0;\n    (*(code *)puVar2)(sockpath);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (pXVar5->unixdomain == 0) {\n      iVar8 = pXVar5->displaynum + 6000;\n      pXVar5->port = iVar8;\n      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);\n      pXVar5->addr = pSVar6;\n      pcVar7 = sk_addr_error(pSVar6);\n      if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(pXVar5->addr);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);\n      disp = (X11Display *)0x0;\n      (*(code *)PTR_safefree_000ad380)(pXVar5);\n    }\n    else {\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return disp;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    pXVar5 = disp;\nLAB_000878c0:\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    pXVar5->hostname = pcVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    pXVar5->unixdomain = uVar9;\n  } while( true );" do (compound_statement "{\n    if ((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)) {\nLAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      pXVar5->hostname = pcVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    pXVar5->unixsocketpath = (char *)0x0;\n    pXVar5->addr = (SockAddr)0x0;\n    (*(code *)puVar2)(sockpath);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (pXVar5->unixdomain == 0) {\n      iVar8 = pXVar5->displaynum + 6000;\n      pXVar5->port = iVar8;\n      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);\n      pXVar5->addr = pSVar6;\n      pcVar7 = sk_addr_error(pSVar6);\n      if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(pXVar5->addr);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);\n      disp = (X11Display *)0x0;\n      (*(code *)PTR_safefree_000ad380)(pXVar5);\n    }\n    else {\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return disp;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    pXVar5 = disp;\nLAB_000878c0:\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    pXVar5->hostname = pcVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    pXVar5->unixdomain = uVar9;\n  }" { (if_statement "if ((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)) {\nLAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      pXVar5->hostname = pcVar7;\n    }" if (parenthesized_expression "((pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0))" ( (binary_expression "(pcVar7 == (char *)0x0) && (pXVar5->unixdomain == 0)" (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pXVar5->unixdomain == 0)" ( (binary_expression "pXVar5->unixdomain == 0" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\nLAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      pXVar5->hostname = pcVar7;\n    }" { (labeled_statement "LAB_000876dc:\n      pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" statement_identifier : (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2c8 + -0x81c)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x81c" identifier + number_literal) ))))) ;)) (expression_statement "pXVar5->hostname = pcVar7;" (assignment_expression "pXVar5->hostname = pcVar7" (field_expression "pXVar5->hostname" identifier -> field_identifier) = identifier) ;) })) (labeled_statement "LAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;" statement_identifier : (expression_statement "puVar2 = PTR_safefree_000ad380;" (assignment_expression "puVar2 = PTR_safefree_000ad380" identifier = identifier) ;)) (expression_statement "pXVar5->unixsocketpath = (char *)0x0;" (assignment_expression "pXVar5->unixsocketpath = (char *)0x0" (field_expression "pXVar5->unixsocketpath" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pXVar5->addr = (SockAddr)0x0;" (assignment_expression "pXVar5->addr = (SockAddr)0x0" (field_expression "pXVar5->addr" identifier -> field_identifier) = (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) ;) (expression_statement "(*(code *)puVar2)(sockpath);" (call_expression "(*(code *)puVar2)(sockpath)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_name_lookup_000ad528;" (assignment_expression "puVar2 = PTR_name_lookup_000ad528" identifier = identifier) ;) (if_statement "if (pXVar5->unixdomain == 0) {\n      iVar8 = pXVar5->displaynum + 6000;\n      pXVar5->port = iVar8;\n      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);\n      pXVar5->addr = pSVar6;\n      pcVar7 = sk_addr_error(pSVar6);\n      if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(pXVar5->addr);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);\n      disp = (X11Display *)0x0;\n      (*(code *)PTR_safefree_000ad380)(pXVar5);\n    }\n    else {\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }" if (parenthesized_expression "(pXVar5->unixdomain == 0)" ( (binary_expression "pXVar5->unixdomain == 0" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      iVar8 = pXVar5->displaynum + 6000;\n      pXVar5->port = iVar8;\n      pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);\n      pXVar5->addr = pSVar6;\n      pcVar7 = sk_addr_error(pSVar6);\n      if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(pXVar5->addr);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->hostname);\n      (*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);\n      disp = (X11Display *)0x0;\n      (*(code *)PTR_safefree_000ad380)(pXVar5);\n    }" { (expression_statement "iVar8 = pXVar5->displaynum + 6000;" (assignment_expression "iVar8 = pXVar5->displaynum + 6000" identifier = (binary_expression "pXVar5->displaynum + 6000" (field_expression "pXVar5->displaynum" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pXVar5->port = iVar8;" (assignment_expression "pXVar5->port = iVar8" (field_expression "pXVar5->port" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0);" (assignment_expression "pSVar6 = (SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0)" identifier = (call_expression "(SockAddr)(*(code *)puVar2)(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0)" (call_expression "(SockAddr)(*(code *)puVar2)" (parenthesized_expression "(SockAddr)" ( identifier )) (argument_list "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(pXVar5->hostname,iVar8,&pXVar5->realhost,conf,0,0,0)" ( (field_expression "pXVar5->hostname" identifier -> field_identifier) , identifier , (pointer_expression "&pXVar5->realhost" & (field_expression "pXVar5->realhost" identifier -> field_identifier)) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "pXVar5->addr = pSVar6;" (assignment_expression "pXVar5->addr = pSVar6" (field_expression "pXVar5->addr" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar7 = sk_addr_error(pSVar6);" (assignment_expression "pcVar7 = sk_addr_error(pSVar6)" identifier = (call_expression "sk_addr_error(pSVar6)" identifier (argument_list "(pSVar6)" ( identifier )))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pSVar6 = pXVar5->addr;\n        if (pXVar5->unixdomain != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(pSVar6);\n        if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        disp = pXVar5;\n        if (pXVar5->unixdomain != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" { (expression_statement "pSVar6 = pXVar5->addr;" (assignment_expression "pSVar6 = pXVar5->addr" identifier = (field_expression "pXVar5->addr" identifier -> field_identifier)) ;) (if_statement "if (pXVar5->unixdomain != 0) goto LAB_00087660;" if (parenthesized_expression "(pXVar5->unixdomain != 0)" ( (binary_expression "pXVar5->unixdomain != 0" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) != number_literal) )) (goto_statement "goto LAB_00087660;" goto statement_identifier ;)) (expression_statement "iVar8 = sk_address_is_local(pSVar6);" (assignment_expression "iVar8 = sk_address_is_local(pSVar6)" identifier = (call_expression "sk_address_is_local(pSVar6)" identifier (argument_list "(pSVar6)" ( identifier )))) ;) (if_statement "if (iVar8 != 0) {\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n          pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);\n          pcVar7 = sk_addr_error(pSVar6);\n          if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }\n          cmp = sk_addr_dup(pSVar6);\n          p_Var10 = sk_new((cmp *)cmp);\n          sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (sockpath != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(pXVar5->addr);\n          sockpath = pXVar5->unixsocketpath;\n          pXVar5->unixdomain = 1;\n          pXVar5->addr = pSVar6;\n          goto LAB_00087664;\n        }" { (expression_statement "pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum);" (assignment_expression "pSVar6 = platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum)" identifier = (call_expression "platform_get_x11_unix_address((char *)0x0,pXVar5->displaynum)" identifier (argument_list "((char *)0x0,pXVar5->displaynum)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (field_expression "pXVar5->displaynum" identifier -> field_identifier) )))) ;) (expression_statement "pcVar7 = sk_addr_error(pSVar6);" (assignment_expression "pcVar7 = sk_addr_error(pSVar6)" identifier = (call_expression "sk_addr_error(pSVar6)" identifier (argument_list "(pSVar6)" ( identifier )))) ;) (if_statement "if (pcVar7 != (char *)0x0) {\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00087784:\n            sk_addr_free(pSVar6);\n            goto LAB_00087650;\n          }" { (labeled_statement "LAB_00087784:\n            sk_addr_free(pSVar6);" statement_identifier : (expression_statement "sk_addr_free(pSVar6);" (call_expression "sk_addr_free(pSVar6)" identifier (argument_list "(pSVar6)" ( identifier ))) ;)) (goto_statement "goto LAB_00087650;" goto statement_identifier ;) })) (expression_statement "cmp = sk_addr_dup(pSVar6);" (assignment_expression "cmp = sk_addr_dup(pSVar6)" identifier = (call_expression "sk_addr_dup(pSVar6)" identifier (argument_list "(pSVar6)" ( identifier )))) ;) (expression_statement "p_Var10 = sk_new((cmp *)cmp);" (assignment_expression "p_Var10 = sk_new((cmp *)cmp)" identifier = (call_expression "sk_new((cmp *)cmp)" identifier (argument_list "((cmp *)cmp)" ( (cast_expression "(cmp *)cmp" ( (type_descriptor "cmp *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);" (assignment_expression "sockpath = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" identifier = (cast_expression "(char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(p_Var10->num + 0x1c))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 0x1c))" ( (pointer_expression "**(code **)(p_Var10->num + 0x1c)" * (pointer_expression "*(code **)(p_Var10->num + 0x1c)" * (cast_expression "(code **)(p_Var10->num + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var10->num + 0x1c)" ( (binary_expression "p_Var10->num + 0x1c" (field_expression "p_Var10->num" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(p_Var10)" ( identifier ))))) ;) (expression_statement "(**(code **)(p_Var10->num + 4))(p_Var10);" (call_expression "(**(code **)(p_Var10->num + 4))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 4))" ( (pointer_expression "**(code **)(p_Var10->num + 4)" * (pointer_expression "*(code **)(p_Var10->num + 4)" * (cast_expression "(code **)(p_Var10->num + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var10->num + 4)" ( (binary_expression "p_Var10->num + 4" (field_expression "p_Var10->num" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(p_Var10)" ( identifier ))) ;) (if_statement "if (sockpath != (char *)0x0) goto LAB_00087784;" if (parenthesized_expression "(sockpath != (char *)0x0)" ( (binary_expression "sockpath != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00087784;" goto statement_identifier ;)) (expression_statement "sk_addr_free(pXVar5->addr);" (call_expression "sk_addr_free(pXVar5->addr)" identifier (argument_list "(pXVar5->addr)" ( (field_expression "pXVar5->addr" identifier -> field_identifier) ))) ;) (expression_statement "sockpath = pXVar5->unixsocketpath;" (assignment_expression "sockpath = pXVar5->unixsocketpath" identifier = (field_expression "pXVar5->unixsocketpath" identifier -> field_identifier)) ;) (expression_statement "pXVar5->unixdomain = 1;" (assignment_expression "pXVar5->unixdomain = 1" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) = number_literal) ;) (expression_statement "pXVar5->addr = pSVar6;" (assignment_expression "pXVar5->addr = pSVar6" (field_expression "pXVar5->addr" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00087664;" goto statement_identifier ;) })) (labeled_statement "LAB_00087650:\n        disp = pXVar5;" statement_identifier : (expression_statement "disp = pXVar5;" (assignment_expression "disp = pXVar5" identifier = identifier) ;)) (if_statement "if (pXVar5->unixdomain != 0) goto LAB_0008765c;" if (parenthesized_expression "(pXVar5->unixdomain != 0)" ( (binary_expression "pXVar5->unixdomain != 0" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) != number_literal) )) (goto_statement "goto LAB_0008765c;" goto statement_identifier ;)) (goto_statement "goto LAB_00087454;" goto statement_identifier ;) })) (expression_statement "sk_addr_free(pXVar5->addr);" (call_expression "sk_addr_free(pXVar5->addr)" identifier (argument_list "(pXVar5->addr)" ( (field_expression "pXVar5->addr" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(pXVar5->hostname);" (call_expression "(*(code *)PTR_safefree_000ad380)(pXVar5->hostname)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pXVar5->hostname)" ( (field_expression "pXVar5->hostname" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath);" (call_expression "(*(code *)PTR_safefree_000ad380)(pXVar5->unixsocketpath)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pXVar5->unixsocketpath)" ( (field_expression "pXVar5->unixsocketpath" identifier -> field_identifier) ))) ;) (expression_statement "disp = (X11Display *)0x0;" (assignment_expression "disp = (X11Display *)0x0" identifier = (cast_expression "(X11Display *)0x0" ( (type_descriptor "X11Display *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(pXVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(pXVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pXVar5)" ( identifier ))) ;) }) (else_clause "else {\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }" else (compound_statement "{\nLAB_0008765c:\n      pSVar6 = pXVar5->addr;\nLAB_00087660:\n      sockpath = pXVar5->unixsocketpath;\nLAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }\n      if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }\n      pXVar5->port = 0;\n      disp = pXVar5;\nLAB_00087454:\n      disp->localauthproto = 0;\n      disp->localauthdata = (uchar *)0x0;\n      disp->localauthdatalen = 0;\n      platform_get_x11_auth(disp,conf);\n    }" { (labeled_statement "LAB_0008765c:\n      pSVar6 = pXVar5->addr;" statement_identifier : (expression_statement "pSVar6 = pXVar5->addr;" (assignment_expression "pSVar6 = pXVar5->addr" identifier = (field_expression "pXVar5->addr" identifier -> field_identifier)) ;)) (labeled_statement "LAB_00087660:\n      sockpath = pXVar5->unixsocketpath;" statement_identifier : (expression_statement "sockpath = pXVar5->unixsocketpath;" (assignment_expression "sockpath = pXVar5->unixsocketpath" identifier = (field_expression "pXVar5->unixsocketpath" identifier -> field_identifier)) ;)) (labeled_statement "LAB_00087664:\n      if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }" statement_identifier : (if_statement "if (pSVar6 == (SockAddr)0x0) {\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }" if (parenthesized_expression "(pSVar6 == (SockAddr)0x0)" ( (binary_expression "pSVar6 == (SockAddr)0x0" identifier == (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) )) (compound_statement "{\nLAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);\n        sockpath = pXVar5->unixsocketpath;\n        pXVar5->addr = pSVar6;\n      }" { (labeled_statement "LAB_00087420:\n        pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);" statement_identifier : (expression_statement "pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum);" (assignment_expression "pSVar6 = platform_get_x11_unix_address(sockpath,pXVar5->displaynum)" identifier = (call_expression "platform_get_x11_unix_address(sockpath,pXVar5->displaynum)" identifier (argument_list "(sockpath,pXVar5->displaynum)" ( identifier , (field_expression "pXVar5->displaynum" identifier -> field_identifier) )))) ;)) (expression_statement "sockpath = pXVar5->unixsocketpath;" (assignment_expression "sockpath = pXVar5->unixsocketpath" identifier = (field_expression "pXVar5->unixsocketpath" identifier -> field_identifier)) ;) (expression_statement "pXVar5->addr = pSVar6;" (assignment_expression "pXVar5->addr = pSVar6" (field_expression "pXVar5->addr" identifier -> field_identifier) = identifier) ;) }))) (if_statement "if (sockpath == (char *)0x0) {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }" if (parenthesized_expression "(sockpath == (char *)0x0)" ( (binary_expression "sockpath == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);\n        pXVar5->realhost = pcVar7;\n      }" { (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_000ad2d8)\n                                   (PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum)" (parenthesized_expression "(*(code *)PTR_dupprintf_000ad2d8)" ( (pointer_expression "*(code *)PTR_dupprintf_000ad2d8" * (cast_expression "(code *)PTR_dupprintf_000ad2d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x53d0,pXVar5->displaynum)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x53d0" identifier + number_literal) , (field_expression "pXVar5->displaynum" identifier -> field_identifier) ))))) ;) (expression_statement "pXVar5->realhost = pcVar7;" (assignment_expression "pXVar5->realhost = pcVar7" (field_expression "pXVar5->realhost" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }" else (compound_statement "{\n        pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);\n        pXVar5->realhost = pcVar7;\n      }" { (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(sockpath)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(sockpath)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath)" ( identifier ))))) ;) (expression_statement "pXVar5->realhost = pcVar7;" (assignment_expression "pXVar5->realhost = pcVar7" (field_expression "pXVar5->realhost" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "pXVar5->port = 0;" (assignment_expression "pXVar5->port = 0" (field_expression "pXVar5->port" identifier -> field_identifier) = number_literal) ;) (expression_statement "disp = pXVar5;" (assignment_expression "disp = pXVar5" identifier = identifier) ;) (labeled_statement "LAB_00087454:\n      disp->localauthproto = 0;" statement_identifier : (expression_statement "disp->localauthproto = 0;" (assignment_expression "disp->localauthproto = 0" (field_expression "disp->localauthproto" identifier -> field_identifier) = number_literal) ;)) (expression_statement "disp->localauthdata = (uchar *)0x0;" (assignment_expression "disp->localauthdata = (uchar *)0x0" (field_expression "disp->localauthdata" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "disp->localauthdatalen = 0;" (assignment_expression "disp->localauthdatalen = 0" (field_expression "disp->localauthdatalen" identifier -> field_identifier) = number_literal) ;) (expression_statement "platform_get_x11_auth(disp,conf);" (call_expression "platform_get_x11_auth(disp,conf)" identifier (argument_list "(disp,conf)" ( identifier , identifier ))) ;) }))) (labeled_statement "LAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return disp;\n    }" statement_identifier : (if_statement "if (iVar4 == *(int *)puVar3) {\n      return disp;\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 disp;\n    }" { (return_statement "return disp;" return identifier ;) }))) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" identifier = (cast_expression "(undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (expression_statement "pXVar5 = disp;" (assignment_expression "pXVar5 = disp" identifier = identifier) ;) (labeled_statement "LAB_000878c0:\n    pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" statement_identifier : (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11 + 1)" ( (binary_expression "puVar11 + 1" identifier + number_literal) ))))) ;)) (expression_statement "pXVar5->hostname = pcVar7;" (assignment_expression "pXVar5->hostname = pcVar7" (field_expression "pXVar5->hostname" identifier -> field_identifier) = identifier) ;) (labeled_statement "LAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);" statement_identifier : (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2c8 + -0x8f8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath,PTR_DAT_000ad2c8 + -0x8f8)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x8f8" identifier + number_literal) )))) ;)) (if_statement "if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar9 = 1;\n    }" { (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" else (compound_statement "{\n      iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" { (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(sockpath,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sockpath,PTR_DAT_000ad2d0 + -0x53d8)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" identifier + number_literal) )))) ;) (expression_statement "uVar9 = (uint)(iVar8 == 0);" (assignment_expression "uVar9 = (uint)(iVar8 == 0)" identifier = (call_expression "(uint)(iVar8 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )))) ;) }))) (expression_statement "pXVar5->unixdomain = uVar9;" (assignment_expression "pXVar5->unixdomain = uVar9" (field_expression "pXVar5->unixdomain" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "uint * x11_setup_display(char *param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}\n\n" (function_definition "uint * x11_setup_display(char *param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}" type_identifier (pointer_declarator "* x11_setup_display(char *param_1,undefined4 param_2)" * (function_declarator "x11_setup_display(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type 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 "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "cmp *cmp;" type_identifier (pointer_declarator "*cmp" * identifier) ;) (declaration "_STACK *p_Var10;" type_identifier (pointer_declarator "*p_Var10" * identifier) ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000adcd4" 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 "puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);" (assignment_expression "puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" identifier = (cast_expression "(uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" ( (pointer_expression "*(code *)PTR_safemalloc_000ad414" * (cast_expression "(code *)PTR_safemalloc_000ad414" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x2c)" ( number_literal , number_literal ))))) ;) (if_statement "if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" if (parenthesized_expression "((param_1 == (char *)0x0) || (*param_1 == '\0'))" ( (binary_expression "(param_1 == (char *)0x0) || (*param_1 == '\0')" (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }" { (expression_statement "pcVar6 = (char *)platform_get_x_display();" (assignment_expression "pcVar6 = (char *)platform_get_x_display()" identifier = (cast_expression "(char *)platform_get_x_display()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "platform_get_x_display()" identifier (argument_list "()" ( ))))) ;) (if_statement "if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }" if (parenthesized_expression "((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0'))" ( (binary_expression "(pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')" (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(cVar1 = *pcVar6, cVar1 == '\0')" ( (comma_expression "cVar1 = *pcVar6, cVar1 == '\0'" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) , (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }" { (expression_statement "(*(code *)PTR_safefree_000ad380)(pcVar6);" (call_expression "(*(code *)PTR_safefree_000ad380)(pcVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x53dc)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x53dc" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) })) }) (else_clause "else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" else (compound_statement "{\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" { (expression_statement "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000ad2dc)(param_1)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) }))) (if_statement "if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }" if (parenthesized_expression "(cVar1 == '/')" ( (binary_expression "cVar1 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }" { (expression_statement "puVar5[4] = (uint)pcVar6;" (assignment_expression "puVar5[4] = (uint)pcVar6" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 1;" (assignment_expression "*puVar5 = 1" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[3] = 0;" (assignment_expression "puVar5[3] = 0" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[2] = 0xffffffff;" (assignment_expression "puVar5[2] = 0xffffffff" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00087420;" goto statement_identifier ;) })) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" (parenthesized_expression "(*(code *)PTR_host_strrchr_000ad5a4)" ( (pointer_expression "*(code *)PTR_host_strrchr_000ad5a4" * (cast_expression "(code *)PTR_host_strrchr_000ad5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,0x3a)" ( identifier , number_literal ))))) ;) (expression_statement "puVar2 = PTR_strchr_000adc2c;" (assignment_expression "puVar2 = PTR_strchr_000adc2c" identifier = identifier) ;) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }" if (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" ( (binary_expression "puVar11 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }" { (expression_statement "puVar12 = (uint *)0x0;" (assignment_expression "puVar12 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(pcVar6);" (call_expression "(*(code *)PTR_safefree_000ad380)(pcVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (goto_statement "goto LAB_00087470;" goto statement_identifier ;) })) (expression_statement "pcVar13 = puVar11 + 1;" (assignment_expression "pcVar13 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (expression_statement "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar2)(pcVar13,0x2e)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar2)(pcVar13,0x2e)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar13,0x2e)" ( identifier , number_literal ))))) ;) (expression_statement "puVar2 = PTR_strtol_000adb28;" (assignment_expression "puVar2 = PTR_strtol_000adb28" identifier = identifier) ;) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" if (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" ( (binary_expression "puVar11 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }" { (expression_statement "uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);" (assignment_expression "uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_000adb28)(pcVar13,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" ( (pointer_expression "*(code *)PTR_strtol_000adb28" * (cast_expression "(code *)PTR_strtol_000adb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar13,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "puVar5[2] = uVar7;" (assignment_expression "puVar5[2] = uVar7" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" else (compound_statement "{\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" { (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (expression_statement "uVar7 = (*(code *)puVar2)(pcVar13);" (assignment_expression "uVar7 = (*(code *)puVar2)(pcVar13)" identifier = (call_expression "(*(code *)puVar2)(pcVar13)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar13)" ( identifier )))) ;) (expression_statement "puVar5[2] = uVar7;" (assignment_expression "puVar5[2] = uVar7" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }" if (parenthesized_expression "(puVar11 + 1 != (undefined1 *)0x0)" ( (binary_expression "puVar11 + 1 != (undefined1 *)0x0" (binary_expression "puVar11 + 1" identifier + number_literal) != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }" { (expression_statement "uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);" (assignment_expression "uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" ( (pointer_expression "*(code *)PTR_strtol_000adb28" * (cast_expression "(code *)PTR_strtol_000adb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11 + 1,0,10)" ( (binary_expression "puVar11 + 1" identifier + number_literal) , number_literal , number_literal )))) ;) (expression_statement "puVar5[3] = uVar7;" (assignment_expression "puVar5[3] = uVar7" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00087554;" goto statement_identifier ;) })) }))) (expression_statement "puVar5[3] = 0;" (assignment_expression "puVar5[3] = 0" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" statement_identifier : (if_statement "if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" if (parenthesized_expression "((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0))" ( (binary_expression "(pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)" (parenthesized_expression "(pcVar6 < pcVar13)" ( (binary_expression "pcVar6 < pcVar13" identifier < identifier) )) && (parenthesized_expression "(puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)" ( (comma_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000adc2c)" ( (pointer_expression "*(code *)PTR_strchr_000adc2c" * (cast_expression "(code *)PTR_strchr_000adc2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,0x2f)" ( identifier , number_literal ))))) , (binary_expression "puVar11 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" { (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" * identifier) = number_literal) ;) (if_statement "if (puVar11[1] != '\0') goto LAB_000878c0;" if (parenthesized_expression "(puVar11[1] != '\0')" ( (binary_expression "puVar11[1] != '\0'" (subscript_expression "puVar11[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000878c0;" goto statement_identifier ;)) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00087588;" goto statement_identifier ;) }))) (if_statement "if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }" { (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" else (compound_statement "{\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" { (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" if (parenthesized_expression "((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0))" ( (binary_expression "(*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" (parenthesized_expression "(*pcVar6 != '\0')" ( (binary_expression "*pcVar6 != '\0'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" ( (comma_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" identifier + number_literal) )))) , (binary_expression "iVar8 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (if_statement "if (uVar7 != 0) goto LAB_000875cc;" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000875cc;" goto statement_identifier ;)) (goto_statement "goto LAB_000876dc;" goto statement_identifier ;) })) (expression_statement "*puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;" (assignment_expression "*puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" * (cast_expression "(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );" do (compound_statement "{\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  }" { (if_statement "if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }" if (parenthesized_expression "((uVar7 == 0) && (*puVar5 == 0))" ( (binary_expression "(uVar7 == 0) && (*puVar5 == 0)" (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) && (parenthesized_expression "(*puVar5 == 0)" ( (binary_expression "*puVar5 == 0" (pointer_expression "*puVar5" * identifier) == number_literal) ))) )) (compound_statement "{\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }" { (labeled_statement "LAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" statement_identifier : (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2c8 + -0x81c)" ( (binary_expression "PTR_DAT_000ad2c8 + -0x81c" identifier + number_literal) )))) ;)) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) })) (labeled_statement "LAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;" statement_identifier : (expression_statement "puVar2 = PTR_safefree_000ad380;" (assignment_expression "puVar2 = PTR_safefree_000ad380" identifier = identifier) ;)) (expression_statement "puVar5[4] = 0;" (assignment_expression "puVar5[4] = 0" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*(code *)puVar2)(pcVar6);" (call_expression "(*(code *)puVar2)(pcVar6)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_name_lookup_000ad528;" (assignment_expression "puVar2 = PTR_name_lookup_000ad528" identifier = identifier) ;) (if_statement "if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" if (parenthesized_expression "(*puVar5 == 0)" ( (binary_expression "*puVar5 == 0" (pointer_expression "*puVar5" * identifier) == number_literal) )) (compound_statement "{\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }" { (expression_statement "puVar5[6] = puVar5[2] + 6000;" (assignment_expression "puVar5[6] = puVar5[2] + 6000" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = (binary_expression "puVar5[2] + 6000" (subscript_expression "puVar5[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);" (assignment_expression "uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" identifier = (call_expression "(*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" ( (subscript_expression "puVar5[1]" identifier [ number_literal ]) , (binary_expression "puVar5[2] + 6000" (subscript_expression "puVar5[2]" identifier [ number_literal ]) + number_literal) , (binary_expression "puVar5 + 7" identifier + number_literal) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar8 = sk_addr_error(uVar7);" (assignment_expression "iVar8 = sk_addr_error(uVar7)" identifier = (call_expression "sk_addr_error(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" { (expression_statement "uVar7 = puVar5[5];" (assignment_expression "uVar7 = puVar5[5]" identifier = (subscript_expression "puVar5[5]" identifier [ number_literal ])) ;) (if_statement "if (*puVar5 != 0) goto LAB_00087660;" if (parenthesized_expression "(*puVar5 != 0)" ( (binary_expression "*puVar5 != 0" (pointer_expression "*puVar5" * identifier) != number_literal) )) (goto_statement "goto LAB_00087660;" goto statement_identifier ;)) (expression_statement "iVar8 = sk_address_is_local(uVar7);" (assignment_expression "iVar8 = sk_address_is_local(uVar7)" identifier = (call_expression "sk_address_is_local(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (if_statement "if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }" { (expression_statement "uVar7 = platform_get_x11_unix_address(0,puVar5[2]);" (assignment_expression "uVar7 = platform_get_x11_unix_address(0,puVar5[2])" identifier = (call_expression "platform_get_x11_unix_address(0,puVar5[2])" identifier (argument_list "(0,puVar5[2])" ( number_literal , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar8 = sk_addr_error(uVar7);" (assignment_expression "iVar8 = sk_addr_error(uVar7)" identifier = (call_expression "sk_addr_error(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (if_statement "if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }" { (labeled_statement "LAB_00087784:\n            sk_addr_free(uVar7);" statement_identifier : (expression_statement "sk_addr_free(uVar7);" (call_expression "sk_addr_free(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;)) (goto_statement "goto LAB_00087650;" goto statement_identifier ;) })) (expression_statement "cmp = (cmp *)sk_addr_dup(uVar7);" (assignment_expression "cmp = (cmp *)sk_addr_dup(uVar7)" identifier = (cast_expression "(cmp *)sk_addr_dup(uVar7)" ( (type_descriptor "cmp *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sk_addr_dup(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))))) ;) (expression_statement "p_Var10 = sk_new(cmp);" (assignment_expression "p_Var10 = sk_new(cmp)" identifier = (call_expression "sk_new(cmp)" identifier (argument_list "(cmp)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);" (assignment_expression "pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" identifier = (cast_expression "(char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(p_Var10->num + 0x1c))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 0x1c))" ( (pointer_expression "**(code **)(p_Var10->num + 0x1c)" * (pointer_expression "*(code **)(p_Var10->num + 0x1c)" * (cast_expression "(code **)(p_Var10->num + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var10->num + 0x1c)" ( (binary_expression "p_Var10->num + 0x1c" (field_expression "p_Var10->num" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(p_Var10)" ( identifier ))))) ;) (expression_statement "(**(code **)(p_Var10->num + 4))(p_Var10);" (call_expression "(**(code **)(p_Var10->num + 4))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 4))" ( (pointer_expression "**(code **)(p_Var10->num + 4)" * (pointer_expression "*(code **)(p_Var10->num + 4)" * (cast_expression "(code **)(p_Var10->num + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var10->num + 4)" ( (binary_expression "p_Var10->num + 4" (field_expression "p_Var10->num" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(p_Var10)" ( identifier ))) ;) (if_statement "if (pcVar6 != (char *)0x0) goto LAB_00087784;" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00087784;" goto statement_identifier ;)) (expression_statement "sk_addr_free(puVar5[5]);" (call_expression "sk_addr_free(puVar5[5])" identifier (argument_list "(puVar5[5])" ( (subscript_expression "puVar5[5]" identifier [ number_literal ]) ))) ;) (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" identifier = (cast_expression "(char *)puVar5[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[4]" identifier [ number_literal ]))) ;) (expression_statement "*puVar5 = 1;" (assignment_expression "*puVar5 = 1" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00087664;" goto statement_identifier ;) })) (labeled_statement "LAB_00087650:\n        puVar12 = puVar5;" statement_identifier : (expression_statement "puVar12 = puVar5;" (assignment_expression "puVar12 = puVar5" identifier = identifier) ;)) (if_statement "if (*puVar5 != 0) goto LAB_0008765c;" if (parenthesized_expression "(*puVar5 != 0)" ( (binary_expression "*puVar5 != 0" (pointer_expression "*puVar5" * identifier) != number_literal) )) (goto_statement "goto LAB_0008765c;" goto statement_identifier ;)) (goto_statement "goto LAB_00087454;" goto statement_identifier ;) })) (expression_statement "sk_addr_free(puVar5[5]);" (call_expression "sk_addr_free(puVar5[5])" identifier (argument_list "(puVar5[5])" ( (subscript_expression "puVar5[5]" identifier [ number_literal ]) ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5[1]);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5[1])" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5[1])" ( (subscript_expression "puVar5[1]" identifier [ number_literal ]) ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5[4]);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5[4])" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5[4])" ( (subscript_expression "puVar5[4]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar12 = (uint *)0x0;" (assignment_expression "puVar12 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) }) (else_clause "else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" else (compound_statement "{\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" { (labeled_statement "LAB_0008765c:\n      uVar7 = puVar5[5];" statement_identifier : (expression_statement "uVar7 = puVar5[5];" (assignment_expression "uVar7 = puVar5[5]" identifier = (subscript_expression "puVar5[5]" identifier [ number_literal ])) ;)) (labeled_statement "LAB_00087660:\n      pcVar6 = (char *)puVar5[4];" statement_identifier : (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" identifier = (cast_expression "(char *)puVar5[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[4]" identifier [ number_literal ]))) ;)) (labeled_statement "LAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" statement_identifier : (if_statement "if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" { (labeled_statement "LAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);" statement_identifier : (expression_statement "uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);" (assignment_expression "uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2])" identifier = (call_expression "platform_get_x11_unix_address(pcVar6,puVar5[2])" identifier (argument_list "(pcVar6,puVar5[2])" ( identifier , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;)) (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" identifier = (cast_expression "(char *)puVar5[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[4]" identifier [ number_literal ]))) ;) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }" { (expression_statement "uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);" (assignment_expression "uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" identifier = (call_expression "(*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" (parenthesized_expression "(*(code *)PTR_dupprintf_000ad2d8)" ( (pointer_expression "*(code *)PTR_dupprintf_000ad2d8" * (cast_expression "(code *)PTR_dupprintf_000ad2d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" ( (binary_expression "PTR_DAT_000ad2d0 + -0x53d0" identifier + number_literal) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" else (compound_statement "{\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" { (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar12 = puVar5;" (assignment_expression "puVar12 = puVar5" identifier = identifier) ;) (labeled_statement "LAB_00087454:\n      puVar12[8] = 0;" statement_identifier : (expression_statement "puVar12[8] = 0;" (assignment_expression "puVar12[8] = 0" (subscript_expression "puVar12[8]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "puVar12[9] = 0;" (assignment_expression "puVar12[9] = 0" (subscript_expression "puVar12[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar12[10] = 0;" (assignment_expression "puVar12[10] = 0" (subscript_expression "puVar12[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "platform_get_x11_auth(puVar12,param_2);" (call_expression "platform_get_x11_auth(puVar12,param_2)" identifier (argument_list "(puVar12,param_2)" ( identifier , identifier ))) ;) }))) (labeled_statement "LAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }" statement_identifier : (if_statement "if (iVar4 == *(int *)puVar3) {\n      return puVar12;\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 puVar12;\n    }" { (return_statement "return puVar12;" return identifier ;) }))) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" identifier = (cast_expression "(undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (expression_statement "puVar5 = puVar12;" (assignment_expression "puVar5 = puVar12" identifier = identifier) ;) (labeled_statement "LAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" statement_identifier : (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" identifier = (call_expression "(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" ( (pointer_expression "*(code *)PTR_dupstr_000ad2dc" * (cast_expression "(code *)PTR_dupstr_000ad2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11 + 1)" ( (binary_expression "puVar11 + 1" identifier + number_literal) )))) ;)) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);" statement_identifier : (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" ( identifier , (binary_expression "PTR_DAT_000ad2c8 + -0x8f8" identifier + number_literal) )))) ;)) (if_statement "if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar9 = 1;\n    }" { (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" else (compound_statement "{\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" { (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" identifier = (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" ( (pointer_expression "*(code *)PTR_strcmp_000add14" * (cast_expression "(code *)PTR_strcmp_000add14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" identifier + number_literal) )))) ;) (expression_statement "uVar9 = (uint)(iVar8 == 0);" (assignment_expression "uVar9 = (uint)(iVar8 == 0)" identifier = (call_expression "(uint)(iVar8 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )))) ;) }))) (expression_statement "*puVar5 = uVar9;" (assignment_expression "*puVar5 = uVar9" (pointer_expression "*puVar5" * identifier) = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (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 ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (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 ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) }) (else_clause else (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 ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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 ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_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 )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) , LIT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (comma_expression (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 ( IDENT , LIT ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (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 (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_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) )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_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 ( (subscript_expression IDENT [ LIT ]) , (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) , (binary_expression IDENT + LIT) , IDENT , LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) + LIT) ))))) )) (argument_list ( IDENT ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) + LIT) ))))) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (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 (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (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 = IDENT) ;) (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) )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 ( IDENT , (binary_expression IDENT + LIT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "uint * x11_setup_display(char *param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}" (type_identifier "uint") (pointer_declarator "* x11_setup_display(char *param_1,undefined4 param_2)" (* "*") (function_declarator "x11_setup_display(char *param_1,undefined4 param_2)" (identifier "x11_setup_display") (parameter_list "(char *param_1,undefined4 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")")))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint *puVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  uint uVar9;\n  cmp *cmp;\n  _STACK *p_Var10;\n  undefined1 *puVar11;\n  uint *puVar12;\n  char *pcVar13;\n  \n  puVar3 = PTR___stack_chk_guard_000adcd4;\n  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;\n  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }\n  if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }\n  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);\n  puVar2 = PTR_strchr_000adc2c;\n  if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }\n  pcVar13 = puVar11 + 1;\n  *puVar11 = 0;\n  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);\n  puVar2 = PTR_strtol_000adb28;\n  if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }\n  puVar5[3] = 0;\nLAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }\n  if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }\n  if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }\n  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;\n  do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (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 "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "cmp *cmp;" (type_identifier "cmp") (pointer_declarator "*cmp" (* "*") (identifier "cmp")) (; ";")) (declaration "_STACK *p_Var10;" (type_identifier "_STACK") (pointer_declarator "*p_Var10" (* "*") (identifier "p_Var10")) (; ";")) (declaration "undefined1 *puVar11;" (type_identifier "undefined1") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "uint *puVar12;" (type_identifier "uint") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "char *pcVar13;" (primitive_type "char") (pointer_declarator "*pcVar13" (* "*") (identifier "pcVar13")) (; ";")) (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 "iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "iVar4 = *(int *)PTR___stack_chk_guard_000adcd4" (identifier "iVar4") (= "=") (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 "puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);" (assignment_expression "puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" (identifier "puVar5") (= "=") (cast_expression "(uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x2c)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000ad414" (* "*") (cast_expression "(code *)PTR_safemalloc_000ad414" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000ad414"))) () ")")) (argument_list "(1,0x2c)" (( "(") (number_literal "1") (, ",") (number_literal "0x2c") () ")"))))) (; ";")) (if_statement "if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" (if "if") (parenthesized_expression "((param_1 == (char *)0x0) || (*param_1 == '\0'))" (( "(") (binary_expression "(param_1 == (char *)0x0) || (*param_1 == '\0')" (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    pcVar6 = (char *)platform_get_x_display();\n    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }\n  }" ({ "{") (expression_statement "pcVar6 = (char *)platform_get_x_display();" (assignment_expression "pcVar6 = (char *)platform_get_x_display()" (identifier "pcVar6") (= "=") (cast_expression "(char *)platform_get_x_display()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "platform_get_x_display()" (identifier "platform_get_x_display") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }" (if "if") (parenthesized_expression "((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0'))" (( "(") (binary_expression "(pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')" (parenthesized_expression "(pcVar6 == (char *)0x0)" (( "(") (binary_expression "pcVar6 == (char *)0x0" (identifier "pcVar6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 = *pcVar6, cVar1 == '\0')" (( "(") (comma_expression "cVar1 = *pcVar6, cVar1 == '\0'" (assignment_expression "cVar1 = *pcVar6" (identifier "cVar1") (= "=") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6"))) (, ",") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n      (*(code *)PTR_safefree_000ad380)(pcVar6);\n      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);\n      cVar1 = *pcVar6;\n    }" ({ "{") (expression_statement "(*(code *)PTR_safefree_000ad380)(pcVar6);" (call_expression "(*(code *)PTR_safefree_000ad380)(pcVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" (( "(") (pointer_expression "*(code *)PTR_safefree_000ad380" (* "*") (cast_expression "(code *)PTR_safefree_000ad380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000ad380"))) () ")")) (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")"))) (; ";")) (expression_statement "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" (identifier "pcVar6") (= "=") (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000ad2dc" (* "*") (cast_expression "(code *)PTR_dupstr_000ad2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000ad2dc"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x53dc)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x53dc" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x53dc")) () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" (identifier "cVar1") (= "=") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" (else "else") (compound_statement "{\n    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);\n    cVar1 = *pcVar6;\n  }" ({ "{") (expression_statement "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1)" (identifier "pcVar6") (= "=") (cast_expression "(char *)(*(code *)PTR_dupstr_000ad2dc)(param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_dupstr_000ad2dc)(param_1)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000ad2dc" (* "*") (cast_expression "(code *)PTR_dupstr_000ad2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000ad2dc"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" (identifier "cVar1") (= "=") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6"))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '/') {\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }" (if "if") (parenthesized_expression "(cVar1 == '/')" (( "(") (binary_expression "cVar1 == '/'" (identifier "cVar1") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n    puVar5[4] = (uint)pcVar6;\n    puVar5[1] = 0;\n    *puVar5 = 1;\n    puVar5[3] = 0;\n    puVar5[2] = 0xffffffff;\n    puVar5[5] = 0;\n    goto LAB_00087420;\n  }" ({ "{") (expression_statement "puVar5[4] = (uint)pcVar6;" (assignment_expression "puVar5[4] = (uint)pcVar6" (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(uint)pcVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar6"))) (; ";")) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar5 = 1;" (assignment_expression "*puVar5 = 1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar5[3] = 0;" (assignment_expression "puVar5[3] = 0" (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[2] = 0xffffffff;" (assignment_expression "puVar5[2] = 0xffffffff" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00087420;" (goto "goto") (statement_identifier "LAB_00087420") (; ";")) (} "}"))) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" (identifier "puVar11") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a)" (parenthesized_expression "(*(code *)PTR_host_strrchr_000ad5a4)" (( "(") (pointer_expression "*(code *)PTR_host_strrchr_000ad5a4" (* "*") (cast_expression "(code *)PTR_host_strrchr_000ad5a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_host_strrchr_000ad5a4"))) () ")")) (argument_list "(pcVar6,0x3a)" (( "(") (identifier "pcVar6") (, ",") (number_literal "0x3a") () ")"))))) (; ";")) (expression_statement "puVar2 = PTR_strchr_000adc2c;" (assignment_expression "puVar2 = PTR_strchr_000adc2c" (identifier "puVar2") (= "=") (identifier "PTR_strchr_000adc2c")) (; ";")) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }" (if "if") (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar11 == (undefined1 *)0x0" (identifier "puVar11") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar12 = (uint *)0x0;\n    (*(code *)PTR_safefree_000ad380)(puVar5);\n    (*(code *)PTR_safefree_000ad380)(pcVar6);\n    goto LAB_00087470;\n  }" ({ "{") (expression_statement "puVar12 = (uint *)0x0;" (assignment_expression "puVar12 = (uint *)0x0" (identifier "puVar12") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" (( "(") (pointer_expression "*(code *)PTR_safefree_000ad380" (* "*") (cast_expression "(code *)PTR_safefree_000ad380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000ad380"))) () ")")) (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000ad380)(pcVar6);" (call_expression "(*(code *)PTR_safefree_000ad380)(pcVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" (( "(") (pointer_expression "*(code *)PTR_safefree_000ad380" (* "*") (cast_expression "(code *)PTR_safefree_000ad380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000ad380"))) () ")")) (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")"))) (; ";")) (goto_statement "goto LAB_00087470;" (goto "goto") (statement_identifier "LAB_00087470") (; ";")) (} "}"))) (expression_statement "pcVar13 = puVar11 + 1;" (assignment_expression "pcVar13 = puVar11 + 1" (identifier "pcVar13") (= "=") (binary_expression "puVar11 + 1" (identifier "puVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" (* "*") (identifier "puVar11")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);" (assignment_expression "puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e)" (identifier "puVar11") (= "=") (cast_expression "(undefined1 *)(*(code *)puVar2)(pcVar13,0x2e)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar2)(pcVar13,0x2e)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(pcVar13,0x2e)" (( "(") (identifier "pcVar13") (, ",") (number_literal "0x2e") () ")"))))) (; ";")) (expression_statement "puVar2 = PTR_strtol_000adb28;" (assignment_expression "puVar2 = PTR_strtol_000adb28" (identifier "puVar2") (= "=") (identifier "PTR_strtol_000adb28")) (; ";")) (if_statement "if (puVar11 == (undefined1 *)0x0) {\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }\n  else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" (if "if") (parenthesized_expression "(puVar11 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar11 == (undefined1 *)0x0" (identifier "puVar11") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);\n    puVar5[2] = uVar7;\n  }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);" (assignment_expression "uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_strtol_000adb28)(pcVar13,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" (( "(") (pointer_expression "*(code *)PTR_strtol_000adb28" (* "*") (cast_expression "(code *)PTR_strtol_000adb28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtol_000adb28"))) () ")")) (argument_list "(pcVar13,0,10)" (( "(") (identifier "pcVar13") (, ",") (number_literal "0") (, ",") (number_literal "10") () ")")))) (; ";")) (expression_statement "puVar5[2] = uVar7;" (assignment_expression "puVar5[2] = uVar7" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}")) (else_clause "else {\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" (else "else") (compound_statement "{\n    *puVar11 = 0;\n    uVar7 = (*(code *)puVar2)(pcVar13);\n    puVar5[2] = uVar7;\n    if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }\n  }" ({ "{") (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" (* "*") (identifier "puVar11")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = (*(code *)puVar2)(pcVar13);" (assignment_expression "uVar7 = (*(code *)puVar2)(pcVar13)" (identifier "uVar7") (= "=") (call_expression "(*(code *)puVar2)(pcVar13)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(pcVar13)" (( "(") (identifier "pcVar13") () ")")))) (; ";")) (expression_statement "puVar5[2] = uVar7;" (assignment_expression "puVar5[2] = uVar7" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (puVar11 + 1 != (undefined1 *)0x0) {\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }" (if "if") (parenthesized_expression "(puVar11 + 1 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar11 + 1 != (undefined1 *)0x0" (binary_expression "puVar11 + 1" (identifier "puVar11") (+ "+") (number_literal "1")) (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);\n      puVar5[3] = uVar7;\n      goto LAB_00087554;\n    }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);" (assignment_expression "uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_000adb28)" (( "(") (pointer_expression "*(code *)PTR_strtol_000adb28" (* "*") (cast_expression "(code *)PTR_strtol_000adb28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtol_000adb28"))) () ")")) (argument_list "(puVar11 + 1,0,10)" (( "(") (binary_expression "puVar11 + 1" (identifier "puVar11") (+ "+") (number_literal "1")) (, ",") (number_literal "0") (, ",") (number_literal "10") () ")")))) (; ";")) (expression_statement "puVar5[3] = uVar7;" (assignment_expression "puVar5[3] = uVar7" (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (goto_statement "goto LAB_00087554;" (goto "goto") (statement_identifier "LAB_00087554") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar5[3] = 0;" (assignment_expression "puVar5[3] = 0" (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00087554:\n  if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" (statement_identifier "LAB_00087554") (: ":") (if_statement "if ((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)) {\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" (if "if") (parenthesized_expression "((pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0))" (( "(") (binary_expression "(pcVar6 < pcVar13) &&\n     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)" (parenthesized_expression "(pcVar6 < pcVar13)" (( "(") (binary_expression "pcVar6 < pcVar13" (identifier "pcVar6") (< "<") (identifier "pcVar13")) () ")")) (&& "&&") (parenthesized_expression "(puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0)" (( "(") (comma_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),\n     puVar11 != (undefined1 *)0x0" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" (identifier "puVar11") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000adc2c)" (( "(") (pointer_expression "*(code *)PTR_strchr_000adc2c" (* "*") (cast_expression "(code *)PTR_strchr_000adc2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_000adc2c"))) () ")")) (argument_list "(pcVar6,0x2f)" (( "(") (identifier "pcVar6") (, ",") (number_literal "0x2f") () ")"))))) (, ",") (binary_expression "puVar11 != (undefined1 *)0x0" (identifier "puVar11") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    *puVar11 = 0;\n    if (puVar11[1] != '\0') goto LAB_000878c0;\n    uVar7 = 0;\n    puVar5[1] = 0;\n    goto LAB_00087588;\n  }" ({ "{") (expression_statement "*puVar11 = 0;" (assignment_expression "*puVar11 = 0" (pointer_expression "*puVar11" (* "*") (identifier "puVar11")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar11[1] != '\0') goto LAB_000878c0;" (if "if") (parenthesized_expression "(puVar11[1] != '\0')" (( "(") (binary_expression "puVar11[1] != '\0'" (subscript_expression "puVar11[1]" (identifier "puVar11") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000878c0;" (goto "goto") (statement_identifier "LAB_000878c0") (; ";"))) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00087588;" (goto "goto") (statement_identifier "LAB_00087588") (; ";")) (} "}")))) (if_statement "if (*pcVar6 == '\0') {\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }\n  else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" (if "if") (parenthesized_expression "(*pcVar6 == '\0')" (( "(") (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    puVar5[1] = 0;\n    uVar7 = 0;\n  }" ({ "{") (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" (else "else") (compound_statement "{\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n    puVar5[1] = uVar7;\n  }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000ad2dc" (* "*") (cast_expression "(code *)PTR_dupstr_000ad2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000ad2dc"))) () ")")) (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")")))) (; ";")) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}")))) (if_statement "if ((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" (if "if") (parenthesized_expression "((*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0))" (( "(") (binary_expression "(*pcVar6 != '\0') &&\n     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" (parenthesized_expression "(*pcVar6 != '\0')" (( "(") (binary_expression "*pcVar6 != '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)" (( "(") (comma_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" (( "(") (pointer_expression "*(code *)PTR_strcmp_000add14" (* "*") (cast_expression "(code *)PTR_strcmp_000add14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_000add14"))) () ")")) (argument_list "(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (( "(") (identifier "pcVar6") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x53d8")) () ")")))) (, ",") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    *puVar5 = 0;\n    if (uVar7 != 0) goto LAB_000875cc;\n    goto LAB_000876dc;\n  }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar7 != 0) goto LAB_000875cc;" (if "if") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000875cc;" (goto "goto") (statement_identifier "LAB_000875cc") (; ";"))) (goto_statement "goto LAB_000876dc;" (goto "goto") (statement_identifier "LAB_000876dc") (; ";")) (} "}"))) (expression_statement "*puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;" (assignment_expression "*puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" (* "*") (cast_expression "(uint *)PTR_platform_uses_x11_unix_by_default_000adab4" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_platform_uses_x11_unix_by_default_000adab4")))) (; ";")) (do_statement "do {\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  } while( true );" (do "do") (compound_statement "{\n    if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }\nLAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;\n    puVar5[4] = 0;\n    puVar5[5] = 0;\n    (*(code *)puVar2)(pcVar6);\n    puVar2 = PTR_name_lookup_000ad528;\n    if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }\nLAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }\n    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();\n    puVar5 = puVar12;\nLAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);\n    puVar5[1] = uVar7;\nLAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);\n    if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }\n    *puVar5 = uVar9;\n  }" ({ "{") (if_statement "if ((uVar7 == 0) && (*puVar5 == 0)) {\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }" (if "if") (parenthesized_expression "((uVar7 == 0) && (*puVar5 == 0))" (( "(") (binary_expression "(uVar7 == 0) && (*puVar5 == 0)" (parenthesized_expression "(uVar7 == 0)" (( "(") (binary_expression "uVar7 == 0" (identifier "uVar7") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*puVar5 == 0)" (( "(") (binary_expression "*puVar5 == 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);\n      puVar5[1] = uVar7;\n    }" ({ "{") (labeled_statement "LAB_000876dc:\n      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" (statement_identifier "LAB_000876dc") (: ":") (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000ad2dc" (* "*") (cast_expression "(code *)PTR_dupstr_000ad2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000ad2dc"))) () ")")) (argument_list "(PTR_DAT_000ad2c8 + -0x81c)" (( "(") (binary_expression "PTR_DAT_000ad2c8 + -0x81c" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x81c")) () ")")))) (; ";"))) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}"))) (labeled_statement "LAB_000875cc:\n    puVar2 = PTR_safefree_000ad380;" (statement_identifier "LAB_000875cc") (: ":") (expression_statement "puVar2 = PTR_safefree_000ad380;" (assignment_expression "puVar2 = PTR_safefree_000ad380" (identifier "puVar2") (= "=") (identifier "PTR_safefree_000ad380")) (; ";"))) (expression_statement "puVar5[4] = 0;" (assignment_expression "puVar5[4] = 0" (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar2)(pcVar6);" (call_expression "(*(code *)puVar2)(pcVar6)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_name_lookup_000ad528;" (assignment_expression "puVar2 = PTR_name_lookup_000ad528" (identifier "puVar2") (= "=") (identifier "PTR_name_lookup_000ad528")) (; ";")) (if_statement "if (*puVar5 == 0) {\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }\n    else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" (if "if") (parenthesized_expression "(*puVar5 == 0)" (( "(") (binary_expression "*puVar5 == 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar5[6] = puVar5[2] + 6000;\n      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);\n      puVar5[5] = uVar7;\n      iVar8 = sk_addr_error(uVar7);\n      if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }\n      sk_addr_free(puVar5[5]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[1]);\n      (*(code *)PTR_safefree_000ad380)(puVar5[4]);\n      puVar12 = (uint *)0x0;\n      (*(code *)PTR_safefree_000ad380)(puVar5);\n    }" ({ "{") (expression_statement "puVar5[6] = puVar5[2] + 6000;" (assignment_expression "puVar5[6] = puVar5[2] + 6000" (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "puVar5[2] + 6000" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "6000"))) (; ";")) (expression_statement "uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);" (assignment_expression "uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" (identifier "uVar7") (= "=") (call_expression "(*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0)" (( "(") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "puVar5[2] + 6000" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "6000")) (, ",") (binary_expression "puVar5 + 7" (identifier "puVar5") (+ "+") (number_literal "7")) (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar8 = sk_addr_error(uVar7);" (assignment_expression "iVar8 = sk_addr_error(uVar7)" (identifier "iVar8") (= "=") (call_expression "sk_addr_error(uVar7)" (identifier "sk_addr_error") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) {\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar7 = puVar5[5];\n        if (*puVar5 != 0) goto LAB_00087660;\n        iVar8 = sk_address_is_local(uVar7);\n        if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }\nLAB_00087650:\n        puVar12 = puVar5;\n        if (*puVar5 != 0) goto LAB_0008765c;\n        goto LAB_00087454;\n      }" ({ "{") (expression_statement "uVar7 = puVar5[5];" (assignment_expression "uVar7 = puVar5[5]" (identifier "uVar7") (= "=") (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]"))) (; ";")) (if_statement "if (*puVar5 != 0) goto LAB_00087660;" (if "if") (parenthesized_expression "(*puVar5 != 0)" (( "(") (binary_expression "*puVar5 != 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00087660;" (goto "goto") (statement_identifier "LAB_00087660") (; ";"))) (expression_statement "iVar8 = sk_address_is_local(uVar7);" (assignment_expression "iVar8 = sk_address_is_local(uVar7)" (identifier "iVar8") (= "=") (call_expression "sk_address_is_local(uVar7)" (identifier "sk_address_is_local") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar8 != 0) {\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);\n          iVar8 = sk_addr_error(uVar7);\n          if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }\n          cmp = (cmp *)sk_addr_dup(uVar7);\n          p_Var10 = sk_new(cmp);\n          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);\n          (**(code **)(p_Var10->num + 4))(p_Var10);\n          if (pcVar6 != (char *)0x0) goto LAB_00087784;\n          sk_addr_free(puVar5[5]);\n          pcVar6 = (char *)puVar5[4];\n          *puVar5 = 1;\n          puVar5[5] = uVar7;\n          goto LAB_00087664;\n        }" ({ "{") (expression_statement "uVar7 = platform_get_x11_unix_address(0,puVar5[2]);" (assignment_expression "uVar7 = platform_get_x11_unix_address(0,puVar5[2])" (identifier "uVar7") (= "=") (call_expression "platform_get_x11_unix_address(0,puVar5[2])" (identifier "platform_get_x11_unix_address") (argument_list "(0,puVar5[2])" (( "(") (number_literal "0") (, ",") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "iVar8 = sk_addr_error(uVar7);" (assignment_expression "iVar8 = sk_addr_error(uVar7)" (identifier "iVar8") (= "=") (call_expression "sk_addr_error(uVar7)" (identifier "sk_addr_error") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar8 != 0) {\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00087784:\n            sk_addr_free(uVar7);\n            goto LAB_00087650;\n          }" ({ "{") (labeled_statement "LAB_00087784:\n            sk_addr_free(uVar7);" (statement_identifier "LAB_00087784") (: ":") (expression_statement "sk_addr_free(uVar7);" (call_expression "sk_addr_free(uVar7)" (identifier "sk_addr_free") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";"))) (goto_statement "goto LAB_00087650;" (goto "goto") (statement_identifier "LAB_00087650") (; ";")) (} "}"))) (expression_statement "cmp = (cmp *)sk_addr_dup(uVar7);" (assignment_expression "cmp = (cmp *)sk_addr_dup(uVar7)" (identifier "cmp") (= "=") (cast_expression "(cmp *)sk_addr_dup(uVar7)" (( "(") (type_descriptor "cmp *" (type_identifier "cmp") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sk_addr_dup(uVar7)" (identifier "sk_addr_dup") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))))) (; ";")) (expression_statement "p_Var10 = sk_new(cmp);" (assignment_expression "p_Var10 = sk_new(cmp)" (identifier "p_Var10") (= "=") (call_expression "sk_new(cmp)" (identifier "sk_new") (argument_list "(cmp)" (( "(") (identifier "cmp") () ")")))) (; ";")) (expression_statement "pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);" (assignment_expression "pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" (identifier "pcVar6") (= "=") (cast_expression "(char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(p_Var10->num + 0x1c))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 0x1c))" (( "(") (pointer_expression "**(code **)(p_Var10->num + 0x1c)" (* "*") (pointer_expression "*(code **)(p_Var10->num + 0x1c)" (* "*") (cast_expression "(code **)(p_Var10->num + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(p_Var10->num + 0x1c)" (( "(") (binary_expression "p_Var10->num + 0x1c" (field_expression "p_Var10->num" (identifier "p_Var10") (-> "->") (field_identifier "num")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(p_Var10)" (( "(") (identifier "p_Var10") () ")"))))) (; ";")) (expression_statement "(**(code **)(p_Var10->num + 4))(p_Var10);" (call_expression "(**(code **)(p_Var10->num + 4))(p_Var10)" (parenthesized_expression "(**(code **)(p_Var10->num + 4))" (( "(") (pointer_expression "**(code **)(p_Var10->num + 4)" (* "*") (pointer_expression "*(code **)(p_Var10->num + 4)" (* "*") (cast_expression "(code **)(p_Var10->num + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(p_Var10->num + 4)" (( "(") (binary_expression "p_Var10->num + 4" (field_expression "p_Var10->num" (identifier "p_Var10") (-> "->") (field_identifier "num")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(p_Var10)" (( "(") (identifier "p_Var10") () ")"))) (; ";")) (if_statement "if (pcVar6 != (char *)0x0) goto LAB_00087784;" (if "if") (parenthesized_expression "(pcVar6 != (char *)0x0)" (( "(") (binary_expression "pcVar6 != (char *)0x0" (identifier "pcVar6") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00087784;" (goto "goto") (statement_identifier "LAB_00087784") (; ";"))) (expression_statement "sk_addr_free(puVar5[5]);" (call_expression "sk_addr_free(puVar5[5])" (identifier "sk_addr_free") (argument_list "(puVar5[5])" (( "(") (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" (identifier "pcVar6") (= "=") (cast_expression "(char *)puVar5[4]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")))) (; ";")) (expression_statement "*puVar5 = 1;" (assignment_expression "*puVar5 = 1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (goto_statement "goto LAB_00087664;" (goto "goto") (statement_identifier "LAB_00087664") (; ";")) (} "}"))) (labeled_statement "LAB_00087650:\n        puVar12 = puVar5;" (statement_identifier "LAB_00087650") (: ":") (expression_statement "puVar12 = puVar5;" (assignment_expression "puVar12 = puVar5" (identifier "puVar12") (= "=") (identifier "puVar5")) (; ";"))) (if_statement "if (*puVar5 != 0) goto LAB_0008765c;" (if "if") (parenthesized_expression "(*puVar5 != 0)" (( "(") (binary_expression "*puVar5 != 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0008765c;" (goto "goto") (statement_identifier "LAB_0008765c") (; ";"))) (goto_statement "goto LAB_00087454;" (goto "goto") (statement_identifier "LAB_00087454") (; ";")) (} "}"))) (expression_statement "sk_addr_free(puVar5[5]);" (call_expression "sk_addr_free(puVar5[5])" (identifier "sk_addr_free") (argument_list "(puVar5[5])" (( "(") (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5[1]);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5[1])" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" (( "(") (pointer_expression "*(code *)PTR_safefree_000ad380" (* "*") (cast_expression "(code *)PTR_safefree_000ad380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000ad380"))) () ")")) (argument_list "(puVar5[1])" (( "(") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5[4]);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5[4])" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" (( "(") (pointer_expression "*(code *)PTR_safefree_000ad380" (* "*") (cast_expression "(code *)PTR_safefree_000ad380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000ad380"))) () ")")) (argument_list "(puVar5[4])" (( "(") (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "puVar12 = (uint *)0x0;" (assignment_expression "puVar12 = (uint *)0x0" (identifier "puVar12") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000ad380)(puVar5);" (call_expression "(*(code *)PTR_safefree_000ad380)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" (( "(") (pointer_expression "*(code *)PTR_safefree_000ad380" (* "*") (cast_expression "(code *)PTR_safefree_000ad380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000ad380"))) () ")")) (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (} "}")) (else_clause "else {\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" (else "else") (compound_statement "{\nLAB_0008765c:\n      uVar7 = puVar5[5];\nLAB_00087660:\n      pcVar6 = (char *)puVar5[4];\nLAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }\n      if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }\n      puVar5[6] = 0;\n      puVar12 = puVar5;\nLAB_00087454:\n      puVar12[8] = 0;\n      puVar12[9] = 0;\n      puVar12[10] = 0;\n      platform_get_x11_auth(puVar12,param_2);\n    }" ({ "{") (labeled_statement "LAB_0008765c:\n      uVar7 = puVar5[5];" (statement_identifier "LAB_0008765c") (: ":") (expression_statement "uVar7 = puVar5[5];" (assignment_expression "uVar7 = puVar5[5]" (identifier "uVar7") (= "=") (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]"))) (; ";"))) (labeled_statement "LAB_00087660:\n      pcVar6 = (char *)puVar5[4];" (statement_identifier "LAB_00087660") (: ":") (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" (identifier "pcVar6") (= "=") (cast_expression "(char *)puVar5[4]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")))) (; ";"))) (labeled_statement "LAB_00087664:\n      if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" (statement_identifier "LAB_00087664") (: ":") (if_statement "if (uVar7 == 0) {\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" (if "if") (parenthesized_expression "(uVar7 == 0)" (( "(") (binary_expression "uVar7 == 0" (identifier "uVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);\n        pcVar6 = (char *)puVar5[4];\n        puVar5[5] = uVar7;\n      }" ({ "{") (labeled_statement "LAB_00087420:\n        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);" (statement_identifier "LAB_00087420") (: ":") (expression_statement "uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);" (assignment_expression "uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2])" (identifier "uVar7") (= "=") (call_expression "platform_get_x11_unix_address(pcVar6,puVar5[2])" (identifier "platform_get_x11_unix_address") (argument_list "(pcVar6,puVar5[2])" (( "(") (identifier "pcVar6") (, ",") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";"))) (expression_statement "pcVar6 = (char *)puVar5[4];" (assignment_expression "pcVar6 = (char *)puVar5[4]" (identifier "pcVar6") (= "=") (cast_expression "(char *)puVar5[4]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")))) (; ";")) (expression_statement "puVar5[5] = uVar7;" (assignment_expression "puVar5[5] = uVar7" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}")))) (if_statement "if (pcVar6 == (char *)0x0) {\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }\n      else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" (if "if") (parenthesized_expression "(pcVar6 == (char *)0x0)" (( "(") (binary_expression "pcVar6 == (char *)0x0" (identifier "pcVar6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);\n        puVar5[7] = uVar7;\n      }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);" (assignment_expression "uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" (parenthesized_expression "(*(code *)PTR_dupprintf_000ad2d8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_000ad2d8" (* "*") (cast_expression "(code *)PTR_dupprintf_000ad2d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_000ad2d8"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2])" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x53d0" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x53d0")) (, ",") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" (identifier "puVar5") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}")) (else_clause "else {\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" (else "else") (compound_statement "{\n        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);\n        puVar5[7] = uVar7;\n      }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_dupstr_000ad2dc)(pcVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000ad2dc" (* "*") (cast_expression "(code *)PTR_dupstr_000ad2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000ad2dc"))) () ")")) (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")")))) (; ";")) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" (identifier "puVar5") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}")))) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar12 = puVar5;" (assignment_expression "puVar12 = puVar5" (identifier "puVar12") (= "=") (identifier "puVar5")) (; ";")) (labeled_statement "LAB_00087454:\n      puVar12[8] = 0;" (statement_identifier "LAB_00087454") (: ":") (expression_statement "puVar12[8] = 0;" (assignment_expression "puVar12[8] = 0" (subscript_expression "puVar12[8]" (identifier "puVar12") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "puVar12[9] = 0;" (assignment_expression "puVar12[9] = 0" (subscript_expression "puVar12[9]" (identifier "puVar12") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar12[10] = 0;" (assignment_expression "puVar12[10] = 0" (subscript_expression "puVar12[10]" (identifier "puVar12") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "platform_get_x11_auth(puVar12,param_2);" (call_expression "platform_get_x11_auth(puVar12,param_2)" (identifier "platform_get_x11_auth") (argument_list "(puVar12,param_2)" (( "(") (identifier "puVar12") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_00087470:\n    if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }" (statement_identifier "LAB_00087470") (: ":") (if_statement "if (iVar4 == *(int *)puVar3) {\n      return puVar12;\n    }" (if "if") (parenthesized_expression "(iVar4 == *(int *)puVar3)" (( "(") (binary_expression "iVar4 == *(int *)puVar3" (identifier "iVar4") (== "==") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n      return puVar12;\n    }" ({ "{") (return_statement "return puVar12;" (return "return") (identifier "puVar12") (; ";")) (} "}")))) (expression_statement "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();" (assignment_expression "puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" (identifier "puVar11") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)()" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (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 "()" (( "(") () ")"))))) (; ";")) (expression_statement "puVar5 = puVar12;" (assignment_expression "puVar5 = puVar12" (identifier "puVar5") (= "=") (identifier "puVar12")) (; ";")) (labeled_statement "LAB_000878c0:\n    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" (statement_identifier "LAB_000878c0") (: ":") (expression_statement "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1)" (parenthesized_expression "(*(code *)PTR_dupstr_000ad2dc)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000ad2dc" (* "*") (cast_expression "(code *)PTR_dupstr_000ad2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000ad2dc"))) () ")")) (argument_list "(puVar11 + 1)" (( "(") (binary_expression "puVar11 + 1" (identifier "puVar11") (+ "+") (number_literal "1")) () ")")))) (; ";"))) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (labeled_statement "LAB_00087588:\n    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);" (statement_identifier "LAB_00087588") (: ":") (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" (( "(") (pointer_expression "*(code *)PTR_strcmp_000add14" (* "*") (cast_expression "(code *)PTR_strcmp_000add14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_000add14"))) () ")")) (argument_list "(pcVar6,PTR_DAT_000ad2c8 + -0x8f8)" (( "(") (identifier "pcVar6") (, ",") (binary_expression "PTR_DAT_000ad2c8 + -0x8f8" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "-0x8f8")) () ")")))) (; ";"))) (if_statement "if (iVar8 == 0) {\n      uVar9 = 1;\n    }\n    else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar9 = 1;\n    }" ({ "{") (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" (identifier "uVar9") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" (else "else") (compound_statement "{\n      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);\n      uVar9 = (uint)(iVar8 == 0);\n    }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (parenthesized_expression "(*(code *)PTR_strcmp_000add14)" (( "(") (pointer_expression "*(code *)PTR_strcmp_000add14" (* "*") (cast_expression "(code *)PTR_strcmp_000add14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_000add14"))) () ")")) (argument_list "(pcVar6,PTR_DAT_000ad2d0 + -0x53d8)" (( "(") (identifier "pcVar6") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x53d8" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x53d8")) () ")")))) (; ";")) (expression_statement "uVar9 = (uint)(iVar8 == 0);" (assignment_expression "uVar9 = (uint)(iVar8 == 0)" (identifier "uVar9") (= "=") (call_expression "(uint)(iVar8 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")))) (; ";")) (} "}")))) (expression_statement "*puVar5 = uVar9;" (assignment_expression "*puVar5 = uVar9" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar9")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (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 (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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 (number_literal) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) 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: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) 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 (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 (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) alternative: (else_clause (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 (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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 (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (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)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (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))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (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))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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 (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (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) (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (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 (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (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 (subscript_expression argument: (identifier) index: (number_literal)) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))))) (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: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (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 (subscript_expression argument: (identifier) index: (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 (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (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))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (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: (subscript_expression argument: (identifier) index: (number_literal)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (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 (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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: (identifier))) (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))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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 (identifier) (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)))) alternative: (else_clause (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 (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) condition: (parenthesized_expression (true))))))

uint * MASKED(char *param_1,undefined4 param_2)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  uint *puVar5;
  char *pcVar6;
  uint uVar7;
  int iVar8;
  uint uVar9;
  cmp *cmp;
  _STACK *p_Var10;
  undefined1 *puVar11;
  uint *puVar12;
  char *pcVar13;
  
  puVar3 = PTR___stack_chk_guard_000adcd4;
  iVar4 = *(int *)PTR___stack_chk_guard_000adcd4;
  puVar5 = (uint *)(*(code *)PTR_safemalloc_000ad414)(1,0x2c);
  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {
    pcVar6 = (char *)platform_get_x_display();
    if ((pcVar6 == (char *)0x0) || (cVar1 = *pcVar6, cVar1 == '\0')) {
      (*(code *)PTR_safefree_000ad380)(pcVar6);
      pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2d0 + -0x53dc);
      cVar1 = *pcVar6;
    }
  }
  else {
    pcVar6 = (char *)(*(code *)PTR_dupstr_000ad2dc)(param_1);
    cVar1 = *pcVar6;
  }
  if (cVar1 == '/') {
    puVar5[4] = (uint)pcVar6;
    puVar5[1] = 0;
    *puVar5 = 1;
    puVar5[3] = 0;
    puVar5[2] = 0xffffffff;
    puVar5[5] = 0;
    goto LAB_00087420;
  }
  puVar11 = (undefined1 *)(*(code *)PTR_host_strrchr_000ad5a4)(pcVar6,0x3a);
  puVar2 = PTR_strchr_000adc2c;
  if (puVar11 == (undefined1 *)0x0) {
    puVar12 = (uint *)0x0;
    (*(code *)PTR_safefree_000ad380)(puVar5);
    (*(code *)PTR_safefree_000ad380)(pcVar6);
    goto LAB_00087470;
  }
  pcVar13 = puVar11 + 1;
  *puVar11 = 0;
  puVar11 = (undefined1 *)(*(code *)puVar2)(pcVar13,0x2e);
  puVar2 = PTR_strtol_000adb28;
  if (puVar11 == (undefined1 *)0x0) {
    uVar7 = (*(code *)PTR_strtol_000adb28)(pcVar13,0,10);
    puVar5[2] = uVar7;
  }
  else {
    *puVar11 = 0;
    uVar7 = (*(code *)puVar2)(pcVar13);
    puVar5[2] = uVar7;
    if (puVar11 + 1 != (undefined1 *)0x0) {
      uVar7 = (*(code *)PTR_strtol_000adb28)(puVar11 + 1,0,10);
      puVar5[3] = uVar7;
      goto LAB_00087554;
    }
  }
  puVar5[3] = 0;
LAB_00087554:
  if ((pcVar6 < pcVar13) &&
     (puVar11 = (undefined1 *)(*(code *)PTR_strchr_000adc2c)(pcVar6,0x2f),
     puVar11 != (undefined1 *)0x0)) {
    *puVar11 = 0;
    if (puVar11[1] != '\0') goto LAB_000878c0;
    uVar7 = 0;
    puVar5[1] = 0;
    goto LAB_00087588;
  }
  if (*pcVar6 == '\0') {
    puVar5[1] = 0;
    uVar7 = 0;
  }
  else {
    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);
    puVar5[1] = uVar7;
  }
  if ((*pcVar6 != '\0') &&
     (iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8), iVar8 != 0)) {
    *puVar5 = 0;
    if (uVar7 != 0) goto LAB_000875cc;
    goto LAB_000876dc;
  }
  *puVar5 = *(uint *)PTR_platform_uses_x11_unix_by_default_000adab4;
  do {
    if ((uVar7 == 0) && (*puVar5 == 0)) {
LAB_000876dc:
      uVar7 = (*(code *)PTR_dupstr_000ad2dc)(PTR_DAT_000ad2c8 + -0x81c);
      puVar5[1] = uVar7;
    }
LAB_000875cc:
    puVar2 = PTR_safefree_000ad380;
    puVar5[4] = 0;
    puVar5[5] = 0;
    (*(code *)puVar2)(pcVar6);
    puVar2 = PTR_name_lookup_000ad528;
    if (*puVar5 == 0) {
      puVar5[6] = puVar5[2] + 6000;
      uVar7 = (*(code *)puVar2)(puVar5[1],puVar5[2] + 6000,puVar5 + 7,param_2,0,0,0);
      puVar5[5] = uVar7;
      iVar8 = sk_addr_error(uVar7);
      if (iVar8 == 0) {
        uVar7 = puVar5[5];
        if (*puVar5 != 0) goto LAB_00087660;
        iVar8 = sk_address_is_local(uVar7);
        if (iVar8 != 0) {
          uVar7 = platform_get_x11_unix_address(0,puVar5[2]);
          iVar8 = sk_addr_error(uVar7);
          if (iVar8 != 0) {
LAB_00087784:
            sk_addr_free(uVar7);
            goto LAB_00087650;
          }
          cmp = (cmp *)sk_addr_dup(uVar7);
          p_Var10 = sk_new(cmp);
          pcVar6 = (char *)(**(code **)(p_Var10->num + 0x1c))(p_Var10);
          (**(code **)(p_Var10->num + 4))(p_Var10);
          if (pcVar6 != (char *)0x0) goto LAB_00087784;
          sk_addr_free(puVar5[5]);
          pcVar6 = (char *)puVar5[4];
          *puVar5 = 1;
          puVar5[5] = uVar7;
          goto LAB_00087664;
        }
LAB_00087650:
        puVar12 = puVar5;
        if (*puVar5 != 0) goto LAB_0008765c;
        goto LAB_00087454;
      }
      sk_addr_free(puVar5[5]);
      (*(code *)PTR_safefree_000ad380)(puVar5[1]);
      (*(code *)PTR_safefree_000ad380)(puVar5[4]);
      puVar12 = (uint *)0x0;
      (*(code *)PTR_safefree_000ad380)(puVar5);
    }
    else {
LAB_0008765c:
      uVar7 = puVar5[5];
LAB_00087660:
      pcVar6 = (char *)puVar5[4];
LAB_00087664:
      if (uVar7 == 0) {
LAB_00087420:
        uVar7 = platform_get_x11_unix_address(pcVar6,puVar5[2]);
        pcVar6 = (char *)puVar5[4];
        puVar5[5] = uVar7;
      }
      if (pcVar6 == (char *)0x0) {
        uVar7 = (*(code *)PTR_dupprintf_000ad2d8)(PTR_DAT_000ad2d0 + -0x53d0,puVar5[2]);
        puVar5[7] = uVar7;
      }
      else {
        uVar7 = (*(code *)PTR_dupstr_000ad2dc)(pcVar6);
        puVar5[7] = uVar7;
      }
      puVar5[6] = 0;
      puVar12 = puVar5;
LAB_00087454:
      puVar12[8] = 0;
      puVar12[9] = 0;
      puVar12[10] = 0;
      platform_get_x11_auth(puVar12,param_2);
    }
LAB_00087470:
    if (iVar4 == *(int *)puVar3) {
      return puVar12;
    }
    puVar11 = (undefined1 *)(*(code *)PTR___stack_chk_fail_000adca4)();
    puVar5 = puVar12;
LAB_000878c0:
    uVar7 = (*(code *)PTR_dupstr_000ad2dc)(puVar11 + 1);
    puVar5[1] = uVar7;
LAB_00087588:
    iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2c8 + -0x8f8);
    if (iVar8 == 0) {
      uVar9 = 1;
    }
    else {
      iVar8 = (*(code *)PTR_strcmp_000add14)(pcVar6,PTR_DAT_000ad2d0 + -0x53d8);
      uVar9 = (uint)(iVar8 == 0);
    }
    *puVar5 = uVar9;
  } while( true );
}

