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

int platform_ssh_share(char *pi_name,Conf *conf,Plug downplug,Plug upplug,Socket *sock,
                      char **logtext,char **ds_err,char **us_err,int can_upstream,int can_downstream
                      )

{
  undefined *puVar1;
  char *dirname;
  char *pcVar2;
  int iVar3;
  int iVar4;
  char *pcVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  SockAddr pSVar8;
  Socket ppsVar9;
  char *pcVar10;
  _func_void_Socket *p_Var11;
  
  dirname = make_dirname(pi_name,logtext);
  if (dirname == (char *)0x0) {
    return 0;
  }
  pcVar2 = make_dir_and_check_ours(dirname);
  puVar1 = PTR_safefree_001112f0;
  if (pcVar2 != (char *)0x0) {
    *logtext = pcVar2;
    (*(code *)puVar1)(dirname);
    return 0;
  }
  pcVar2 = (char *)(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0);
  iVar3 = (*(code *)PTR_open64_001126d0)(pcVar2,0x302,0x180);
  if (iVar3 < 0) {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);
    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7);
    puVar1 = PTR_safefree_001112f0;
    *logtext = pcVar5;
    (*(code *)puVar1)(dirname);
    (*(code *)PTR_safefree_001112f0)(pcVar2);
    return 0;
  }
  iVar4 = (*(code *)PTR_flock_0011210c)(iVar3,2);
  if (iVar4 < 0) {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);
    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7);
    puVar1 = PTR_safefree_001112f0;
    *logtext = pcVar5;
    (*(code *)puVar1)(dirname);
    goto LAB_000c79ac;
  }
  pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname);
  *logtext = (char *)0x0;
  if (can_downstream == 0) {
    if (can_upstream != 0) {
LAB_000c7b78:
      pSVar8 = unix_sock_addr(pcVar5);
      ppsVar9 = new_unix_listener(pSVar8,upplug);
      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);
      if (pcVar10 == (char *)0x0) {
        (*(code *)PTR_safefree_001112f0)(*logtext);
        *logtext = pcVar5;
        puVar1 = PTR_safefree_001112f0;
        *sock = ppsVar9;
        (*(code *)puVar1)(dirname);
        (*(code *)PTR_safefree_001112f0)(pcVar2);
        (*(code *)PTR_close_00112050)(iVar3);
        return 2;
      }
      (*(code *)PTR_safefree_001112f0)(*us_err);
      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);
      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)
      ;
      p_Var11 = (*ppsVar9)->close;
      *us_err = pcVar10;
      (*p_Var11)(ppsVar9);
      goto LAB_000c7c10;
    }
LAB_000c797c:
    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {
      iVar3 = (*(code *)PTR___assert_fail_00111f50)
                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,
                         PTR_DAT_001112f4 + -0x5a7c);
      return iVar3;
    }
  }
  else {
    pSVar8 = unix_sock_addr(pcVar5);
    ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)
                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);
    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);
    if (pcVar10 == (char *)0x0) {
      (*(code *)PTR_safefree_001112f0)(*logtext);
      *logtext = pcVar5;
      puVar1 = PTR_safefree_001112f0;
      *sock = ppsVar9;
      (*(code *)puVar1)(dirname);
      (*(code *)PTR_safefree_001112f0)(pcVar2);
      (*(code *)PTR_close_00112050)(iVar3);
      return 1;
    }
    (*(code *)PTR_safefree_001112f0)(*ds_err);
    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);
    pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);
    p_Var11 = (*ppsVar9)->close;
    *ds_err = pcVar10;
    (*p_Var11)(ppsVar9);
    if (can_upstream != 0) goto LAB_000c7b78;
LAB_000c7c10:
    if (*logtext == (char *)0x0) goto LAB_000c797c;
  }
  (*(code *)PTR_safefree_001112f0)(dirname);
  (*(code *)PTR_safefree_001112f0)(pcVar2);
  pcVar2 = pcVar5;
LAB_000c79ac:
  (*(code *)PTR_safefree_001112f0)(pcVar2);
  (*(code *)PTR_close_00112050)(iVar3);
  return 0;
}



undefined4
platform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,
                  int param_10)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  int *piVar7;
  int iVar8;
  undefined4 uVar9;
  code *pcVar10;
  
  iVar2 = FUN_000c7150(param_1,param_6);
  if (iVar2 == 0) {
    return 0;
  }
  iVar3 = make_dir_and_check_ours(iVar2);
  puVar1 = PTR_safefree_001112f0;
  if (iVar3 != 0) {
    *param_6 = iVar3;
    (*(code *)puVar1)(iVar2);
    return 0;
  }
  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);
  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);
  if (iVar4 < 0) {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);
    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);
    puVar1 = PTR_safefree_001112f0;
    *param_6 = iVar4;
    (*(code *)puVar1)(iVar2);
    (*(code *)PTR_safefree_001112f0)(iVar3);
    return 0;
  }
  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);
  if (iVar5 < 0) {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);
    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);
    puVar1 = PTR_safefree_001112f0;
    *param_6 = iVar5;
    (*(code *)puVar1)(iVar2);
    goto LAB_000c79ac;
  }
  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);
  *param_6 = 0;
  if (param_10 == 0) {
    if (param_9 != 0) {
LAB_000c7b78:
      uVar9 = unix_sock_addr(iVar5);
      piVar7 = (int *)new_unix_listener(uVar9,param_4);
      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);
      if (iVar8 == 0) {
        (*(code *)PTR_safefree_001112f0)(*param_6);
        *param_6 = iVar5;
        puVar1 = PTR_safefree_001112f0;
        *param_5 = piVar7;
        (*(code *)puVar1)(iVar2);
        (*(code *)PTR_safefree_001112f0)(iVar3);
        (*(code *)PTR_close_00112050)(iVar4);
        return 2;
      }
      (*(code *)PTR_safefree_001112f0)(*param_8);
      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);
      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);
      pcVar10 = *(code **)(*piVar7 + 4);
      *param_8 = iVar8;
      (*pcVar10)(piVar7);
      goto LAB_000c7c10;
    }
LAB_000c797c:
    if ((*param_7 == 0) && (*param_8 == 0)) {
      uVar9 = (*(code *)PTR___assert_fail_00111f50)
                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,
                         PTR_DAT_001112f4 + -0x5a7c);
      return uVar9;
    }
  }
  else {
    uVar9 = unix_sock_addr(iVar5);
    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)
                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);
    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);
    if (iVar8 == 0) {
      (*(code *)PTR_safefree_001112f0)(*param_6);
      *param_6 = iVar5;
      puVar1 = PTR_safefree_001112f0;
      *param_5 = piVar7;
      (*(code *)puVar1)(iVar2);
      (*(code *)PTR_safefree_001112f0)(iVar3);
      (*(code *)PTR_close_00112050)(iVar4);
      return 1;
    }
    (*(code *)PTR_safefree_001112f0)(*param_7);
    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);
    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);
    pcVar10 = *(code **)(*piVar7 + 4);
    *param_7 = iVar8;
    (*pcVar10)(piVar7);
    if (param_9 != 0) goto LAB_000c7b78;
LAB_000c7c10:
    if (*param_6 == 0) goto LAB_000c797c;
  }
  (*(code *)PTR_safefree_001112f0)(iVar2);
  (*(code *)PTR_safefree_001112f0)(iVar3);
  iVar3 = iVar5;
LAB_000c79ac:
  (*(code *)PTR_safefree_001112f0)(iVar3);
  (*(code *)PTR_close_00112050)(iVar4);
  return 0;
}


lui gp,0x5
addiu gp,gp,0x1a78
addu gp,gp,t9
addiu sp,sp,-0x58
lw t9,-0x7598(gp)
sw s1,0x38(sp)
addiu t9,t9,0x7150
sw gp,0x28(sp)
sw s4,0x44(sp)
or s4,a3,zero
sw s3,0x40(sp)
or s3,a1,zero
sw s2,0x3c(sp)
or s2,a2,zero
sw ra,0x54(sp)
sw s7,0x50(sp)
sw s6,0x4c(sp)
sw s5,0x48(sp)
sw s0,0x34(sp)
lw s1,0x6c(sp)
bal 0x000c7150
_or a1,s1,zero
beq v0,zero,0x000c79c8
_lw gp,0x28(sp)
lw t9,-0x7434(gp)
or a0,v0,zero
bal 0x000c0ecc
_or s0,v0,zero
beq v0,zero,0x000c78f0
_lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
or a0,s0,zero
jalr t9
_sw v0,0x0(s1)
or v0,zero,zero
lw ra,0x54(sp)
lw s7,0x50(sp)
lw s6,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,0x58
lw a1,-0x7fbc(gp)
or a2,zero,zero
lw t9,-0x7de8(gp)
or a0,s0,zero
jalr t9
_addiu a1,a1,-0x5afc
li a2,0x180
lw gp,0x28(sp)
li a1,0x302
or a0,v0,zero
lw t9,-0x6be0(gp)
jalr t9
_or s6,v0,zero
lw gp,0x28(sp)
bltz v0,0x000c7a50
_or s5,v0,zero
lw t9,-0x71a4(gp)
li a1,0x2
jalr t9
_or a0,v0,zero
bltz v0,0x000c79f8
_lw gp,0x28(sp)
lw a0,-0x7fbc(gp)
or a1,s0,zero
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x5adc
or s7,v0,zero
lw v0,0x7c(sp)
lw gp,0x28(sp)
bne v0,zero,0x000c7ab4
_sw zero,0x0(s1)
lw v0,0x78(sp)
bne v0,zero,0x000c7b78
_lw v0,0x70(sp)
lw v0,0x0(v0)
beq v0,zero,0x000c7cc4
_lw v0,0x74(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s0,zero
lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s6,zero
or a0,s7,zero
lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
jalr t9
_nop
lw gp,0x28(sp)
lw t9,-0x7260(gp)
jalr t9
_or a0,s5,zero
or v0,zero,zero
lw ra,0x54(sp)
lw s7,0x50(sp)
lw s6,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,0x58
lw t9,-0x6e50(gp)
jalr t9
_nop
lw gp,0x28(sp)
lw t9,-0x712c(gp)
jalr t9
_lw a0,0x0(v0)
or a1,s6,zero
lw gp,0x28(sp)
or a2,v0,zero
lw a0,-0x7fbc(gp)
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x5af4
or a0,s0,zero
lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
jalr t9
_sw v0,0x0(s1)
or a0,s6,zero
b 0x000c79ac
_lw gp,0x28(sp)
lw t9,-0x6e50(gp)
jalr t9
_nop
lw gp,0x28(sp)
lw t9,-0x712c(gp)
jalr t9
_lw a0,0x0(v0)
or a1,s6,zero
lw gp,0x28(sp)
or a2,v0,zero
lw a0,-0x7fbc(gp)
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x5ba8
or a0,s0,zero
lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
jalr t9
_sw v0,0x0(s1)
lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s6,zero
b 0x000c79cc
_or v0,zero,zero
lw t9,-0x742c(gp)
bal 0x000c3bb8
_or a0,s7,zero
or a3,zero,zero
lw gp,0x28(sp)
or a0,v0,zero
li v0,0x1
sw s2,0x1c(sp)
or a2,zero,zero
sw s3,0x20(sp)
sw v0,0x10(sp)
sw zero,0x18(sp)
sw zero,0x14(sp)
lw a1,-0x7fb8(gp)
lw t9,-0x7c54(gp)
jalr t9
_addiu a1,a1,-0x4be4
or a0,v0,zero
or s2,v0,zero
lw v0,0x0(v0)
lw t9,0x1c(v0)
jalr t9
_nop
beq v0,zero,0x000c7c24
_lw gp,0x28(sp)
lw v0,0x70(sp)
lw t9,-0x7fc0(gp)
jalr t9
_lw a0,0x0(v0)
lw v0,0x0(s2)
lw t9,0x1c(v0)
jalr t9
_or a0,s2,zero
or a1,s7,zero
lw gp,0x28(sp)
or a2,v0,zero
lw a0,-0x7fbc(gp)
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x5f08
or a0,s2,zero
lw v1,0x0(s2)
lw a1,0x70(sp)
lw t9,0x4(v1)
jalr t9
_sw v0,0x0(a1)
lw v0,0x78(sp)
beq v0,zero,0x000c7c10
_lw gp,0x28(sp)
lw t9,-0x742c(gp)
bal 0x000c3bb8
_or a0,s7,zero
or a1,s4,zero
lw gp,0x28(sp)
lw t9,-0x7428(gp)
bal 0x000c3ca4
_or a0,v0,zero
or a0,v0,zero
or s2,v0,zero
lw v0,0x0(v0)
lw t9,0x1c(v0)
jalr t9
_nop
beq v0,zero,0x000c7c74
_lw gp,0x28(sp)
lw v0,0x74(sp)
lw t9,-0x7fc0(gp)
jalr t9
_lw a0,0x0(v0)
lw v0,0x0(s2)
lw t9,0x1c(v0)
jalr t9
_or a0,s2,zero
or a1,s7,zero
lw gp,0x28(sp)
or a2,v0,zero
lw a0,-0x7fbc(gp)
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x5f08
or a0,s2,zero
lw v1,0x0(s2)
lw a1,0x74(sp)
lw t9,0x4(v1)
jalr t9
_sw v0,0x0(a1)
lw gp,0x28(sp)
lw v0,0x0(s1)
bne v0,zero,0x000c798c
_lw t9,-0x7fc0(gp)
b 0x000c797c
_lw v0,0x70(sp)
lw t9,-0x7fc0(gp)
jalr t9
_lw a0,0x0(s1)
or a0,s0,zero
lw gp,0x28(sp)
lw v0,0x68(sp)
sw s7,0x0(s1)
lw t9,-0x7fc0(gp)
jalr t9
_sw s2,0x0(v0)
lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s6,zero
lw gp,0x28(sp)
lw t9,-0x7260(gp)
jalr t9
_or a0,s5,zero
b 0x000c79cc
_li v0,0x1
lw t9,-0x7fc0(gp)
jalr t9
_lw a0,0x0(s1)
or a0,s0,zero
lw gp,0x28(sp)
lw v0,0x68(sp)
sw s7,0x0(s1)
lw t9,-0x7fc0(gp)
jalr t9
_sw s2,0x0(v0)
lw gp,0x28(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s6,zero
lw gp,0x28(sp)
lw t9,-0x7260(gp)
jalr t9
_or a0,s5,zero
b 0x000c79cc
_li v0,0x2
lw v0,0x0(v0)
bne v0,zero,0x000c798c
_lw t9,-0x7fc0(gp)
lw a3,-0x7fbc(gp)
li a2,0x15c
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7360(gp)
addiu a3,a3,-0x5a7c
addiu a1,a1,-0x5bd0
jalr t9
_addiu a0,a0,-0x5ad0
(translation_unit "undefined4\nplatform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}\n\n" (function_definition "undefined4\nplatform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}" type_identifier (function_declarator "platform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "int *param_7" primitive_type (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "int param_9" primitive_type identifier) , (parameter_declaration "int param_10" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "iVar2 = FUN_000c7150(param_1,param_6);" (assignment_expression "iVar2 = FUN_000c7150(param_1,param_6)" identifier = (call_expression "FUN_000c7150(param_1,param_6)" identifier (argument_list "(param_1,param_6)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = make_dir_and_check_ours(iVar2);" (assignment_expression "iVar3 = make_dir_and_check_ours(iVar2)" identifier = (call_expression "make_dir_and_check_ours(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }" { (expression_statement "*param_6 = iVar3;" (assignment_expression "*param_6 = iVar3" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);" (assignment_expression "iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" identifier = (call_expression "(*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_001114c8)" ( (pointer_expression "*(code *)PTR_dupcat_001114c8" * (cast_expression "(code *)PTR_dupcat_001114c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" ( identifier , (binary_expression "PTR_DAT_001112f4 + -0x5afc" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);" (assignment_expression "iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180)" identifier = (call_expression "(*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180)" (parenthesized_expression "(*(code *)PTR_open64_001126d0)" ( (pointer_expression "*(code *)PTR_open64_001126d0" * (cast_expression "(code *)PTR_open64_001126d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0x302,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);" (assignment_expression "iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5ba8" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_6 = iVar4;" (assignment_expression "*param_6 = iVar4" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);" (assignment_expression "iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2)" identifier = (call_expression "(*(code *)PTR_flock_0011210c)(iVar4,2)" (parenthesized_expression "(*(code *)PTR_flock_0011210c)" ( (pointer_expression "*(code *)PTR_flock_0011210c" * (cast_expression "(code *)PTR_flock_0011210c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);" (assignment_expression "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5af4" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (goto_statement "goto LAB_000c79ac;" goto statement_identifier ;) })) (expression_statement "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);" (assignment_expression "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5adc,iVar2)" ( (binary_expression "PTR_DAT_001112f4 + -0x5adc" identifier + number_literal) , identifier )))) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * identifier) = number_literal) ;) (if_statement "if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" if (parenthesized_expression "(param_10 == 0)" ( (binary_expression "param_10 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }" { (if_statement "if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }" { (labeled_statement "LAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);" statement_identifier : (expression_statement "uVar9 = unix_sock_addr(iVar5);" (assignment_expression "uVar9 = unix_sock_addr(iVar5)" identifier = (call_expression "unix_sock_addr(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;)) (expression_statement "piVar7 = (int *)new_unix_listener(uVar9,param_4);" (assignment_expression "piVar7 = (int *)new_unix_listener(uVar9,param_4)" identifier = (cast_expression "(int *)new_unix_listener(uVar9,param_4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "new_unix_listener(uVar9,param_4)" identifier (argument_list "(uVar9,param_4)" ( identifier , identifier ))))) ;) (expression_statement "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_6);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_5 = piVar7;" (assignment_expression "*param_5 = piVar7" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_8);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_8)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_8)" ( (pointer_expression "*param_8" * identifier) ))) ;) (expression_statement "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (expression_statement "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);" (assignment_expression "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5f08" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "pcVar10 = *(code **)(*piVar7 + 4);" (assignment_expression "pcVar10 = *(code **)(*piVar7 + 4)" identifier = (pointer_expression "*(code **)(*piVar7 + 4)" * (cast_expression "(code **)(*piVar7 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 4)" ( (binary_expression "*piVar7 + 4" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) ;) (expression_statement "*param_8 = iVar8;" (assignment_expression "*param_8 = iVar8" (pointer_expression "*param_8" * identifier) = identifier) ;) (expression_statement "(*pcVar10)(piVar7);" (call_expression "(*pcVar10)(piVar7)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(piVar7)" ( identifier ))) ;) (goto_statement "goto LAB_000c7c10;" goto statement_identifier ;) })) (labeled_statement "LAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" statement_identifier : (if_statement "if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" if (parenthesized_expression "((*param_7 == 0) && (*param_8 == 0))" ( (binary_expression "(*param_7 == 0) && (*param_8 == 0)" (parenthesized_expression "(*param_7 == 0)" ( (binary_expression "*param_7 == 0" (pointer_expression "*param_7" * identifier) == number_literal) )) && (parenthesized_expression "(*param_8 == 0)" ( (binary_expression "*param_8 == 0" (pointer_expression "*param_8" * identifier) == number_literal) ))) )) (compound_statement "{\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" { (expression_statement "uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);" (assignment_expression "uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" identifier = (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" ( (binary_expression "PTR_DAT_001112f4 + -0x5ad0" identifier + number_literal) , (binary_expression "PTR_DAT_001112f4 + -0x5bd0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f4 + -0x5a7c" identifier + number_literal) )))) ;) (return_statement "return uVar9;" return identifier ;) }))) }) (else_clause "else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" else (compound_statement "{\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" { (expression_statement "uVar9 = unix_sock_addr(iVar5);" (assignment_expression "uVar9 = unix_sock_addr(iVar5)" identifier = (call_expression "unix_sock_addr(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);" (assignment_expression "piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" identifier = (cast_expression "(int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" (parenthesized_expression "(*(code *)PTR_new_connection_0011165c)" ( (pointer_expression "*(code *)PTR_new_connection_0011165c" * (cast_expression "(code *)PTR_new_connection_0011165c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" ( identifier , (binary_expression "PTR_DAT_001112f8 + -0x4be4" identifier + number_literal) , number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier ))))) ;) (expression_statement "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_6);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_5 = piVar7;" (assignment_expression "*param_5 = piVar7" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_7);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_7)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_7)" ( (pointer_expression "*param_7" * identifier) ))) ;) (expression_statement "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (expression_statement "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);" (assignment_expression "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5f08" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "pcVar10 = *(code **)(*piVar7 + 4);" (assignment_expression "pcVar10 = *(code **)(*piVar7 + 4)" identifier = (pointer_expression "*(code **)(*piVar7 + 4)" * (cast_expression "(code **)(*piVar7 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 4)" ( (binary_expression "*piVar7 + 4" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) ;) (expression_statement "*param_7 = iVar8;" (assignment_expression "*param_7 = iVar8" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "(*pcVar10)(piVar7);" (call_expression "(*pcVar10)(piVar7)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(piVar7)" ( identifier ))) ;) (if_statement "if (param_9 != 0) goto LAB_000c7b78;" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000c7b78;" goto statement_identifier ;)) (labeled_statement "LAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;" statement_identifier : (if_statement "if (*param_6 == 0) goto LAB_000c797c;" if (parenthesized_expression "(*param_6 == 0)" ( (binary_expression "*param_6 == 0" (pointer_expression "*param_6" * identifier) == number_literal) )) (goto_statement "goto LAB_000c797c;" goto statement_identifier ;))) }))) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (labeled_statement "LAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);" statement_identifier : (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint platform_ssh_share(char *pi_name,Conf *conf,Plug downplug,Plug upplug,Socket *sock,\n                      char **logtext,char **ds_err,char **us_err,int can_upstream,int can_downstream\n                      )\n\n{\n  undefined *puVar1;\n  char *dirname;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  SockAddr pSVar8;\n  Socket ppsVar9;\n  char *pcVar10;\n  _func_void_Socket *p_Var11;\n  \n  dirname = make_dirname(pi_name,logtext);\n  if (dirname == (char *)0x0) {\n    return 0;\n  }\n  pcVar2 = make_dir_and_check_ours(dirname);\n  puVar1 = PTR_safefree_001112f0;\n  if (pcVar2 != (char *)0x0) {\n    *logtext = pcVar2;\n    (*(code *)puVar1)(dirname);\n    return 0;\n  }\n  pcVar2 = (char *)(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar3 = (*(code *)PTR_open64_001126d0)(pcVar2,0x302,0x180);\n  if (iVar3 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    (*(code *)PTR_safefree_001112f0)(pcVar2);\n    return 0;\n  }\n  iVar4 = (*(code *)PTR_flock_0011210c)(iVar3,2);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    goto LAB_000c79ac;\n  }\n  pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname);\n  *logtext = (char *)0x0;\n  if (can_downstream == 0) {\n    if (can_upstream != 0) {\nLAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);\n      ppsVar9 = new_unix_listener(pSVar8,upplug);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*us_err);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;\n      p_Var11 = (*ppsVar9)->close;\n      *us_err = pcVar10;\n      (*p_Var11)(ppsVar9);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }\n  }\n  else {\n    pSVar8 = unix_sock_addr(pcVar5);\n    ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    if (pcVar10 == (char *)0x0) {\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*ds_err);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);\n    p_Var11 = (*ppsVar9)->close;\n    *ds_err = pcVar10;\n    (*p_Var11)(ppsVar9);\n    if (can_upstream != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*logtext == (char *)0x0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(dirname);\n  (*(code *)PTR_safefree_001112f0)(pcVar2);\n  pcVar2 = pcVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(pcVar2);\n  (*(code *)PTR_close_00112050)(iVar3);\n  return 0;\n}\n\n" comment (function_definition "int platform_ssh_share(char *pi_name,Conf *conf,Plug downplug,Plug upplug,Socket *sock,\n                      char **logtext,char **ds_err,char **us_err,int can_upstream,int can_downstream\n                      )\n\n{\n  undefined *puVar1;\n  char *dirname;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  SockAddr pSVar8;\n  Socket ppsVar9;\n  char *pcVar10;\n  _func_void_Socket *p_Var11;\n  \n  dirname = make_dirname(pi_name,logtext);\n  if (dirname == (char *)0x0) {\n    return 0;\n  }\n  pcVar2 = make_dir_and_check_ours(dirname);\n  puVar1 = PTR_safefree_001112f0;\n  if (pcVar2 != (char *)0x0) {\n    *logtext = pcVar2;\n    (*(code *)puVar1)(dirname);\n    return 0;\n  }\n  pcVar2 = (char *)(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar3 = (*(code *)PTR_open64_001126d0)(pcVar2,0x302,0x180);\n  if (iVar3 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    (*(code *)PTR_safefree_001112f0)(pcVar2);\n    return 0;\n  }\n  iVar4 = (*(code *)PTR_flock_0011210c)(iVar3,2);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    goto LAB_000c79ac;\n  }\n  pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname);\n  *logtext = (char *)0x0;\n  if (can_downstream == 0) {\n    if (can_upstream != 0) {\nLAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);\n      ppsVar9 = new_unix_listener(pSVar8,upplug);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*us_err);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;\n      p_Var11 = (*ppsVar9)->close;\n      *us_err = pcVar10;\n      (*p_Var11)(ppsVar9);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }\n  }\n  else {\n    pSVar8 = unix_sock_addr(pcVar5);\n    ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    if (pcVar10 == (char *)0x0) {\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*ds_err);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);\n    p_Var11 = (*ppsVar9)->close;\n    *ds_err = pcVar10;\n    (*p_Var11)(ppsVar9);\n    if (can_upstream != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*logtext == (char *)0x0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(dirname);\n  (*(code *)PTR_safefree_001112f0)(pcVar2);\n  pcVar2 = pcVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(pcVar2);\n  (*(code *)PTR_close_00112050)(iVar3);\n  return 0;\n}" primitive_type (function_declarator "platform_ssh_share(char *pi_name,Conf *conf,Plug downplug,Plug upplug,Socket *sock,\n                      char **logtext,char **ds_err,char **us_err,int can_upstream,int can_downstream\n                      )" identifier (parameter_list "(char *pi_name,Conf *conf,Plug downplug,Plug upplug,Socket *sock,\n                      char **logtext,char **ds_err,char **us_err,int can_upstream,int can_downstream\n                      )" ( (parameter_declaration "char *pi_name" primitive_type (pointer_declarator "*pi_name" * identifier)) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "Plug downplug" type_identifier identifier) , (parameter_declaration "Plug upplug" type_identifier identifier) , (parameter_declaration "Socket *sock" type_identifier (pointer_declarator "*sock" * identifier)) , (parameter_declaration "char **logtext" primitive_type (pointer_declarator "**logtext" * (pointer_declarator "*logtext" * identifier))) , (parameter_declaration "char **ds_err" primitive_type (pointer_declarator "**ds_err" * (pointer_declarator "*ds_err" * identifier))) , (parameter_declaration "char **us_err" primitive_type (pointer_declarator "**us_err" * (pointer_declarator "*us_err" * identifier))) , (parameter_declaration "int can_upstream" primitive_type identifier) , (parameter_declaration "int can_downstream" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *dirname;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  SockAddr pSVar8;\n  Socket ppsVar9;\n  char *pcVar10;\n  _func_void_Socket *p_Var11;\n  \n  dirname = make_dirname(pi_name,logtext);\n  if (dirname == (char *)0x0) {\n    return 0;\n  }\n  pcVar2 = make_dir_and_check_ours(dirname);\n  puVar1 = PTR_safefree_001112f0;\n  if (pcVar2 != (char *)0x0) {\n    *logtext = pcVar2;\n    (*(code *)puVar1)(dirname);\n    return 0;\n  }\n  pcVar2 = (char *)(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar3 = (*(code *)PTR_open64_001126d0)(pcVar2,0x302,0x180);\n  if (iVar3 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    (*(code *)PTR_safefree_001112f0)(pcVar2);\n    return 0;\n  }\n  iVar4 = (*(code *)PTR_flock_0011210c)(iVar3,2);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    goto LAB_000c79ac;\n  }\n  pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname);\n  *logtext = (char *)0x0;\n  if (can_downstream == 0) {\n    if (can_upstream != 0) {\nLAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);\n      ppsVar9 = new_unix_listener(pSVar8,upplug);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*us_err);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;\n      p_Var11 = (*ppsVar9)->close;\n      *us_err = pcVar10;\n      (*p_Var11)(ppsVar9);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }\n  }\n  else {\n    pSVar8 = unix_sock_addr(pcVar5);\n    ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    if (pcVar10 == (char *)0x0) {\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*ds_err);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);\n    p_Var11 = (*ppsVar9)->close;\n    *ds_err = pcVar10;\n    (*p_Var11)(ppsVar9);\n    if (can_upstream != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*logtext == (char *)0x0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(dirname);\n  (*(code *)PTR_safefree_001112f0)(pcVar2);\n  pcVar2 = pcVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(pcVar2);\n  (*(code *)PTR_close_00112050)(iVar3);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *dirname;" primitive_type (pointer_declarator "*dirname" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "SockAddr pSVar8;" type_identifier identifier ;) (declaration "Socket ppsVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "_func_void_Socket *p_Var11;" type_identifier (pointer_declarator "*p_Var11" * identifier) ;) (expression_statement "dirname = make_dirname(pi_name,logtext);" (assignment_expression "dirname = make_dirname(pi_name,logtext)" identifier = (call_expression "make_dirname(pi_name,logtext)" identifier (argument_list "(pi_name,logtext)" ( identifier , identifier )))) ;) (if_statement "if (dirname == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(dirname == (char *)0x0)" ( (binary_expression "dirname == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar2 = make_dir_and_check_ours(dirname);" (assignment_expression "pcVar2 = make_dir_and_check_ours(dirname)" identifier = (call_expression "make_dir_and_check_ours(dirname)" identifier (argument_list "(dirname)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    *logtext = pcVar2;\n    (*(code *)puVar1)(dirname);\n    return 0;\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *logtext = pcVar2;\n    (*(code *)puVar1)(dirname);\n    return 0;\n  }" { (expression_statement "*logtext = pcVar2;" (assignment_expression "*logtext = pcVar2" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(dirname);" (call_expression "(*(code *)puVar1)(dirname)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar2 = (char *)(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0)" identifier = (cast_expression "(char *)(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupcat_001114c8)(dirname,PTR_DAT_001112f4 + -0x5afc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_001114c8)" ( (pointer_expression "*(code *)PTR_dupcat_001114c8" * (cast_expression "(code *)PTR_dupcat_001114c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname,PTR_DAT_001112f4 + -0x5afc,0)" ( identifier , (binary_expression "PTR_DAT_001112f4 + -0x5afc" identifier + number_literal) , number_literal ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_open64_001126d0)(pcVar2,0x302,0x180);" (assignment_expression "iVar3 = (*(code *)PTR_open64_001126d0)(pcVar2,0x302,0x180)" identifier = (call_expression "(*(code *)PTR_open64_001126d0)(pcVar2,0x302,0x180)" (parenthesized_expression "(*(code *)PTR_open64_001126d0)" ( (pointer_expression "*(code *)PTR_open64_001126d0" * (cast_expression "(code *)PTR_open64_001126d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,0x302,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar3 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    (*(code *)PTR_safefree_001112f0)(pcVar2);\n    return 0;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    (*(code *)PTR_safefree_001112f0)(pcVar2);\n    return 0;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5ba8,pcVar2,uVar7)" ( (binary_expression "PTR_DAT_001112f4 + -0x5ba8" identifier + number_literal) , identifier , identifier ))))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*logtext = pcVar5;" (assignment_expression "*logtext = pcVar5" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(dirname);" (call_expression "(*(code *)puVar1)(dirname)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(pcVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = (*(code *)PTR_flock_0011210c)(iVar3,2);" (assignment_expression "iVar4 = (*(code *)PTR_flock_0011210c)(iVar3,2)" identifier = (call_expression "(*(code *)PTR_flock_0011210c)(iVar3,2)" (parenthesized_expression "(*(code *)PTR_flock_0011210c)" ( (pointer_expression "*(code *)PTR_flock_0011210c" * (cast_expression "(code *)PTR_flock_0011210c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    goto LAB_000c79ac;\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7);\n    puVar1 = PTR_safefree_001112f0;\n    *logtext = pcVar5;\n    (*(code *)puVar1)(dirname);\n    goto LAB_000c79ac;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar7 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5af4,pcVar2,uVar7)" ( (binary_expression "PTR_DAT_001112f4 + -0x5af4" identifier + number_literal) , identifier , identifier ))))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*logtext = pcVar5;" (assignment_expression "*logtext = pcVar5" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(dirname);" (call_expression "(*(code *)puVar1)(dirname)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname)" ( identifier ))) ;) (goto_statement "goto LAB_000c79ac;" goto statement_identifier ;) })) (expression_statement "pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,dirname)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5adc,dirname)" ( (binary_expression "PTR_DAT_001112f4 + -0x5adc" identifier + number_literal) , identifier ))))) ;) (expression_statement "*logtext = (char *)0x0;" (assignment_expression "*logtext = (char *)0x0" (pointer_expression "*logtext" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (can_downstream == 0) {\n    if (can_upstream != 0) {\nLAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);\n      ppsVar9 = new_unix_listener(pSVar8,upplug);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*us_err);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;\n      p_Var11 = (*ppsVar9)->close;\n      *us_err = pcVar10;\n      (*p_Var11)(ppsVar9);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }\n  }\n  else {\n    pSVar8 = unix_sock_addr(pcVar5);\n    ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    if (pcVar10 == (char *)0x0) {\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*ds_err);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);\n    p_Var11 = (*ppsVar9)->close;\n    *ds_err = pcVar10;\n    (*p_Var11)(ppsVar9);\n    if (can_upstream != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*logtext == (char *)0x0) goto LAB_000c797c;\n  }" if (parenthesized_expression "(can_downstream == 0)" ( (binary_expression "can_downstream == 0" identifier == number_literal) )) (compound_statement "{\n    if (can_upstream != 0) {\nLAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);\n      ppsVar9 = new_unix_listener(pSVar8,upplug);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*us_err);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;\n      p_Var11 = (*ppsVar9)->close;\n      *us_err = pcVar10;\n      (*p_Var11)(ppsVar9);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }\n  }" { (if_statement "if (can_upstream != 0) {\nLAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);\n      ppsVar9 = new_unix_listener(pSVar8,upplug);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*us_err);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;\n      p_Var11 = (*ppsVar9)->close;\n      *us_err = pcVar10;\n      (*p_Var11)(ppsVar9);\n      goto LAB_000c7c10;\n    }" if (parenthesized_expression "(can_upstream != 0)" ( (binary_expression "can_upstream != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);\n      ppsVar9 = new_unix_listener(pSVar8,upplug);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*us_err);\n      pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n      pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;\n      p_Var11 = (*ppsVar9)->close;\n      *us_err = pcVar10;\n      (*p_Var11)(ppsVar9);\n      goto LAB_000c7c10;\n    }" { (labeled_statement "LAB_000c7b78:\n      pSVar8 = unix_sock_addr(pcVar5);" statement_identifier : (expression_statement "pSVar8 = unix_sock_addr(pcVar5);" (assignment_expression "pSVar8 = unix_sock_addr(pcVar5)" identifier = (call_expression "unix_sock_addr(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;)) (expression_statement "ppsVar9 = new_unix_listener(pSVar8,upplug);" (assignment_expression "ppsVar9 = new_unix_listener(pSVar8,upplug)" identifier = (call_expression "new_unix_listener(pSVar8,upplug)" identifier (argument_list "(pSVar8,upplug)" ( identifier , identifier )))) ;) (expression_statement "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);" (assignment_expression "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9)" identifier = (call_expression "(*(*ppsVar9)->socket_error)(ppsVar9)" (parenthesized_expression "(*(*ppsVar9)->socket_error)" ( (pointer_expression "*(*ppsVar9)->socket_error" * (field_expression "(*ppsVar9)->socket_error" (parenthesized_expression "(*ppsVar9)" ( (pointer_expression "*ppsVar9" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar9)" ( identifier )))) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR_safefree_001112f0)(*logtext);\n        *logtext = pcVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *sock = ppsVar9;\n        (*(code *)puVar1)(dirname);\n        (*(code *)PTR_safefree_001112f0)(pcVar2);\n        (*(code *)PTR_close_00112050)(iVar3);\n        return 2;\n      }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(*logtext);" (call_expression "(*(code *)PTR_safefree_001112f0)(*logtext)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*logtext)" ( (pointer_expression "*logtext" * identifier) ))) ;) (expression_statement "*logtext = pcVar5;" (assignment_expression "*logtext = pcVar5" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*sock = ppsVar9;" (assignment_expression "*sock = ppsVar9" (pointer_expression "*sock" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(dirname);" (call_expression "(*(code *)puVar1)(dirname)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(pcVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_close_00112050)(iVar3);" (call_expression "(*(code *)PTR_close_00112050)(iVar3)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(*us_err);" (call_expression "(*(code *)PTR_safefree_001112f0)(*us_err)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*us_err)" ( (pointer_expression "*us_err" * identifier) ))) ;) (expression_statement "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);" (assignment_expression "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9)" identifier = (call_expression "(*(*ppsVar9)->socket_error)(ppsVar9)" (parenthesized_expression "(*(*ppsVar9)->socket_error)" ( (pointer_expression "*(*ppsVar9)->socket_error" * (field_expression "(*ppsVar9)->socket_error" (parenthesized_expression "(*ppsVar9)" ( (pointer_expression "*ppsVar9" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar9)" ( identifier )))) ;) (expression_statement "pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)\n      ;" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" ( (binary_expression "PTR_DAT_001112f4 + -0x5f08" identifier + number_literal) , identifier , identifier ))))) ;) (expression_statement "p_Var11 = (*ppsVar9)->close;" (assignment_expression "p_Var11 = (*ppsVar9)->close" identifier = (field_expression "(*ppsVar9)->close" (parenthesized_expression "(*ppsVar9)" ( (pointer_expression "*ppsVar9" * identifier) )) -> field_identifier)) ;) (expression_statement "*us_err = pcVar10;" (assignment_expression "*us_err = pcVar10" (pointer_expression "*us_err" * identifier) = identifier) ;) (expression_statement "(*p_Var11)(ppsVar9);" (call_expression "(*p_Var11)(ppsVar9)" (parenthesized_expression "(*p_Var11)" ( (pointer_expression "*p_Var11" * identifier) )) (argument_list "(ppsVar9)" ( identifier ))) ;) (goto_statement "goto LAB_000c7c10;" goto statement_identifier ;) })) (labeled_statement "LAB_000c797c:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }" statement_identifier : (if_statement "if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }" if (parenthesized_expression "((*ds_err == (char *)0x0) && (*us_err == (char *)0x0))" ( (binary_expression "(*ds_err == (char *)0x0) && (*us_err == (char *)0x0)" (parenthesized_expression "(*ds_err == (char *)0x0)" ( (binary_expression "*ds_err == (char *)0x0" (pointer_expression "*ds_err" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*us_err == (char *)0x0)" ( (binary_expression "*us_err == (char *)0x0" (pointer_expression "*us_err" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return iVar3;\n    }" { (expression_statement "iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);" (assignment_expression "iVar3 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" identifier = (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" ( (binary_expression "PTR_DAT_001112f4 + -0x5ad0" identifier + number_literal) , (binary_expression "PTR_DAT_001112f4 + -0x5bd0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f4 + -0x5a7c" identifier + number_literal) )))) ;) (return_statement "return iVar3;" return identifier ;) }))) }) (else_clause "else {\n    pSVar8 = unix_sock_addr(pcVar5);\n    ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    if (pcVar10 == (char *)0x0) {\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*ds_err);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);\n    p_Var11 = (*ppsVar9)->close;\n    *ds_err = pcVar10;\n    (*p_Var11)(ppsVar9);\n    if (can_upstream != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*logtext == (char *)0x0) goto LAB_000c797c;\n  }" else (compound_statement "{\n    pSVar8 = unix_sock_addr(pcVar5);\n    ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    if (pcVar10 == (char *)0x0) {\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*ds_err);\n    pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);\n    pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);\n    p_Var11 = (*ppsVar9)->close;\n    *ds_err = pcVar10;\n    (*p_Var11)(ppsVar9);\n    if (can_upstream != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*logtext == (char *)0x0) goto LAB_000c797c;\n  }" { (expression_statement "pSVar8 = unix_sock_addr(pcVar5);" (assignment_expression "pSVar8 = unix_sock_addr(pcVar5)" identifier = (call_expression "unix_sock_addr(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf);" (assignment_expression "ppsVar9 = (Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf)" identifier = (call_expression "(Socket)(*(code *)PTR_new_connection_0011165c)\n                                (pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf)" (call_expression "(Socket)(*(code *)PTR_new_connection_0011165c)" (parenthesized_expression "(Socket)" ( identifier )) (argument_list "(*(code *)PTR_new_connection_0011165c)" ( (pointer_expression "*(code *)PTR_new_connection_0011165c" * (cast_expression "(code *)PTR_new_connection_0011165c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(pSVar8,PTR_E1_202__001112f8 + -0x4be4,0,0,1,0,0,downplug,conf)" ( identifier , (binary_expression "PTR_E1_202__001112f8 + -0x4be4" identifier + number_literal) , number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);" (assignment_expression "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9)" identifier = (call_expression "(*(*ppsVar9)->socket_error)(ppsVar9)" (parenthesized_expression "(*(*ppsVar9)->socket_error)" ( (pointer_expression "*(*ppsVar9)->socket_error" * (field_expression "(*ppsVar9)->socket_error" (parenthesized_expression "(*ppsVar9)" ( (pointer_expression "*ppsVar9" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar9)" ( identifier )))) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_safefree_001112f0)(*logtext);\n      *logtext = pcVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *sock = ppsVar9;\n      (*(code *)puVar1)(dirname);\n      (*(code *)PTR_safefree_001112f0)(pcVar2);\n      (*(code *)PTR_close_00112050)(iVar3);\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(*logtext);" (call_expression "(*(code *)PTR_safefree_001112f0)(*logtext)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*logtext)" ( (pointer_expression "*logtext" * identifier) ))) ;) (expression_statement "*logtext = pcVar5;" (assignment_expression "*logtext = pcVar5" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*sock = ppsVar9;" (assignment_expression "*sock = ppsVar9" (pointer_expression "*sock" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(dirname);" (call_expression "(*(code *)puVar1)(dirname)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(pcVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_close_00112050)(iVar3);" (call_expression "(*(code *)PTR_close_00112050)(iVar3)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(*ds_err);" (call_expression "(*(code *)PTR_safefree_001112f0)(*ds_err)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*ds_err)" ( (pointer_expression "*ds_err" * identifier) ))) ;) (expression_statement "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9);" (assignment_expression "pcVar10 = (*(*ppsVar9)->socket_error)(ppsVar9)" identifier = (call_expression "(*(*ppsVar9)->socket_error)(ppsVar9)" (parenthesized_expression "(*(*ppsVar9)->socket_error)" ( (pointer_expression "*(*ppsVar9)->socket_error" * (field_expression "(*ppsVar9)->socket_error" (parenthesized_expression "(*ppsVar9)" ( (pointer_expression "*ppsVar9" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar9)" ( identifier )))) ;) (expression_statement "pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10);" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5f08,pcVar5,pcVar10)" ( (binary_expression "PTR_DAT_001112f4 + -0x5f08" identifier + number_literal) , identifier , identifier ))))) ;) (expression_statement "p_Var11 = (*ppsVar9)->close;" (assignment_expression "p_Var11 = (*ppsVar9)->close" identifier = (field_expression "(*ppsVar9)->close" (parenthesized_expression "(*ppsVar9)" ( (pointer_expression "*ppsVar9" * identifier) )) -> field_identifier)) ;) (expression_statement "*ds_err = pcVar10;" (assignment_expression "*ds_err = pcVar10" (pointer_expression "*ds_err" * identifier) = identifier) ;) (expression_statement "(*p_Var11)(ppsVar9);" (call_expression "(*p_Var11)(ppsVar9)" (parenthesized_expression "(*p_Var11)" ( (pointer_expression "*p_Var11" * identifier) )) (argument_list "(ppsVar9)" ( identifier ))) ;) (if_statement "if (can_upstream != 0) goto LAB_000c7b78;" if (parenthesized_expression "(can_upstream != 0)" ( (binary_expression "can_upstream != 0" identifier != number_literal) )) (goto_statement "goto LAB_000c7b78;" goto statement_identifier ;)) (labeled_statement "LAB_000c7c10:\n    if (*logtext == (char *)0x0) goto LAB_000c797c;" statement_identifier : (if_statement "if (*logtext == (char *)0x0) goto LAB_000c797c;" if (parenthesized_expression "(*logtext == (char *)0x0)" ( (binary_expression "*logtext == (char *)0x0" (pointer_expression "*logtext" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000c797c;" goto statement_identifier ;))) }))) (expression_statement "(*(code *)PTR_safefree_001112f0)(dirname);" (call_expression "(*(code *)PTR_safefree_001112f0)(dirname)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(pcVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" identifier = identifier) ;) (labeled_statement "LAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(pcVar2);" statement_identifier : (expression_statement "(*(code *)PTR_safefree_001112f0)(pcVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_close_00112050)(iVar3);" (call_expression "(*(code *)PTR_close_00112050)(iVar3)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4\nplatform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}\n\n" (function_definition "undefined4\nplatform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}" type_identifier (function_declarator "platform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "int *param_7" primitive_type (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "int param_9" primitive_type identifier) , (parameter_declaration "int param_10" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "iVar2 = FUN_000c7150(param_1,param_6);" (assignment_expression "iVar2 = FUN_000c7150(param_1,param_6)" identifier = (call_expression "FUN_000c7150(param_1,param_6)" identifier (argument_list "(param_1,param_6)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = make_dir_and_check_ours(iVar2);" (assignment_expression "iVar3 = make_dir_and_check_ours(iVar2)" identifier = (call_expression "make_dir_and_check_ours(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }" { (expression_statement "*param_6 = iVar3;" (assignment_expression "*param_6 = iVar3" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);" (assignment_expression "iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" identifier = (call_expression "(*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_001114c8)" ( (pointer_expression "*(code *)PTR_dupcat_001114c8" * (cast_expression "(code *)PTR_dupcat_001114c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" ( identifier , (binary_expression "PTR_DAT_001112f4 + -0x5afc" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);" (assignment_expression "iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180)" identifier = (call_expression "(*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180)" (parenthesized_expression "(*(code *)PTR_open64_001126d0)" ( (pointer_expression "*(code *)PTR_open64_001126d0" * (cast_expression "(code *)PTR_open64_001126d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0x302,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);" (assignment_expression "iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5ba8" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_6 = iVar4;" (assignment_expression "*param_6 = iVar4" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);" (assignment_expression "iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2)" identifier = (call_expression "(*(code *)PTR_flock_0011210c)(iVar4,2)" (parenthesized_expression "(*(code *)PTR_flock_0011210c)" ( (pointer_expression "*(code *)PTR_flock_0011210c" * (cast_expression "(code *)PTR_flock_0011210c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);" (assignment_expression "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5af4" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (goto_statement "goto LAB_000c79ac;" goto statement_identifier ;) })) (expression_statement "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);" (assignment_expression "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5adc,iVar2)" ( (binary_expression "PTR_DAT_001112f4 + -0x5adc" identifier + number_literal) , identifier )))) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * identifier) = number_literal) ;) (if_statement "if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" if (parenthesized_expression "(param_10 == 0)" ( (binary_expression "param_10 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }" { (if_statement "if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }" { (labeled_statement "LAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);" statement_identifier : (expression_statement "uVar9 = unix_sock_addr(iVar5);" (assignment_expression "uVar9 = unix_sock_addr(iVar5)" identifier = (call_expression "unix_sock_addr(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;)) (expression_statement "piVar7 = (int *)new_unix_listener(uVar9,param_4);" (assignment_expression "piVar7 = (int *)new_unix_listener(uVar9,param_4)" identifier = (cast_expression "(int *)new_unix_listener(uVar9,param_4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "new_unix_listener(uVar9,param_4)" identifier (argument_list "(uVar9,param_4)" ( identifier , identifier ))))) ;) (expression_statement "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_6);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_5 = piVar7;" (assignment_expression "*param_5 = piVar7" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_8);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_8)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_8)" ( (pointer_expression "*param_8" * identifier) ))) ;) (expression_statement "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (expression_statement "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);" (assignment_expression "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5f08" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "pcVar10 = *(code **)(*piVar7 + 4);" (assignment_expression "pcVar10 = *(code **)(*piVar7 + 4)" identifier = (pointer_expression "*(code **)(*piVar7 + 4)" * (cast_expression "(code **)(*piVar7 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 4)" ( (binary_expression "*piVar7 + 4" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) ;) (expression_statement "*param_8 = iVar8;" (assignment_expression "*param_8 = iVar8" (pointer_expression "*param_8" * identifier) = identifier) ;) (expression_statement "(*pcVar10)(piVar7);" (call_expression "(*pcVar10)(piVar7)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(piVar7)" ( identifier ))) ;) (goto_statement "goto LAB_000c7c10;" goto statement_identifier ;) })) (labeled_statement "LAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" statement_identifier : (if_statement "if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" if (parenthesized_expression "((*param_7 == 0) && (*param_8 == 0))" ( (binary_expression "(*param_7 == 0) && (*param_8 == 0)" (parenthesized_expression "(*param_7 == 0)" ( (binary_expression "*param_7 == 0" (pointer_expression "*param_7" * identifier) == number_literal) )) && (parenthesized_expression "(*param_8 == 0)" ( (binary_expression "*param_8 == 0" (pointer_expression "*param_8" * identifier) == number_literal) ))) )) (compound_statement "{\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" { (expression_statement "uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);" (assignment_expression "uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" identifier = (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" ( (binary_expression "PTR_DAT_001112f4 + -0x5ad0" identifier + number_literal) , (binary_expression "PTR_DAT_001112f4 + -0x5bd0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f4 + -0x5a7c" identifier + number_literal) )))) ;) (return_statement "return uVar9;" return identifier ;) }))) }) (else_clause "else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" else (compound_statement "{\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" { (expression_statement "uVar9 = unix_sock_addr(iVar5);" (assignment_expression "uVar9 = unix_sock_addr(iVar5)" identifier = (call_expression "unix_sock_addr(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);" (assignment_expression "piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" identifier = (cast_expression "(int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" (parenthesized_expression "(*(code *)PTR_new_connection_0011165c)" ( (pointer_expression "*(code *)PTR_new_connection_0011165c" * (cast_expression "(code *)PTR_new_connection_0011165c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" ( identifier , (binary_expression "PTR_DAT_001112f8 + -0x4be4" identifier + number_literal) , number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier ))))) ;) (expression_statement "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_6);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*param_5 = piVar7;" (assignment_expression "*param_5 = piVar7" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_7);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_7)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_7)" ( (pointer_expression "*param_7" * identifier) ))) ;) (expression_statement "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" ( (pointer_expression "**(code **)(*piVar7 + 0x1c)" * (pointer_expression "*(code **)(*piVar7 + 0x1c)" * (cast_expression "(code **)(*piVar7 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x1c)" ( (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (expression_statement "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);" (assignment_expression "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" ( (binary_expression "PTR_DAT_001112f4 + -0x5f08" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "pcVar10 = *(code **)(*piVar7 + 4);" (assignment_expression "pcVar10 = *(code **)(*piVar7 + 4)" identifier = (pointer_expression "*(code **)(*piVar7 + 4)" * (cast_expression "(code **)(*piVar7 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 4)" ( (binary_expression "*piVar7 + 4" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) ;) (expression_statement "*param_7 = iVar8;" (assignment_expression "*param_7 = iVar8" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "(*pcVar10)(piVar7);" (call_expression "(*pcVar10)(piVar7)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(piVar7)" ( identifier ))) ;) (if_statement "if (param_9 != 0) goto LAB_000c7b78;" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000c7b78;" goto statement_identifier ;)) (labeled_statement "LAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;" statement_identifier : (if_statement "if (*param_6 == 0) goto LAB_000c797c;" if (parenthesized_expression "(*param_6 == 0)" ( (binary_expression "*param_6 == 0" (pointer_expression "*param_6" * identifier) == number_literal) )) (goto_statement "goto LAB_000c797c;" goto statement_identifier ;))) }))) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (labeled_statement "LAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);" statement_identifier : (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (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) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 )))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) }))) }) (else_clause else (compound_statement { (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , LIT , LIT , LIT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (goto_statement goto statement_identifier ;))) }))) (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 ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (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 ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nplatform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "platform_ssh_share(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)" (identifier "platform_ssh_share") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,\n                  int param_10)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "int *param_6" (primitive_type "int") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) (, ",") (parameter_declaration "int *param_7" (primitive_type "int") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) (, ",") (parameter_declaration "int *param_8" (primitive_type "int") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) (, ",") (parameter_declaration "int param_9" (primitive_type "int") (identifier "param_9")) (, ",") (parameter_declaration "int param_10" (primitive_type "int") (identifier "param_10")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  \n  iVar2 = FUN_000c7150(param_1,param_6);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar3 = make_dir_and_check_ours(iVar2);\n  puVar1 = PTR_safefree_001112f0;\n  if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }\n  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);\n  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);\n  if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }\n  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);\n  if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }\n  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar2);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  iVar3 = iVar5;\nLAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_close_00112050)(iVar4);\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (expression_statement "iVar2 = FUN_000c7150(param_1,param_6);" (assignment_expression "iVar2 = FUN_000c7150(param_1,param_6)" (identifier "iVar2") (= "=") (call_expression "FUN_000c7150(param_1,param_6)" (identifier "FUN_000c7150") (argument_list "(param_1,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = make_dir_and_check_ours(iVar2);" (assignment_expression "iVar3 = make_dir_and_check_ours(iVar2)" (identifier "iVar3") (= "=") (call_expression "make_dir_and_check_ours(iVar2)" (identifier "make_dir_and_check_ours") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" (identifier "puVar1") (= "=") (identifier "PTR_safefree_001112f0")) (; ";")) (if_statement "if (iVar3 != 0) {\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *param_6 = iVar3;\n    (*(code *)puVar1)(iVar2);\n    return 0;\n  }" ({ "{") (expression_statement "*param_6 = iVar3;" (assignment_expression "*param_6 = iVar3" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);" (assignment_expression "iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_001114c8)" (( "(") (pointer_expression "*(code *)PTR_dupcat_001114c8" (* "*") (cast_expression "(code *)PTR_dupcat_001114c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupcat_001114c8"))) () ")")) (argument_list "(iVar2,PTR_DAT_001112f4 + -0x5afc,0)" (( "(") (identifier "iVar2") (, ",") (binary_expression "PTR_DAT_001112f4 + -0x5afc" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5afc")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);" (assignment_expression "iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180)" (parenthesized_expression "(*(code *)PTR_open64_001126d0)" (( "(") (pointer_expression "*(code *)PTR_open64_001126d0" (* "*") (cast_expression "(code *)PTR_open64_001126d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open64_001126d0"))) () ")")) (argument_list "(iVar3,0x302,0x180)" (( "(") (identifier "iVar3") (, ",") (number_literal "0x302") (, ",") (number_literal "0x180") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar4;\n    (*(code *)puVar1)(iVar2);\n    (*(code *)PTR_safefree_001112f0)(iVar3);\n    return 0;\n  }" ({ "{") (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00112460" (* "*") (cast_expression "(code *)PTR___errno_location_00112460" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00112460"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6)" (identifier "uVar9") (= "=") (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" (( "(") (pointer_expression "*(code *)PTR_strerror_00112184" (* "*") (cast_expression "(code *)PTR_strerror_00112184" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_00112184"))) () ")")) (argument_list "(*puVar6)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);" (assignment_expression "iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x5ba8" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5ba8")) (, ",") (identifier "iVar3") (, ",") (identifier "uVar9") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" (identifier "puVar1") (= "=") (identifier "PTR_safefree_001112f0")) (; ";")) (expression_statement "*param_6 = iVar4;" (assignment_expression "*param_6 = iVar4" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);" (assignment_expression "iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_flock_0011210c)(iVar4,2)" (parenthesized_expression "(*(code *)PTR_flock_0011210c)" (( "(") (pointer_expression "*(code *)PTR_flock_0011210c" (* "*") (cast_expression "(code *)PTR_flock_0011210c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_flock_0011210c"))) () ")")) (argument_list "(iVar4,2)" (( "(") (identifier "iVar4") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar5 < 0) {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);\n    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);\n    puVar1 = PTR_safefree_001112f0;\n    *param_6 = iVar5;\n    (*(code *)puVar1)(iVar2);\n    goto LAB_000c79ac;\n  }" ({ "{") (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00112460" (* "*") (cast_expression "(code *)PTR___errno_location_00112460" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00112460"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6)" (identifier "uVar9") (= "=") (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" (( "(") (pointer_expression "*(code *)PTR_strerror_00112184" (* "*") (cast_expression "(code *)PTR_strerror_00112184" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_00112184"))) () ")")) (argument_list "(*puVar6)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) () ")")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);" (assignment_expression "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x5af4" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5af4")) (, ",") (identifier "iVar3") (, ",") (identifier "uVar9") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" (identifier "puVar1") (= "=") (identifier "PTR_safefree_001112f0")) (; ";")) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (goto_statement "goto LAB_000c79ac;" (goto "goto") (statement_identifier "LAB_000c79ac") (; ";")) (} "}"))) (expression_statement "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);" (assignment_expression "iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x5adc,iVar2)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x5adc" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5adc")) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }\n  else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" (if "if") (parenthesized_expression "(param_10 == 0)" (( "(") (binary_expression "param_10 == 0" (identifier "param_10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }\nLAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }\n  }" ({ "{") (if_statement "if (param_9 != 0) {\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }" (if "if") (parenthesized_expression "(param_9 != 0)" (( "(") (binary_expression "param_9 != 0" (identifier "param_9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);\n      piVar7 = (int *)new_unix_listener(uVar9,param_4);\n      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }\n      (*(code *)PTR_safefree_001112f0)(*param_8);\n      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n      pcVar10 = *(code **)(*piVar7 + 4);\n      *param_8 = iVar8;\n      (*pcVar10)(piVar7);\n      goto LAB_000c7c10;\n    }" ({ "{") (labeled_statement "LAB_000c7b78:\n      uVar9 = unix_sock_addr(iVar5);" (statement_identifier "LAB_000c7b78") (: ":") (expression_statement "uVar9 = unix_sock_addr(iVar5);" (assignment_expression "uVar9 = unix_sock_addr(iVar5)" (identifier "uVar9") (= "=") (call_expression "unix_sock_addr(iVar5)" (identifier "unix_sock_addr") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";"))) (expression_statement "piVar7 = (int *)new_unix_listener(uVar9,param_4);" (assignment_expression "piVar7 = (int *)new_unix_listener(uVar9,param_4)" (identifier "piVar7") (= "=") (cast_expression "(int *)new_unix_listener(uVar9,param_4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "new_unix_listener(uVar9,param_4)" (identifier "new_unix_listener") (argument_list "(uVar9,param_4)" (( "(") (identifier "uVar9") (, ",") (identifier "param_4") () ")"))))) (; ";")) (expression_statement "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7)" (identifier "iVar8") (= "=") (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar7 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar7 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar7 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar7 + 0x1c)" (( "(") (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar7)" (( "(") (identifier "piVar7") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) {\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_safefree_001112f0)(*param_6);\n        *param_6 = iVar5;\n        puVar1 = PTR_safefree_001112f0;\n        *param_5 = piVar7;\n        (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_safefree_001112f0)(iVar3);\n        (*(code *)PTR_close_00112050)(iVar4);\n        return 2;\n      }" ({ "{") (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_6);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")"))) (; ";")) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" (identifier "puVar1") (= "=") (identifier "PTR_safefree_001112f0")) (; ";")) (expression_statement "*param_5 = piVar7;" (assignment_expression "*param_5 = piVar7" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "piVar7")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" (( "(") (pointer_expression "*(code *)PTR_close_00112050" (* "*") (cast_expression "(code *)PTR_close_00112050" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00112050"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_8);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_8)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(*param_8)" (( "(") (pointer_expression "*param_8" (* "*") (identifier "param_8")) () ")"))) (; ";")) (expression_statement "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7)" (identifier "uVar9") (= "=") (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar7 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar7 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar7 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar7 + 0x1c)" (( "(") (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar7)" (( "(") (identifier "piVar7") () ")")))) (; ";")) (expression_statement "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);" (assignment_expression "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x5f08" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5f08")) (, ",") (identifier "iVar5") (, ",") (identifier "uVar9") () ")")))) (; ";")) (expression_statement "pcVar10 = *(code **)(*piVar7 + 4);" (assignment_expression "pcVar10 = *(code **)(*piVar7 + 4)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(*piVar7 + 4)" (* "*") (cast_expression "(code **)(*piVar7 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar7 + 4)" (( "(") (binary_expression "*piVar7 + 4" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_8 = iVar8;" (assignment_expression "*param_8 = iVar8" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "(*pcVar10)(piVar7);" (call_expression "(*pcVar10)(piVar7)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(piVar7)" (( "(") (identifier "piVar7") () ")"))) (; ";")) (goto_statement "goto LAB_000c7c10;" (goto "goto") (statement_identifier "LAB_000c7c10") (; ";")) (} "}"))) (labeled_statement "LAB_000c797c:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" (statement_identifier "LAB_000c797c") (: ":") (if_statement "if ((*param_7 == 0) && (*param_8 == 0)) {\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" (if "if") (parenthesized_expression "((*param_7 == 0) && (*param_8 == 0))" (( "(") (binary_expression "(*param_7 == 0) && (*param_8 == 0)" (parenthesized_expression "(*param_7 == 0)" (( "(") (binary_expression "*param_7 == 0" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*param_8 == 0)" (( "(") (binary_expression "*param_8 == 0" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);\n      return uVar9;\n    }" ({ "{") (expression_statement "uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c);" (assignment_expression "uVar9 = (*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" (identifier "uVar9") (= "=") (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00111f50" (* "*") (cast_expression "(code *)PTR___assert_fail_00111f50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00111f50"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,\n                         PTR_DAT_001112f4 + -0x5a7c)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x5ad0" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5ad0")) (, ",") (binary_expression "PTR_DAT_001112f4 + -0x5bd0" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5bd0")) (, ",") (number_literal "0x15c") (, ",") (binary_expression "PTR_DAT_001112f4 + -0x5a7c" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5a7c")) () ")")))) (; ";")) (return_statement "return uVar9;" (return "return") (identifier "uVar9") (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" (else "else") (compound_statement "{\n    uVar9 = unix_sock_addr(iVar5);\n    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);\n    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }\n    (*(code *)PTR_safefree_001112f0)(*param_7);\n    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);\n    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);\n    pcVar10 = *(code **)(*piVar7 + 4);\n    *param_7 = iVar8;\n    (*pcVar10)(piVar7);\n    if (param_9 != 0) goto LAB_000c7b78;\nLAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;\n  }" ({ "{") (expression_statement "uVar9 = unix_sock_addr(iVar5);" (assignment_expression "uVar9 = unix_sock_addr(iVar5)" (identifier "uVar9") (= "=") (call_expression "unix_sock_addr(iVar5)" (identifier "unix_sock_addr") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);" (assignment_expression "piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" (identifier "piVar7") (= "=") (cast_expression "(int *)(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_new_connection_0011165c)\n                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" (parenthesized_expression "(*(code *)PTR_new_connection_0011165c)" (( "(") (pointer_expression "*(code *)PTR_new_connection_0011165c" (* "*") (cast_expression "(code *)PTR_new_connection_0011165c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_new_connection_0011165c"))) () ")")) (argument_list "(uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2)" (( "(") (identifier "uVar9") (, ",") (binary_expression "PTR_DAT_001112f8 + -0x4be4" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x4be4")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7)" (identifier "iVar8") (= "=") (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar7 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar7 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar7 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar7 + 0x1c)" (( "(") (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar7)" (( "(") (identifier "piVar7") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) {\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_safefree_001112f0)(*param_6);\n      *param_6 = iVar5;\n      puVar1 = PTR_safefree_001112f0;\n      *param_5 = piVar7;\n      (*(code *)puVar1)(iVar2);\n      (*(code *)PTR_safefree_001112f0)(iVar3);\n      (*(code *)PTR_close_00112050)(iVar4);\n      return 1;\n    }" ({ "{") (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_6);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")"))) (; ";")) (expression_statement "*param_6 = iVar5;" (assignment_expression "*param_6 = iVar5" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "puVar1 = PTR_safefree_001112f0;" (assignment_expression "puVar1 = PTR_safefree_001112f0" (identifier "puVar1") (= "=") (identifier "PTR_safefree_001112f0")) (; ";")) (expression_statement "*param_5 = piVar7;" (assignment_expression "*param_5 = piVar7" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "piVar7")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar2);" (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" (( "(") (pointer_expression "*(code *)PTR_close_00112050" (* "*") (cast_expression "(code *)PTR_close_00112050" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00112050"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_safefree_001112f0)(*param_7);" (call_expression "(*(code *)PTR_safefree_001112f0)(*param_7)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(*param_7)" (( "(") (pointer_expression "*param_7" (* "*") (identifier "param_7")) () ")"))) (; ";")) (expression_statement "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);" (assignment_expression "uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7)" (identifier "uVar9") (= "=") (call_expression "(**(code **)(*piVar7 + 0x1c))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar7 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar7 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar7 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar7 + 0x1c)" (( "(") (binary_expression "*piVar7 + 0x1c" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar7)" (( "(") (identifier "piVar7") () ")")))) (; ";")) (expression_statement "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);" (assignment_expression "iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x5f08" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x5f08")) (, ",") (identifier "iVar5") (, ",") (identifier "uVar9") () ")")))) (; ";")) (expression_statement "pcVar10 = *(code **)(*piVar7 + 4);" (assignment_expression "pcVar10 = *(code **)(*piVar7 + 4)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(*piVar7 + 4)" (* "*") (cast_expression "(code **)(*piVar7 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar7 + 4)" (( "(") (binary_expression "*piVar7 + 4" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_7 = iVar8;" (assignment_expression "*param_7 = iVar8" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "(*pcVar10)(piVar7);" (call_expression "(*pcVar10)(piVar7)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(piVar7)" (( "(") (identifier "piVar7") () ")"))) (; ";")) (if_statement "if (param_9 != 0) goto LAB_000c7b78;" (if "if") (parenthesized_expression "(param_9 != 0)" (( "(") (binary_expression "param_9 != 0" (identifier "param_9") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000c7b78;" (goto "goto") (statement_identifier "LAB_000c7b78") (; ";"))) (labeled_statement "LAB_000c7c10:\n    if (*param_6 == 0) goto LAB_000c797c;" (statement_identifier "LAB_000c7c10") (: ":") (if_statement "if (*param_6 == 0) goto LAB_000c797c;" (if "if") (parenthesized_expression "(*param_6 == 0)" (( "(") (binary_expression "*param_6 == 0" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000c797c;" (goto "goto") (statement_identifier "LAB_000c797c") (; ";")))) (} "}")))) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" (identifier "iVar3") (= "=") (identifier "iVar5")) (; ";")) (labeled_statement "LAB_000c79ac:\n  (*(code *)PTR_safefree_001112f0)(iVar3);" (statement_identifier "LAB_000c79ac") (: ":") (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";"))) (expression_statement "(*(code *)PTR_close_00112050)(iVar4);" (call_expression "(*(code *)PTR_close_00112050)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_00112050)" (( "(") (pointer_expression "*(code *)PTR_close_00112050" (* "*") (cast_expression "(code *)PTR_close_00112050" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00112050"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(char *pi_name,type_1 *conf,type_2 downplug,type_2 upplug,type_3 *sock,
                      char **logtext,char **ds_err,char **us_err,int var_9,int var_8
                      )

{
  type_4 *puVar1;
  char *var_2;
  char *var_4;
  int var_6;
  int var_7;
  char *pcVar5;
  type_5 *puVar6;
  type_5 uVar7;
  type_6 pSVar8;
  type_3 ppsVar9;
  char *var_12;
  type_7 *p_Var11;
  
  var_2 = var_1(pi_name,logtext);
  if (var_2 == (char *)0x0) {
    return 0;
  }
  var_4 = var_3(var_2);
  puVar1 = PTR_safefree_001112f0;
  if (var_4 != (char *)0x0) {
    *logtext = var_4;
    (*(type_8 *)puVar1)(var_2);
    return 0;
  }
  var_4 = (char *)(*(type_8 *)PTR_dupcat_001114c8)(var_2,var_5 + -0x5afc,0);
  var_6 = (*(type_8 *)PTR_open64_001126d0)(var_4,0x302,0x180);
  if (var_6 < 0) {
    puVar6 = (type_5 *)(*(type_8 *)PTR___errno_location_00112460)();
    uVar7 = (*(type_8 *)PTR_strerror_00112184)(*puVar6);
    pcVar5 = (char *)(*(type_8 *)PTR_dupprintf_001113a8)(var_5 + -0x5ba8,var_4,uVar7);
    puVar1 = PTR_safefree_001112f0;
    *logtext = pcVar5;
    (*(type_8 *)puVar1)(var_2);
    (*(type_8 *)PTR_safefree_001112f0)(var_4);
    return 0;
  }
  var_7 = (*(type_8 *)PTR_flock_0011210c)(var_6,2);
  if (var_7 < 0) {
    puVar6 = (type_5 *)(*(type_8 *)PTR___errno_location_00112460)();
    uVar7 = (*(type_8 *)PTR_strerror_00112184)(*puVar6);
    pcVar5 = (char *)(*(type_8 *)PTR_dupprintf_001113a8)(var_5 + -0x5af4,var_4,uVar7);
    puVar1 = PTR_safefree_001112f0;
    *logtext = pcVar5;
    (*(type_8 *)puVar1)(var_2);
    goto LAB_000c79ac;
  }
  pcVar5 = (char *)(*(type_8 *)PTR_dupprintf_001113a8)(var_5 + -0x5adc,var_2);
  *logtext = (char *)0x0;
  if (var_8 == 0) {
    if (var_9 != 0) {
LAB_000c7b78:
      pSVar8 = var_10(pcVar5);
      ppsVar9 = var_11(pSVar8,upplug);
      var_12 = (*(*ppsVar9)->socket_error)(ppsVar9);
      if (var_12 == (char *)0x0) {
        (*(type_8 *)PTR_safefree_001112f0)(*logtext);
        *logtext = pcVar5;
        puVar1 = PTR_safefree_001112f0;
        *sock = ppsVar9;
        (*(type_8 *)puVar1)(var_2);
        (*(type_8 *)PTR_safefree_001112f0)(var_4);
        (*(type_8 *)PTR_close_00112050)(var_6);
        return 2;
      }
      (*(type_8 *)PTR_safefree_001112f0)(*us_err);
      var_12 = (*(*ppsVar9)->socket_error)(ppsVar9);
      var_12 = (char *)(*(type_8 *)PTR_dupprintf_001113a8)(var_5 + -0x5f08,pcVar5,var_12)
      ;
      p_Var11 = (*ppsVar9)->close;
      *us_err = var_12;
      (*p_Var11)(ppsVar9);
      goto LAB_000c7c10;
    }
LAB_000c797c:
    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {
      var_6 = (*(type_8 *)PTR___assert_fail_00111f50)
                        (var_5 + -0x5ad0,var_5 + -0x5bd0,0x15c,
                         var_5 + -0x5a7c);
      return var_6;
    }
  }
  else {
    pSVar8 = var_10(pcVar5);
    ppsVar9 = (type_3)(*(type_8 *)PTR_new_connection_0011165c)
                                (pSVar8,var_13 + -0x4be4,0,0,1,0,0,downplug,conf);
    var_12 = (*(*ppsVar9)->socket_error)(ppsVar9);
    if (var_12 == (char *)0x0) {
      (*(type_8 *)PTR_safefree_001112f0)(*logtext);
      *logtext = pcVar5;
      puVar1 = PTR_safefree_001112f0;
      *sock = ppsVar9;
      (*(type_8 *)puVar1)(var_2);
      (*(type_8 *)PTR_safefree_001112f0)(var_4);
      (*(type_8 *)PTR_close_00112050)(var_6);
      return 1;
    }
    (*(type_8 *)PTR_safefree_001112f0)(*ds_err);
    var_12 = (*(*ppsVar9)->socket_error)(ppsVar9);
    var_12 = (char *)(*(type_8 *)PTR_dupprintf_001113a8)(var_5 + -0x5f08,pcVar5,var_12);
    p_Var11 = (*ppsVar9)->close;
    *ds_err = var_12;
    (*p_Var11)(ppsVar9);
    if (var_9 != 0) goto LAB_000c7b78;
LAB_000c7c10:
    if (*logtext == (char *)0x0) goto LAB_000c797c;
  }
  (*(type_8 *)PTR_safefree_001112f0)(var_2);
  (*(type_8 *)PTR_safefree_001112f0)(var_4);
  var_4 = pcVar5;
LAB_000c79ac:
  (*(type_8 *)PTR_safefree_001112f0)(var_4);
  (*(type_8 *)PTR_close_00112050)(var_6);
  return 0;
}


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

undefined4
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                  undefined4 *param_5,int *param_6,int *param_7,int *param_8,int param_9,
                  int param_10)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  int *piVar7;
  int iVar8;
  undefined4 uVar9;
  code *pcVar10;
  
  iVar2 = FUN_000c7150(param_1,param_6);
  if (iVar2 == 0) {
    return 0;
  }
  iVar3 = make_dir_and_check_ours(iVar2);
  puVar1 = PTR_safefree_001112f0;
  if (iVar3 != 0) {
    *param_6 = iVar3;
    (*(code *)puVar1)(iVar2);
    return 0;
  }
  iVar3 = (*(code *)PTR_dupcat_001114c8)(iVar2,PTR_DAT_001112f4 + -0x5afc,0);
  iVar4 = (*(code *)PTR_open64_001126d0)(iVar3,0x302,0x180);
  if (iVar4 < 0) {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);
    iVar4 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5ba8,iVar3,uVar9);
    puVar1 = PTR_safefree_001112f0;
    *param_6 = iVar4;
    (*(code *)puVar1)(iVar2);
    (*(code *)PTR_safefree_001112f0)(iVar3);
    return 0;
  }
  iVar5 = (*(code *)PTR_flock_0011210c)(iVar4,2);
  if (iVar5 < 0) {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
    uVar9 = (*(code *)PTR_strerror_00112184)(*puVar6);
    iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5af4,iVar3,uVar9);
    puVar1 = PTR_safefree_001112f0;
    *param_6 = iVar5;
    (*(code *)puVar1)(iVar2);
    goto LAB_000c79ac;
  }
  iVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5adc,iVar2);
  *param_6 = 0;
  if (param_10 == 0) {
    if (param_9 != 0) {
LAB_000c7b78:
      uVar9 = unix_sock_addr(iVar5);
      piVar7 = (int *)new_unix_listener(uVar9,param_4);
      iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);
      if (iVar8 == 0) {
        (*(code *)PTR_safefree_001112f0)(*param_6);
        *param_6 = iVar5;
        puVar1 = PTR_safefree_001112f0;
        *param_5 = piVar7;
        (*(code *)puVar1)(iVar2);
        (*(code *)PTR_safefree_001112f0)(iVar3);
        (*(code *)PTR_close_00112050)(iVar4);
        return 2;
      }
      (*(code *)PTR_safefree_001112f0)(*param_8);
      uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);
      iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);
      pcVar10 = *(code **)(*piVar7 + 4);
      *param_8 = iVar8;
      (*pcVar10)(piVar7);
      goto LAB_000c7c10;
    }
LAB_000c797c:
    if ((*param_7 == 0) && (*param_8 == 0)) {
      uVar9 = (*(code *)PTR___assert_fail_00111f50)
                        (PTR_DAT_001112f4 + -0x5ad0,PTR_DAT_001112f4 + -0x5bd0,0x15c,
                         PTR_DAT_001112f4 + -0x5a7c);
      return uVar9;
    }
  }
  else {
    uVar9 = unix_sock_addr(iVar5);
    piVar7 = (int *)(*(code *)PTR_new_connection_0011165c)
                              (uVar9,PTR_DAT_001112f8 + -0x4be4,0,0,1,0,0,param_3,param_2);
    iVar8 = (**(code **)(*piVar7 + 0x1c))(piVar7);
    if (iVar8 == 0) {
      (*(code *)PTR_safefree_001112f0)(*param_6);
      *param_6 = iVar5;
      puVar1 = PTR_safefree_001112f0;
      *param_5 = piVar7;
      (*(code *)puVar1)(iVar2);
      (*(code *)PTR_safefree_001112f0)(iVar3);
      (*(code *)PTR_close_00112050)(iVar4);
      return 1;
    }
    (*(code *)PTR_safefree_001112f0)(*param_7);
    uVar9 = (**(code **)(*piVar7 + 0x1c))(piVar7);
    iVar8 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x5f08,iVar5,uVar9);
    pcVar10 = *(code **)(*piVar7 + 4);
    *param_7 = iVar8;
    (*pcVar10)(piVar7);
    if (param_9 != 0) goto LAB_000c7b78;
LAB_000c7c10:
    if (*param_6 == 0) goto LAB_000c797c;
  }
  (*(code *)PTR_safefree_001112f0)(iVar2);
  (*(code *)PTR_safefree_001112f0)(iVar3);
  iVar3 = iVar5;
LAB_000c79ac:
  (*(code *)PTR_safefree_001112f0)(iVar3);
  (*(code *)PTR_close_00112050)(iVar4);
  return 0;
}

