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

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
                      )

{
  char *dirname;
  char *pcVar1;
  int __fd;
  int iVar2;
  char *pcVar3;
  int *piVar4;
  SockAddr pSVar5;
  Socket ppsVar6;
  char *pcVar7;
  
  dirname = make_dirname(pi_name,logtext);
  if (dirname == (char *)0x0) {
    return 0;
  }
  pcVar1 = make_dir_and_check_ours(dirname);
  if (pcVar1 != (char *)0x0) {
    *logtext = pcVar1;
    safefree(dirname);
    return 0;
  }
  pcVar1 = dupcat(dirname,"/lock",0);
  __fd = open64(pcVar1,0x242,0x180);
  if (__fd < 0) {
    piVar4 = __errno_location();
    pcVar3 = strerror(*piVar4);
    pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3);
    *logtext = pcVar3;
    safefree(dirname);
    safefree(pcVar1);
    return 0;
  }
  iVar2 = flock(__fd,2);
  if (iVar2 < 0) {
    piVar4 = __errno_location();
    pcVar3 = strerror(*piVar4);
    pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3);
    *logtext = pcVar3;
    safefree(dirname);
    goto LAB_0006b3ab;
  }
  pcVar3 = dupprintf("%s/socket",dirname);
  *logtext = (char *)0x0;
  if (can_downstream == 0) {
    if (can_upstream != 0) {
LAB_0006b4e1:
      pSVar5 = unix_sock_addr(pcVar3);
      ppsVar6 = new_unix_listener(pSVar5,upplug);
      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);
      if (pcVar7 == (char *)0x0) {
        safefree(*logtext);
        *logtext = pcVar3;
        *sock = ppsVar6;
        safefree(dirname);
        safefree(pcVar1);
        close(__fd);
        return 2;
      }
      safefree(*us_err);
      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);
      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);
      *us_err = pcVar7;
      (*(*ppsVar6)->close)(ppsVar6);
      goto LAB_0006b561;
    }
LAB_0006b387:
    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");
    }
  }
  else {
    pSVar5 = unix_sock_addr(pcVar3);
    ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);
    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);
    if (pcVar7 == (char *)0x0) {
      safefree(*logtext);
      *logtext = pcVar3;
      *sock = ppsVar6;
      safefree(dirname);
      safefree(pcVar1);
      close(__fd);
      return 1;
    }
    safefree(*ds_err);
    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);
    pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);
    *ds_err = pcVar7;
    (*(*ppsVar6)->close)(ppsVar6);
    if (can_upstream != 0) goto LAB_0006b4e1;
LAB_0006b561:
    if (*logtext == (char *)0x0) goto LAB_0006b387;
  }
  safefree(dirname);
  safefree(pcVar1);
  pcVar1 = pcVar3;
LAB_0006b3ab:
  safefree(pcVar1);
  close(__fd);
  return 0;
}



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

undefined4
FUN_0006b2b0(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)

{
  int iVar1;
  int iVar2;
  char *__file;
  int iVar3;
  char *pcVar4;
  undefined4 uVar5;
  int *piVar6;
  
  iVar1 = FUN_0006ad30();
  if (iVar1 == 0) {
    return 0;
  }
  iVar2 = FUN_00065f10(iVar1);
  if (iVar2 != 0) {
    *param_6 = iVar2;
    FUN_0001b250(iVar1);
    return 0;
  }
  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);
  iVar2 = open64(__file,0x242,0x180);
  if (iVar2 < 0) {
    piVar6 = __errno_location();
    pcVar4 = strerror(*piVar6);
    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);
    *param_6 = iVar2;
    FUN_0001b250(iVar1);
    FUN_0001b250(__file);
    return 0;
  }
  iVar3 = flock(iVar2,2);
  if (iVar3 < 0) {
    piVar6 = __errno_location();
    pcVar4 = strerror(*piVar6);
    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);
    *param_6 = iVar3;
    FUN_0001b250(iVar1);
    goto LAB_0006b3ab;
  }
  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);
  *param_6 = 0;
  if (param_10 == 0) {
    if (param_9 != 0) {
LAB_0006b4e1:
      uVar5 = FUN_00068360(pcVar4);
      piVar6 = (int *)FUN_00068400(uVar5,param_4);
      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);
      if (iVar3 == 0) {
        FUN_0001b250(*param_6);
        *param_6 = (int)pcVar4;
        *param_5 = piVar6;
        FUN_0001b250(iVar1);
        FUN_0001b250(__file);
        close(iVar2);
        return 2;
      }
      FUN_0001b250(*param_8);
      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);
      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);
      *param_8 = iVar3;
      (**(code **)(*piVar6 + 4))(piVar6);
      goto LAB_0006b561;
    }
LAB_0006b387:
    if ((*param_7 == 0) && (*param_8 == 0)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");
    }
  }
  else {
    uVar5 = FUN_00068360(pcVar4);
    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);
    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);
    if (iVar3 == 0) {
      FUN_0001b250(*param_6);
      *param_6 = (int)pcVar4;
      *param_5 = piVar6;
      FUN_0001b250(iVar1);
      FUN_0001b250(__file);
      close(iVar2);
      return 1;
    }
    FUN_0001b250(*param_7);
    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);
    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);
    *param_7 = iVar3;
    (**(code **)(*piVar6 + 4))(piVar6);
    if (param_9 != 0) goto LAB_0006b4e1;
LAB_0006b561:
    if (*param_6 == 0) goto LAB_0006b387;
  }
  FUN_0001b250(iVar1);
  FUN_0001b250(__file);
  __file = pcVar4;
LAB_0006b3ab:
  FUN_0001b250(__file);
  close(iVar2);
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x3dab7
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x30]
CALL 0x0006ad30
TEST EAX,EAX
JZ 0x0006b3bb
SUB ESP,0xc
MOV ESI,EAX
PUSH EAX
CALL 0x00065f10
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006b308
MOV EDX,dword ptr [ESP + 0x44]
SUB ESP,0xc
MOV dword ptr [EDX],EAX
PUSH ESI
CALL 0x0001b250
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd77db]
PUSH 0x0
PUSH EAX
PUSH ESI
CALL 0x0001ab20
ADD ESP,0xc
PUSH 0x180
MOV EBP,EAX
PUSH 0x242
PUSH EAX
CALL 0x00014490
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JS 0x0006b400
SUB ESP,0x8
PUSH 0x2
PUSH EAX
CALL 0x000143d0
ADD ESP,0x10
TEST EAX,EAX
JS 0x0006b3c8
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd77f8]
PUSH ESI
PUSH EAX
CALL 0x0001b030
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x54]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x54]
MOV dword ptr [EAX],0x0
TEST ECX,ECX
JNZ 0x0006b440
MOV EAX,dword ptr [ESP + 0x50]
TEST EAX,EAX
JNZ 0x0006b4e1
MOV EAX,dword ptr [ESP + 0x48]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0006b610
SUB ESP,0xc
PUSH ESI
CALL 0x0001b250
MOV dword ptr [ESP],EBP
CALL 0x0001b250
POP EDX
PUSH dword ptr [ESP + 0x14]
CALL 0x0001b250
MOV dword ptr [ESP],EDI
CALL 0x00014820
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00014550
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00014380
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffd77e1]
PUSH EBP
PUSH EAX
CALL 0x0001b030
MOV ECX,dword ptr [ESP + 0x54]
MOV dword ptr [ECX],EAX
MOV dword ptr [ESP],ESI
CALL 0x0001b250
MOV dword ptr [ESP],EBP
JMP 0x0006b3ab
CALL 0x00014550
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00014380
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffd775d]
PUSH EBP
PUSH EAX
CALL 0x0001b030
MOV EDI,dword ptr [ESP + 0x54]
MOV dword ptr [EDI],EAX
MOV dword ptr [ESP],ESI
CALL 0x0001b250
MOV dword ptr [ESP],EBP
CALL 0x0001b250
ADD ESP,0x10
XOR EAX,EAX
JMP 0x0006b3bd
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x00068360
LEA ECX,[EBX + 0xfffc855e]
POP EDX
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x48]
PUSH 0x0
PUSH 0x0
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH ECX
PUSH EAX
CALL 0x0001e660
ADD ESP,0x24
MOV ECX,EAX
MOV EAX,dword ptr [EAX]
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
CALL dword ptr [EAX + 0x1c]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x0006b578
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x54]
PUSH dword ptr [EAX]
CALL 0x0001b250
MOV ECX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP + 0x1c],ECX
MOV dword ptr [ESP],ECX
CALL dword ptr [EAX + 0x1c]
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffc8e20]
PUSH dword ptr [ESP + 0x10]
PUSH EAX
CALL 0x0001b030
MOV ECX,dword ptr [ESP + 0x58]
MOV dword ptr [ECX],EAX
MOV ECX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP],ECX
CALL dword ptr [EAX + 0x4]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x50]
TEST EAX,EAX
JZ 0x0006b561
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x00068360
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x44]
PUSH EAX
CALL 0x00068400
MOV ECX,EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x1c],ECX
MOV dword ptr [ESP],ECX
CALL dword ptr [EAX + 0x1c]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x0006b5bf
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x58]
PUSH dword ptr [EAX]
CALL 0x0001b250
MOV ECX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP + 0x1c],ECX
MOV dword ptr [ESP],ECX
CALL dword ptr [EAX + 0x1c]
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffc8e20]
PUSH dword ptr [ESP + 0x10]
PUSH EAX
CALL 0x0001b030
MOV ECX,dword ptr [ESP + 0x5c]
MOV dword ptr [ECX],EAX
MOV ECX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP],ECX
CALL dword ptr [EAX + 0x4]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0006b395
JMP 0x0006b387
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x50]
PUSH dword ptr [EAX]
CALL 0x0001b250
MOV EAX,dword ptr [ESP + 0x54]
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],ECX
MOV EAX,dword ptr [ESP + 0x50]
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],ECX
MOV dword ptr [ESP],ESI
CALL 0x0001b250
MOV dword ptr [ESP],EBP
CALL 0x0001b250
MOV dword ptr [ESP],EDI
CALL 0x00014820
ADD ESP,0x10
MOV EAX,0x1
JMP 0x0006b3bd
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x50]
PUSH dword ptr [EAX]
CALL 0x0001b250
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x54]
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [EAX],ECX
MOV dword ptr [ESP],ESI
CALL 0x0001b250
MOV dword ptr [ESP],EBP
CALL 0x0001b250
MOV dword ptr [ESP],EDI
CALL 0x00014820
ADD ESP,0x10
MOV EAX,0x2
JMP 0x0006b3bd
MOV EAX,dword ptr [ESP + 0x4c]
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JNZ 0x0006b395
LEA EAX,[EBX + 0xfffd7868]
PUSH EAX
LEA EAX,[EBX + 0xfffd773a]
PUSH 0x15c
PUSH EAX
LEA EAX,[EBX + 0xfffd7824]
PUSH EAX
CALL 0x00014880
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_0006b2b0(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,int param_10)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}\n\n" comment (function_definition "undefined4\nFUN_0006b2b0(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,int param_10)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}" type_identifier (function_declarator "FUN_0006b2b0(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,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,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  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "iVar1 = FUN_0006ad30();" (assignment_expression "iVar1 = FUN_0006ad30()" identifier = (call_expression "FUN_0006ad30()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00065f10(iVar1);" (assignment_expression "iVar2 = FUN_00065f10(iVar1)" identifier = (call_expression "FUN_00065f10(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }" { (expression_statement "*param_6 = iVar2;" (assignment_expression "*param_6 = iVar2" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "__file = (char *)FUN_0001ab20(iVar1,"/lock",0);" (assignment_expression "__file = (char *)FUN_0001ab20(iVar1,"/lock",0)" identifier = (cast_expression "(char *)FUN_0001ab20(iVar1,"/lock",0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ab20(iVar1,"/lock",0)" identifier (argument_list "(iVar1,"/lock",0)" ( identifier , (string_literal ""/lock"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar2 = open64(__file,0x242,0x180);" (assignment_expression "iVar2 = open64(__file,0x242,0x180)" identifier = (call_expression "open64(__file,0x242,0x180)" identifier (argument_list "(__file,0x242,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar6);" (assignment_expression "pcVar4 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);" (assignment_expression "iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4)" identifier = (call_expression "FUN_0001b030("%s: open: %s",__file,pcVar4)" identifier (argument_list "("%s: open: %s",__file,pcVar4)" ( (string_literal ""%s: open: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_6 = iVar2;" (assignment_expression "*param_6 = iVar2" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = flock(iVar2,2);" (assignment_expression "iVar3 = flock(iVar2,2)" identifier = (call_expression "flock(iVar2,2)" identifier (argument_list "(iVar2,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar6);" (assignment_expression "pcVar4 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);" (assignment_expression "iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4)" identifier = (call_expression "FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4)" identifier (argument_list "("%s: flock(LOCK_EX): %s",__file,pcVar4)" ( (string_literal ""%s: flock(LOCK_EX): %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_6 = iVar3;" (assignment_expression "*param_6 = iVar3" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (goto_statement "goto LAB_0006b3ab;" goto statement_identifier ;) })) (expression_statement "pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);" (assignment_expression "pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1)" identifier = (cast_expression "(char *)FUN_0001b030("%s/socket",iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001b030("%s/socket",iVar1)" identifier (argument_list "("%s/socket",iVar1)" ( (string_literal ""%s/socket"" " string_content ") , 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_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" if (parenthesized_expression "(param_10 == 0)" ( (binary_expression "param_10 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }" { (if_statement "if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }" { (labeled_statement "LAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);" statement_identifier : (expression_statement "uVar5 = FUN_00068360(pcVar4);" (assignment_expression "uVar5 = FUN_00068360(pcVar4)" identifier = (call_expression "FUN_00068360(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;)) (expression_statement "piVar6 = (int *)FUN_00068400(uVar5,param_4);" (assignment_expression "piVar6 = (int *)FUN_00068400(uVar5,param_4)" identifier = (cast_expression "(int *)FUN_00068400(uVar5,param_4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00068400(uVar5,param_4)" identifier (argument_list "(uVar5,param_4)" ( identifier , identifier ))))) ;) (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }" { (expression_statement "FUN_0001b250(*param_6);" (call_expression "FUN_0001b250(*param_6)" identifier (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = (int)pcVar4;" (assignment_expression "*param_6 = (int)pcVar4" (pointer_expression "*param_6" * identifier) = (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = piVar6;" (assignment_expression "*param_5 = piVar6" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "FUN_0001b250(*param_8);" (call_expression "FUN_0001b250(*param_8)" identifier (argument_list "(*param_8)" ( (pointer_expression "*param_8" * identifier) ))) ;) (expression_statement "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);" (assignment_expression "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier = (call_expression "FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier (argument_list "("%s: %s",pcVar4,uVar5)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_8 = iVar3;" (assignment_expression "*param_8 = iVar3" (pointer_expression "*param_8" * identifier) = identifier) ;) (expression_statement "(**(code **)(*piVar6 + 4))(piVar6);" (call_expression "(**(code **)(*piVar6 + 4))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 4))" ( (pointer_expression "**(code **)(*piVar6 + 4)" * (pointer_expression "*(code **)(*piVar6 + 4)" * (cast_expression "(code **)(*piVar6 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 4)" ( (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier ))) ;) (goto_statement "goto LAB_0006b561;" goto statement_identifier ;) })) (labeled_statement "LAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" statement_identifier : (if_statement "if ((*param_7 == 0) && (*param_8 == 0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\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                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" { comment (expression_statement "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");" (call_expression "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" identifier (argument_list "("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" ( (string_literal ""*logtext || *ds_err || *us_err"" " string_content ") , (string_literal ""unix/uxshare.c"" " string_content ") , number_literal , (string_literal ""platform_ssh_share"" " string_content ") ))) ;) }))) }) (else_clause "else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" else (compound_statement "{\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" { (expression_statement "uVar5 = FUN_00068360(pcVar4);" (assignment_expression "uVar5 = FUN_00068360(pcVar4)" identifier = (call_expression "FUN_00068360(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);" (assignment_expression "piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" identifier = (cast_expression "(int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" identifier (argument_list "(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" ( identifier , (pointer_expression "&DAT_000712ce" & identifier) , number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier ))))) ;) (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }" { (expression_statement "FUN_0001b250(*param_6);" (call_expression "FUN_0001b250(*param_6)" identifier (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = (int)pcVar4;" (assignment_expression "*param_6 = (int)pcVar4" (pointer_expression "*param_6" * identifier) = (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = piVar6;" (assignment_expression "*param_5 = piVar6" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "FUN_0001b250(*param_7);" (call_expression "FUN_0001b250(*param_7)" identifier (argument_list "(*param_7)" ( (pointer_expression "*param_7" * identifier) ))) ;) (expression_statement "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);" (assignment_expression "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier = (call_expression "FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier (argument_list "("%s: %s",pcVar4,uVar5)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_7 = iVar3;" (assignment_expression "*param_7 = iVar3" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "(**(code **)(*piVar6 + 4))(piVar6);" (call_expression "(**(code **)(*piVar6 + 4))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 4))" ( (pointer_expression "**(code **)(*piVar6 + 4)" * (pointer_expression "*(code **)(*piVar6 + 4)" * (cast_expression "(code **)(*piVar6 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 4)" ( (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier ))) ;) (if_statement "if (param_9 != 0) goto LAB_0006b4e1;" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006b4e1;" goto statement_identifier ;)) (labeled_statement "LAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;" statement_identifier : (if_statement "if (*param_6 == 0) goto LAB_0006b387;" if (parenthesized_expression "(*param_6 == 0)" ( (binary_expression "*param_6 == 0" (pointer_expression "*param_6" * identifier) == number_literal) )) (goto_statement "goto LAB_0006b387;" goto statement_identifier ;))) }))) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "__file = pcVar4;" (assignment_expression "__file = pcVar4" identifier = identifier) ;) (labeled_statement "LAB_0006b3ab:\n  FUN_0001b250(__file);" statement_identifier : (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;)) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\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  char *dirname;\n  char *pcVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  SockAddr pSVar5;\n  Socket ppsVar6;\n  char *pcVar7;\n  \n  dirname = make_dirname(pi_name,logtext);\n  if (dirname == (char *)0x0) {\n    return 0;\n  }\n  pcVar1 = make_dir_and_check_ours(dirname);\n  if (pcVar1 != (char *)0x0) {\n    *logtext = pcVar1;\n    safefree(dirname);\n    return 0;\n  }\n  pcVar1 = dupcat(dirname,"/lock",0);\n  __fd = open64(pcVar1,0x242,0x180);\n  if (__fd < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    safefree(pcVar1);\n    return 0;\n  }\n  iVar2 = flock(__fd,2);\n  if (iVar2 < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    goto LAB_0006b3ab;\n  }\n  pcVar3 = dupprintf("%s/socket",dirname);\n  *logtext = (char *)0x0;\n  if (can_downstream == 0) {\n    if (can_upstream != 0) {\nLAB_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);\n      ppsVar6 = new_unix_listener(pSVar5,upplug);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }\n      safefree(*us_err);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n      *us_err = pcVar7;\n      (*(*ppsVar6)->close)(ppsVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    pSVar5 = unix_sock_addr(pcVar3);\n    ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    if (pcVar7 == (char *)0x0) {\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }\n    safefree(*ds_err);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n    *ds_err = pcVar7;\n    (*(*ppsVar6)->close)(ppsVar6);\n    if (can_upstream != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*logtext == (char *)0x0) goto LAB_0006b387;\n  }\n  safefree(dirname);\n  safefree(pcVar1);\n  pcVar1 = pcVar3;\nLAB_0006b3ab:\n  safefree(pcVar1);\n  close(__fd);\n  return 0;\n}\n\n" comment comment 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  char *dirname;\n  char *pcVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  SockAddr pSVar5;\n  Socket ppsVar6;\n  char *pcVar7;\n  \n  dirname = make_dirname(pi_name,logtext);\n  if (dirname == (char *)0x0) {\n    return 0;\n  }\n  pcVar1 = make_dir_and_check_ours(dirname);\n  if (pcVar1 != (char *)0x0) {\n    *logtext = pcVar1;\n    safefree(dirname);\n    return 0;\n  }\n  pcVar1 = dupcat(dirname,"/lock",0);\n  __fd = open64(pcVar1,0x242,0x180);\n  if (__fd < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    safefree(pcVar1);\n    return 0;\n  }\n  iVar2 = flock(__fd,2);\n  if (iVar2 < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    goto LAB_0006b3ab;\n  }\n  pcVar3 = dupprintf("%s/socket",dirname);\n  *logtext = (char *)0x0;\n  if (can_downstream == 0) {\n    if (can_upstream != 0) {\nLAB_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);\n      ppsVar6 = new_unix_listener(pSVar5,upplug);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }\n      safefree(*us_err);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n      *us_err = pcVar7;\n      (*(*ppsVar6)->close)(ppsVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    pSVar5 = unix_sock_addr(pcVar3);\n    ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    if (pcVar7 == (char *)0x0) {\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }\n    safefree(*ds_err);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n    *ds_err = pcVar7;\n    (*(*ppsVar6)->close)(ppsVar6);\n    if (can_upstream != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*logtext == (char *)0x0) goto LAB_0006b387;\n  }\n  safefree(dirname);\n  safefree(pcVar1);\n  pcVar1 = pcVar3;\nLAB_0006b3ab:\n  safefree(pcVar1);\n  close(__fd);\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  char *dirname;\n  char *pcVar1;\n  int __fd;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  SockAddr pSVar5;\n  Socket ppsVar6;\n  char *pcVar7;\n  \n  dirname = make_dirname(pi_name,logtext);\n  if (dirname == (char *)0x0) {\n    return 0;\n  }\n  pcVar1 = make_dir_and_check_ours(dirname);\n  if (pcVar1 != (char *)0x0) {\n    *logtext = pcVar1;\n    safefree(dirname);\n    return 0;\n  }\n  pcVar1 = dupcat(dirname,"/lock",0);\n  __fd = open64(pcVar1,0x242,0x180);\n  if (__fd < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    safefree(pcVar1);\n    return 0;\n  }\n  iVar2 = flock(__fd,2);\n  if (iVar2 < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    goto LAB_0006b3ab;\n  }\n  pcVar3 = dupprintf("%s/socket",dirname);\n  *logtext = (char *)0x0;\n  if (can_downstream == 0) {\n    if (can_upstream != 0) {\nLAB_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);\n      ppsVar6 = new_unix_listener(pSVar5,upplug);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }\n      safefree(*us_err);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n      *us_err = pcVar7;\n      (*(*ppsVar6)->close)(ppsVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    pSVar5 = unix_sock_addr(pcVar3);\n    ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    if (pcVar7 == (char *)0x0) {\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }\n    safefree(*ds_err);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n    *ds_err = pcVar7;\n    (*(*ppsVar6)->close)(ppsVar6);\n    if (can_upstream != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*logtext == (char *)0x0) goto LAB_0006b387;\n  }\n  safefree(dirname);\n  safefree(pcVar1);\n  pcVar1 = pcVar3;\nLAB_0006b3ab:\n  safefree(pcVar1);\n  close(__fd);\n  return 0;\n}" { (declaration "char *dirname;" primitive_type (pointer_declarator "*dirname" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "SockAddr pSVar5;" type_identifier identifier ;) (declaration "Socket ppsVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * 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 "pcVar1 = make_dir_and_check_ours(dirname);" (assignment_expression "pcVar1 = make_dir_and_check_ours(dirname)" identifier = (call_expression "make_dir_and_check_ours(dirname)" identifier (argument_list "(dirname)" ( identifier )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    *logtext = pcVar1;\n    safefree(dirname);\n    return 0;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *logtext = pcVar1;\n    safefree(dirname);\n    return 0;\n  }" { (expression_statement "*logtext = pcVar1;" (assignment_expression "*logtext = pcVar1" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "safefree(dirname);" (call_expression "safefree(dirname)" identifier (argument_list "(dirname)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar1 = dupcat(dirname,"/lock",0);" (assignment_expression "pcVar1 = dupcat(dirname,"/lock",0)" identifier = (call_expression "dupcat(dirname,"/lock",0)" identifier (argument_list "(dirname,"/lock",0)" ( identifier , (string_literal ""/lock"" " string_content ") , number_literal )))) ;) (expression_statement "__fd = open64(pcVar1,0x242,0x180);" (assignment_expression "__fd = open64(pcVar1,0x242,0x180)" identifier = (call_expression "open64(pcVar1,0x242,0x180)" identifier (argument_list "(pcVar1,0x242,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (__fd < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    safefree(pcVar1);\n    return 0;\n  }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    safefree(pcVar1);\n    return 0;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar4);" (assignment_expression "pcVar3 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3);" (assignment_expression "pcVar3 = dupprintf("%s: open: %s",pcVar1,pcVar3)" identifier = (call_expression "dupprintf("%s: open: %s",pcVar1,pcVar3)" identifier (argument_list "("%s: open: %s",pcVar1,pcVar3)" ( (string_literal ""%s: open: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*logtext = pcVar3;" (assignment_expression "*logtext = pcVar3" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "safefree(dirname);" (call_expression "safefree(dirname)" identifier (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = flock(__fd,2);" (assignment_expression "iVar2 = flock(__fd,2)" identifier = (call_expression "flock(__fd,2)" identifier (argument_list "(__fd,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    goto LAB_0006b3ab;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar4 = __errno_location();\n    pcVar3 = strerror(*piVar4);\n    pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3);\n    *logtext = pcVar3;\n    safefree(dirname);\n    goto LAB_0006b3ab;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar4);" (assignment_expression "pcVar3 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3);" (assignment_expression "pcVar3 = dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3)" identifier = (call_expression "dupprintf("%s: flock(LOCK_EX): %s",pcVar1,pcVar3)" identifier (argument_list "("%s: flock(LOCK_EX): %s",pcVar1,pcVar3)" ( (string_literal ""%s: flock(LOCK_EX): %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*logtext = pcVar3;" (assignment_expression "*logtext = pcVar3" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "safefree(dirname);" (call_expression "safefree(dirname)" identifier (argument_list "(dirname)" ( identifier ))) ;) (goto_statement "goto LAB_0006b3ab;" goto statement_identifier ;) })) (expression_statement "pcVar3 = dupprintf("%s/socket",dirname);" (assignment_expression "pcVar3 = dupprintf("%s/socket",dirname)" identifier = (call_expression "dupprintf("%s/socket",dirname)" identifier (argument_list "("%s/socket",dirname)" ( (string_literal ""%s/socket"" " string_content ") , 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_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);\n      ppsVar6 = new_unix_listener(pSVar5,upplug);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }\n      safefree(*us_err);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n      *us_err = pcVar7;\n      (*(*ppsVar6)->close)(ppsVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    pSVar5 = unix_sock_addr(pcVar3);\n    ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    if (pcVar7 == (char *)0x0) {\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }\n    safefree(*ds_err);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n    *ds_err = pcVar7;\n    (*(*ppsVar6)->close)(ppsVar6);\n    if (can_upstream != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*logtext == (char *)0x0) goto LAB_0006b387;\n  }" if (parenthesized_expression "(can_downstream == 0)" ( (binary_expression "can_downstream == 0" identifier == number_literal) )) (compound_statement "{\n    if (can_upstream != 0) {\nLAB_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);\n      ppsVar6 = new_unix_listener(pSVar5,upplug);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }\n      safefree(*us_err);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n      *us_err = pcVar7;\n      (*(*ppsVar6)->close)(ppsVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }" { (if_statement "if (can_upstream != 0) {\nLAB_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);\n      ppsVar6 = new_unix_listener(pSVar5,upplug);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }\n      safefree(*us_err);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n      *us_err = pcVar7;\n      (*(*ppsVar6)->close)(ppsVar6);\n      goto LAB_0006b561;\n    }" if (parenthesized_expression "(can_upstream != 0)" ( (binary_expression "can_upstream != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);\n      ppsVar6 = new_unix_listener(pSVar5,upplug);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }\n      safefree(*us_err);\n      pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n      pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n      *us_err = pcVar7;\n      (*(*ppsVar6)->close)(ppsVar6);\n      goto LAB_0006b561;\n    }" { (labeled_statement "LAB_0006b4e1:\n      pSVar5 = unix_sock_addr(pcVar3);" statement_identifier : (expression_statement "pSVar5 = unix_sock_addr(pcVar3);" (assignment_expression "pSVar5 = unix_sock_addr(pcVar3)" identifier = (call_expression "unix_sock_addr(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;)) (expression_statement "ppsVar6 = new_unix_listener(pSVar5,upplug);" (assignment_expression "ppsVar6 = new_unix_listener(pSVar5,upplug)" identifier = (call_expression "new_unix_listener(pSVar5,upplug)" identifier (argument_list "(pSVar5,upplug)" ( identifier , identifier )))) ;) (expression_statement "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);" (assignment_expression "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6)" identifier = (call_expression "(*(*ppsVar6)->socket_error)(ppsVar6)" (parenthesized_expression "(*(*ppsVar6)->socket_error)" ( (pointer_expression "*(*ppsVar6)->socket_error" * (field_expression "(*ppsVar6)->socket_error" (parenthesized_expression "(*ppsVar6)" ( (pointer_expression "*ppsVar6" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar6)" ( identifier )))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        safefree(*logtext);\n        *logtext = pcVar3;\n        *sock = ppsVar6;\n        safefree(dirname);\n        safefree(pcVar1);\n        close(__fd);\n        return 2;\n      }" { (expression_statement "safefree(*logtext);" (call_expression "safefree(*logtext)" identifier (argument_list "(*logtext)" ( (pointer_expression "*logtext" * identifier) ))) ;) (expression_statement "*logtext = pcVar3;" (assignment_expression "*logtext = pcVar3" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "*sock = ppsVar6;" (assignment_expression "*sock = ppsVar6" (pointer_expression "*sock" * identifier) = identifier) ;) (expression_statement "safefree(dirname);" (call_expression "safefree(dirname)" identifier (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "safefree(*us_err);" (call_expression "safefree(*us_err)" identifier (argument_list "(*us_err)" ( (pointer_expression "*us_err" * identifier) ))) ;) (expression_statement "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);" (assignment_expression "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6)" identifier = (call_expression "(*(*ppsVar6)->socket_error)(ppsVar6)" (parenthesized_expression "(*(*ppsVar6)->socket_error)" ( (pointer_expression "*(*ppsVar6)->socket_error" * (field_expression "(*ppsVar6)->socket_error" (parenthesized_expression "(*ppsVar6)" ( (pointer_expression "*ppsVar6" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar6)" ( identifier )))) ;) (expression_statement "pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);" (assignment_expression "pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7)" identifier = (call_expression "dupprintf("%s: %s",pcVar3,pcVar7)" identifier (argument_list "("%s: %s",pcVar3,pcVar7)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*us_err = pcVar7;" (assignment_expression "*us_err = pcVar7" (pointer_expression "*us_err" * identifier) = identifier) ;) (expression_statement "(*(*ppsVar6)->close)(ppsVar6);" (call_expression "(*(*ppsVar6)->close)(ppsVar6)" (parenthesized_expression "(*(*ppsVar6)->close)" ( (pointer_expression "*(*ppsVar6)->close" * (field_expression "(*ppsVar6)->close" (parenthesized_expression "(*ppsVar6)" ( (pointer_expression "*ppsVar6" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar6)" ( identifier ))) ;) (goto_statement "goto LAB_0006b561;" goto statement_identifier ;) })) (labeled_statement "LAB_0006b387:\n    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" statement_identifier : (if_statement "if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\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                    /* WARNING: Subroutine does not return */\n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" { comment (expression_statement "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");" (call_expression "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" identifier (argument_list "("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" ( (string_literal ""*logtext || *ds_err || *us_err"" " string_content ") , (string_literal ""unix/uxshare.c"" " string_content ") , number_literal , (string_literal ""platform_ssh_share"" " string_content ") ))) ;) }))) }) (else_clause "else {\n    pSVar5 = unix_sock_addr(pcVar3);\n    ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    if (pcVar7 == (char *)0x0) {\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }\n    safefree(*ds_err);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n    *ds_err = pcVar7;\n    (*(*ppsVar6)->close)(ppsVar6);\n    if (can_upstream != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*logtext == (char *)0x0) goto LAB_0006b387;\n  }" else (compound_statement "{\n    pSVar5 = unix_sock_addr(pcVar3);\n    ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    if (pcVar7 == (char *)0x0) {\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }\n    safefree(*ds_err);\n    pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);\n    pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);\n    *ds_err = pcVar7;\n    (*(*ppsVar6)->close)(ppsVar6);\n    if (can_upstream != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*logtext == (char *)0x0) goto LAB_0006b387;\n  }" { (expression_statement "pSVar5 = unix_sock_addr(pcVar3);" (assignment_expression "pSVar5 = unix_sock_addr(pcVar3)" identifier = (call_expression "unix_sock_addr(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf);" (assignment_expression "ppsVar6 = new_connection(pSVar5,"",0,0,1,0,0,downplug,conf)" identifier = (call_expression "new_connection(pSVar5,"",0,0,1,0,0,downplug,conf)" identifier (argument_list "(pSVar5,"",0,0,1,0,0,downplug,conf)" ( identifier , (string_literal """" " ") , number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);" (assignment_expression "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6)" identifier = (call_expression "(*(*ppsVar6)->socket_error)(ppsVar6)" (parenthesized_expression "(*(*ppsVar6)->socket_error)" ( (pointer_expression "*(*ppsVar6)->socket_error" * (field_expression "(*ppsVar6)->socket_error" (parenthesized_expression "(*ppsVar6)" ( (pointer_expression "*ppsVar6" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar6)" ( identifier )))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      safefree(*logtext);\n      *logtext = pcVar3;\n      *sock = ppsVar6;\n      safefree(dirname);\n      safefree(pcVar1);\n      close(__fd);\n      return 1;\n    }" { (expression_statement "safefree(*logtext);" (call_expression "safefree(*logtext)" identifier (argument_list "(*logtext)" ( (pointer_expression "*logtext" * identifier) ))) ;) (expression_statement "*logtext = pcVar3;" (assignment_expression "*logtext = pcVar3" (pointer_expression "*logtext" * identifier) = identifier) ;) (expression_statement "*sock = ppsVar6;" (assignment_expression "*sock = ppsVar6" (pointer_expression "*sock" * identifier) = identifier) ;) (expression_statement "safefree(dirname);" (call_expression "safefree(dirname)" identifier (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "safefree(*ds_err);" (call_expression "safefree(*ds_err)" identifier (argument_list "(*ds_err)" ( (pointer_expression "*ds_err" * identifier) ))) ;) (expression_statement "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6);" (assignment_expression "pcVar7 = (*(*ppsVar6)->socket_error)(ppsVar6)" identifier = (call_expression "(*(*ppsVar6)->socket_error)(ppsVar6)" (parenthesized_expression "(*(*ppsVar6)->socket_error)" ( (pointer_expression "*(*ppsVar6)->socket_error" * (field_expression "(*ppsVar6)->socket_error" (parenthesized_expression "(*ppsVar6)" ( (pointer_expression "*ppsVar6" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar6)" ( identifier )))) ;) (expression_statement "pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7);" (assignment_expression "pcVar7 = dupprintf("%s: %s",pcVar3,pcVar7)" identifier = (call_expression "dupprintf("%s: %s",pcVar3,pcVar7)" identifier (argument_list "("%s: %s",pcVar3,pcVar7)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*ds_err = pcVar7;" (assignment_expression "*ds_err = pcVar7" (pointer_expression "*ds_err" * identifier) = identifier) ;) (expression_statement "(*(*ppsVar6)->close)(ppsVar6);" (call_expression "(*(*ppsVar6)->close)(ppsVar6)" (parenthesized_expression "(*(*ppsVar6)->close)" ( (pointer_expression "*(*ppsVar6)->close" * (field_expression "(*ppsVar6)->close" (parenthesized_expression "(*ppsVar6)" ( (pointer_expression "*ppsVar6" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar6)" ( identifier ))) ;) (if_statement "if (can_upstream != 0) goto LAB_0006b4e1;" if (parenthesized_expression "(can_upstream != 0)" ( (binary_expression "can_upstream != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006b4e1;" goto statement_identifier ;)) (labeled_statement "LAB_0006b561:\n    if (*logtext == (char *)0x0) goto LAB_0006b387;" statement_identifier : (if_statement "if (*logtext == (char *)0x0) goto LAB_0006b387;" 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_0006b387;" goto statement_identifier ;))) }))) (expression_statement "safefree(dirname);" (call_expression "safefree(dirname)" identifier (argument_list "(dirname)" ( identifier ))) ;) (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "pcVar1 = pcVar3;" (assignment_expression "pcVar1 = pcVar3" identifier = identifier) ;) (labeled_statement "LAB_0006b3ab:\n  safefree(pcVar1);" statement_identifier : (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;)) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_0006b2b0(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,int param_10)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_0006b2b0(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,int param_10)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}" type_identifier (function_declarator "FUN_0006b2b0(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,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,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  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "iVar1 = FUN_0006ad30();" (assignment_expression "iVar1 = FUN_0006ad30()" identifier = (call_expression "FUN_0006ad30()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00065f10(iVar1);" (assignment_expression "iVar2 = FUN_00065f10(iVar1)" identifier = (call_expression "FUN_00065f10(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }" { (expression_statement "*param_6 = iVar2;" (assignment_expression "*param_6 = iVar2" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "__file = (char *)FUN_0001ab20(iVar1,"/lock",0);" (assignment_expression "__file = (char *)FUN_0001ab20(iVar1,"/lock",0)" identifier = (cast_expression "(char *)FUN_0001ab20(iVar1,"/lock",0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ab20(iVar1,"/lock",0)" identifier (argument_list "(iVar1,"/lock",0)" ( identifier , (string_literal ""/lock"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar2 = open64(__file,0x242,0x180);" (assignment_expression "iVar2 = open64(__file,0x242,0x180)" identifier = (call_expression "open64(__file,0x242,0x180)" identifier (argument_list "(__file,0x242,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar6);" (assignment_expression "pcVar4 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);" (assignment_expression "iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4)" identifier = (call_expression "FUN_0001b030("%s: open: %s",__file,pcVar4)" identifier (argument_list "("%s: open: %s",__file,pcVar4)" ( (string_literal ""%s: open: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_6 = iVar2;" (assignment_expression "*param_6 = iVar2" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = flock(iVar2,2);" (assignment_expression "iVar3 = flock(iVar2,2)" identifier = (call_expression "flock(iVar2,2)" identifier (argument_list "(iVar2,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar6);" (assignment_expression "pcVar4 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);" (assignment_expression "iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4)" identifier = (call_expression "FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4)" identifier (argument_list "("%s: flock(LOCK_EX): %s",__file,pcVar4)" ( (string_literal ""%s: flock(LOCK_EX): %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_6 = iVar3;" (assignment_expression "*param_6 = iVar3" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (goto_statement "goto LAB_0006b3ab;" goto statement_identifier ;) })) (expression_statement "pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);" (assignment_expression "pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1)" identifier = (cast_expression "(char *)FUN_0001b030("%s/socket",iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001b030("%s/socket",iVar1)" identifier (argument_list "("%s/socket",iVar1)" ( (string_literal ""%s/socket"" " string_content ") , 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_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" if (parenthesized_expression "(param_10 == 0)" ( (binary_expression "param_10 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }" { (if_statement "if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }" { (labeled_statement "LAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);" statement_identifier : (expression_statement "uVar5 = FUN_00068360(pcVar4);" (assignment_expression "uVar5 = FUN_00068360(pcVar4)" identifier = (call_expression "FUN_00068360(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;)) (expression_statement "piVar6 = (int *)FUN_00068400(uVar5,param_4);" (assignment_expression "piVar6 = (int *)FUN_00068400(uVar5,param_4)" identifier = (cast_expression "(int *)FUN_00068400(uVar5,param_4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00068400(uVar5,param_4)" identifier (argument_list "(uVar5,param_4)" ( identifier , identifier ))))) ;) (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }" { (expression_statement "FUN_0001b250(*param_6);" (call_expression "FUN_0001b250(*param_6)" identifier (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = (int)pcVar4;" (assignment_expression "*param_6 = (int)pcVar4" (pointer_expression "*param_6" * identifier) = (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = piVar6;" (assignment_expression "*param_5 = piVar6" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "FUN_0001b250(*param_8);" (call_expression "FUN_0001b250(*param_8)" identifier (argument_list "(*param_8)" ( (pointer_expression "*param_8" * identifier) ))) ;) (expression_statement "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);" (assignment_expression "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier = (call_expression "FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier (argument_list "("%s: %s",pcVar4,uVar5)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_8 = iVar3;" (assignment_expression "*param_8 = iVar3" (pointer_expression "*param_8" * identifier) = identifier) ;) (expression_statement "(**(code **)(*piVar6 + 4))(piVar6);" (call_expression "(**(code **)(*piVar6 + 4))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 4))" ( (pointer_expression "**(code **)(*piVar6 + 4)" * (pointer_expression "*(code **)(*piVar6 + 4)" * (cast_expression "(code **)(*piVar6 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 4)" ( (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier ))) ;) (goto_statement "goto LAB_0006b561;" goto statement_identifier ;) })) (labeled_statement "LAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" statement_identifier : (if_statement "if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\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                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" { (expression_statement "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");" (call_expression "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" identifier (argument_list "("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" ( (string_literal ""*logtext || *ds_err || *us_err"" " string_content ") , (string_literal ""unix/uxshare.c"" " string_content ") , number_literal , (string_literal ""platform_ssh_share"" " string_content ") ))) ;) }))) }) (else_clause "else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" else (compound_statement "{\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" { (expression_statement "uVar5 = FUN_00068360(pcVar4);" (assignment_expression "uVar5 = FUN_00068360(pcVar4)" identifier = (call_expression "FUN_00068360(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);" (assignment_expression "piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" identifier = (cast_expression "(int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" identifier (argument_list "(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" ( identifier , (pointer_expression "&DAT_000712ce" & identifier) , number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier ))))) ;) (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }" { (expression_statement "FUN_0001b250(*param_6);" (call_expression "FUN_0001b250(*param_6)" identifier (argument_list "(*param_6)" ( (pointer_expression "*param_6" * identifier) ))) ;) (expression_statement "*param_6 = (int)pcVar4;" (assignment_expression "*param_6 = (int)pcVar4" (pointer_expression "*param_6" * identifier) = (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = piVar6;" (assignment_expression "*param_5 = piVar6" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "FUN_0001b250(*param_7);" (call_expression "FUN_0001b250(*param_7)" identifier (argument_list "(*param_7)" ( (pointer_expression "*param_7" * identifier) ))) ;) (expression_statement "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);" (assignment_expression "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier = (call_expression "FUN_0001b030("%s: %s",pcVar4,uVar5)" identifier (argument_list "("%s: %s",pcVar4,uVar5)" ( (string_literal ""%s: %s"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_7 = iVar3;" (assignment_expression "*param_7 = iVar3" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "(**(code **)(*piVar6 + 4))(piVar6);" (call_expression "(**(code **)(*piVar6 + 4))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 4))" ( (pointer_expression "**(code **)(*piVar6 + 4)" * (pointer_expression "*(code **)(*piVar6 + 4)" * (cast_expression "(code **)(*piVar6 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 4)" ( (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier ))) ;) (if_statement "if (param_9 != 0) goto LAB_0006b4e1;" if (parenthesized_expression "(param_9 != 0)" ( (binary_expression "param_9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006b4e1;" goto statement_identifier ;)) (labeled_statement "LAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;" statement_identifier : (if_statement "if (*param_6 == 0) goto LAB_0006b387;" if (parenthesized_expression "(*param_6 == 0)" ( (binary_expression "*param_6 == 0" (pointer_expression "*param_6" * identifier) == number_literal) )) (goto_statement "goto LAB_0006b387;" goto statement_identifier ;))) }))) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "__file = pcVar4;" (assignment_expression "__file = pcVar4" identifier = identifier) ;) (labeled_statement "LAB_0006b3ab:\n  FUN_0001b250(__file);" statement_identifier : (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" identifier (argument_list "(__file)" ( identifier ))) ;)) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") , 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 IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression 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 IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) }))) }) (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 IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , 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 IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression 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 IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (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 IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_0006b2b0(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,int param_10)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0006b2b0(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,int param_10)" (identifier "FUN_0006b2b0") (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,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  int iVar1;\n  int iVar2;\n  char *__file;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  \n  iVar1 = FUN_0006ad30();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00065f10(iVar1);\n  if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }\n  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);\n  iVar2 = open64(__file,0x242,0x180);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }\n  iVar3 = flock(iVar2,2);\n  if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }\n  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);\n  *param_6 = 0;\n  if (param_10 == 0) {\n    if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }\n  FUN_0001b250(iVar1);\n  FUN_0001b250(__file);\n  __file = pcVar4;\nLAB_0006b3ab:\n  FUN_0001b250(__file);\n  close(iVar2);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *__file;" (primitive_type "char") (pointer_declarator "*__file" (* "*") (identifier "__file")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (expression_statement "iVar1 = FUN_0006ad30();" (assignment_expression "iVar1 = FUN_0006ad30()" (identifier "iVar1") (= "=") (call_expression "FUN_0006ad30()" (identifier "FUN_0006ad30") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00065f10(iVar1);" (assignment_expression "iVar2 = FUN_00065f10(iVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00065f10(iVar1)" (identifier "FUN_00065f10") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    return 0;\n  }" ({ "{") (expression_statement "*param_6 = iVar2;" (assignment_expression "*param_6 = iVar2" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" (identifier "FUN_0001b250") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "__file = (char *)FUN_0001ab20(iVar1,"/lock",0);" (assignment_expression "__file = (char *)FUN_0001ab20(iVar1,"/lock",0)" (identifier "__file") (= "=") (cast_expression "(char *)FUN_0001ab20(iVar1,"/lock",0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ab20(iVar1,"/lock",0)" (identifier "FUN_0001ab20") (argument_list "(iVar1,"/lock",0)" (( "(") (identifier "iVar1") (, ",") (string_literal ""/lock"" (" """) (string_content "/lock") (" """)) (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "iVar2 = open64(__file,0x242,0x180);" (assignment_expression "iVar2 = open64(__file,0x242,0x180)" (identifier "iVar2") (= "=") (call_expression "open64(__file,0x242,0x180)" (identifier "open64") (argument_list "(__file,0x242,0x180)" (( "(") (identifier "__file") (, ",") (number_literal "0x242") (, ",") (number_literal "0x180") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);\n    *param_6 = iVar2;\n    FUN_0001b250(iVar1);\n    FUN_0001b250(__file);\n    return 0;\n  }" ({ "{") (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar4 = strerror(*piVar6);" (assignment_expression "pcVar4 = strerror(*piVar6)" (identifier "pcVar4") (= "=") (call_expression "strerror(*piVar6)" (identifier "strerror") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);" (assignment_expression "iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4)" (identifier "iVar2") (= "=") (call_expression "FUN_0001b030("%s: open: %s",__file,pcVar4)" (identifier "FUN_0001b030") (argument_list "("%s: open: %s",__file,pcVar4)" (( "(") (string_literal ""%s: open: %s"" (" """) (string_content "%s: open: %s") (" """)) (, ",") (identifier "__file") (, ",") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "*param_6 = iVar2;" (assignment_expression "*param_6 = iVar2" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" (identifier "FUN_0001b250") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" (identifier "FUN_0001b250") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = flock(iVar2,2);" (assignment_expression "iVar3 = flock(iVar2,2)" (identifier "iVar3") (= "=") (call_expression "flock(iVar2,2)" (identifier "flock") (argument_list "(iVar2,2)" (( "(") (identifier "iVar2") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar6 = __errno_location();\n    pcVar4 = strerror(*piVar6);\n    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);\n    *param_6 = iVar3;\n    FUN_0001b250(iVar1);\n    goto LAB_0006b3ab;\n  }" ({ "{") (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar4 = strerror(*piVar6);" (assignment_expression "pcVar4 = strerror(*piVar6)" (identifier "pcVar4") (= "=") (call_expression "strerror(*piVar6)" (identifier "strerror") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);" (assignment_expression "iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4)" (identifier "FUN_0001b030") (argument_list "("%s: flock(LOCK_EX): %s",__file,pcVar4)" (( "(") (string_literal ""%s: flock(LOCK_EX): %s"" (" """) (string_content "%s: flock(LOCK_EX): %s") (" """)) (, ",") (identifier "__file") (, ",") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "*param_6 = iVar3;" (assignment_expression "*param_6 = iVar3" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" (identifier "FUN_0001b250") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (goto_statement "goto LAB_0006b3ab;" (goto "goto") (statement_identifier "LAB_0006b3ab") (; ";")) (} "}"))) (expression_statement "pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);" (assignment_expression "pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1)" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_0001b030("%s/socket",iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001b030("%s/socket",iVar1)" (identifier "FUN_0001b030") (argument_list "("%s/socket",iVar1)" (( "(") (string_literal ""%s/socket"" (" """) (string_content "%s/socket") (" """)) (, ",") (identifier "iVar1") () ")"))))) (; ";")) (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_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }\n  else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\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_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }\nLAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }\n  }" ({ "{") (if_statement "if (param_9 != 0) {\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }" (if "if") (parenthesized_expression "(param_9 != 0)" (( "(") (binary_expression "param_9 != 0" (identifier "param_9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);\n      piVar6 = (int *)FUN_00068400(uVar5,param_4);\n      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }\n      FUN_0001b250(*param_8);\n      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n      *param_8 = iVar3;\n      (**(code **)(*piVar6 + 4))(piVar6);\n      goto LAB_0006b561;\n    }" ({ "{") (labeled_statement "LAB_0006b4e1:\n      uVar5 = FUN_00068360(pcVar4);" (statement_identifier "LAB_0006b4e1") (: ":") (expression_statement "uVar5 = FUN_00068360(pcVar4);" (assignment_expression "uVar5 = FUN_00068360(pcVar4)" (identifier "uVar5") (= "=") (call_expression "FUN_00068360(pcVar4)" (identifier "FUN_00068360") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";"))) (expression_statement "piVar6 = (int *)FUN_00068400(uVar5,param_4);" (assignment_expression "piVar6 = (int *)FUN_00068400(uVar5,param_4)" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_00068400(uVar5,param_4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00068400(uVar5,param_4)" (identifier "FUN_00068400") (argument_list "(uVar5,param_4)" (( "(") (identifier "uVar5") (, ",") (identifier "param_4") () ")"))))) (; ";")) (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar6 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x1c)" (( "(") (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0001b250(*param_6);\n        *param_6 = (int)pcVar4;\n        *param_5 = piVar6;\n        FUN_0001b250(iVar1);\n        FUN_0001b250(__file);\n        close(iVar2);\n        return 2;\n      }" ({ "{") (expression_statement "FUN_0001b250(*param_6);" (call_expression "FUN_0001b250(*param_6)" (identifier "FUN_0001b250") (argument_list "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")"))) (; ";")) (expression_statement "*param_6 = (int)pcVar4;" (assignment_expression "*param_6 = (int)pcVar4" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (cast_expression "(int)pcVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar4"))) (; ";")) (expression_statement "*param_5 = piVar6;" (assignment_expression "*param_5 = piVar6" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "piVar6")) (; ";")) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" (identifier "FUN_0001b250") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" (identifier "FUN_0001b250") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" (identifier "close") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (expression_statement "FUN_0001b250(*param_8);" (call_expression "FUN_0001b250(*param_8)" (identifier "FUN_0001b250") (argument_list "(*param_8)" (( "(") (pointer_expression "*param_8" (* "*") (identifier "param_8")) () ")"))) (; ";")) (expression_statement "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar6 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x1c)" (( "(") (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);" (assignment_expression "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5)" (identifier "iVar3") (= "=") (call_expression "FUN_0001b030("%s: %s",pcVar4,uVar5)" (identifier "FUN_0001b030") (argument_list "("%s: %s",pcVar4,uVar5)" (( "(") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """)) (, ",") (identifier "pcVar4") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "*param_8 = iVar3;" (assignment_expression "*param_8 = iVar3" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "(**(code **)(*piVar6 + 4))(piVar6);" (call_expression "(**(code **)(*piVar6 + 4))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 4))" (( "(") (pointer_expression "**(code **)(*piVar6 + 4)" (* "*") (pointer_expression "*(code **)(*piVar6 + 4)" (* "*") (cast_expression "(code **)(*piVar6 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 4)" (( "(") (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")"))) (; ";")) (goto_statement "goto LAB_0006b561;" (goto "goto") (statement_identifier "LAB_0006b561") (; ";")) (} "}"))) (labeled_statement "LAB_0006b387:\n    if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" (statement_identifier "LAB_0006b387") (: ":") (if_statement "if ((*param_7 == 0) && (*param_8 == 0)) {\n                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\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                    \n      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");\n    }" ({ "{") (expression_statement "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");" (call_expression "__assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" (identifier "__assert_fail") (argument_list "("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share")" (( "(") (string_literal ""*logtext || *ds_err || *us_err"" (" """) (string_content "*logtext || *ds_err || *us_err") (" """)) (, ",") (string_literal ""unix/uxshare.c"" (" """) (string_content "unix/uxshare.c") (" """)) (, ",") (number_literal "0x15c") (, ",") (string_literal ""platform_ssh_share"" (" """) (string_content "platform_ssh_share") (" """)) () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" (else "else") (compound_statement "{\n    uVar5 = FUN_00068360(pcVar4);\n    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);\n    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }\n    FUN_0001b250(*param_7);\n    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);\n    *param_7 = iVar3;\n    (**(code **)(*piVar6 + 4))(piVar6);\n    if (param_9 != 0) goto LAB_0006b4e1;\nLAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;\n  }" ({ "{") (expression_statement "uVar5 = FUN_00068360(pcVar4);" (assignment_expression "uVar5 = FUN_00068360(pcVar4)" (identifier "uVar5") (= "=") (call_expression "FUN_00068360(pcVar4)" (identifier "FUN_00068360") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);" (assignment_expression "piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" (identifier "FUN_0001e660") (argument_list "(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2)" (( "(") (identifier "uVar5") (, ",") (pointer_expression "&DAT_000712ce" (& "&") (identifier "DAT_000712ce")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar6 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x1c)" (( "(") (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0001b250(*param_6);\n      *param_6 = (int)pcVar4;\n      *param_5 = piVar6;\n      FUN_0001b250(iVar1);\n      FUN_0001b250(__file);\n      close(iVar2);\n      return 1;\n    }" ({ "{") (expression_statement "FUN_0001b250(*param_6);" (call_expression "FUN_0001b250(*param_6)" (identifier "FUN_0001b250") (argument_list "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")"))) (; ";")) (expression_statement "*param_6 = (int)pcVar4;" (assignment_expression "*param_6 = (int)pcVar4" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (cast_expression "(int)pcVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar4"))) (; ";")) (expression_statement "*param_5 = piVar6;" (assignment_expression "*param_5 = piVar6" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "piVar6")) (; ";")) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" (identifier "FUN_0001b250") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" (identifier "FUN_0001b250") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" (identifier "close") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "FUN_0001b250(*param_7);" (call_expression "FUN_0001b250(*param_7)" (identifier "FUN_0001b250") (argument_list "(*param_7)" (( "(") (pointer_expression "*param_7" (* "*") (identifier "param_7")) () ")"))) (; ";")) (expression_statement "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar6 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x1c)" (( "(") (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);" (assignment_expression "iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5)" (identifier "iVar3") (= "=") (call_expression "FUN_0001b030("%s: %s",pcVar4,uVar5)" (identifier "FUN_0001b030") (argument_list "("%s: %s",pcVar4,uVar5)" (( "(") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """)) (, ",") (identifier "pcVar4") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "*param_7 = iVar3;" (assignment_expression "*param_7 = iVar3" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "(**(code **)(*piVar6 + 4))(piVar6);" (call_expression "(**(code **)(*piVar6 + 4))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 4))" (( "(") (pointer_expression "**(code **)(*piVar6 + 4)" (* "*") (pointer_expression "*(code **)(*piVar6 + 4)" (* "*") (cast_expression "(code **)(*piVar6 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 4)" (( "(") (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")"))) (; ";")) (if_statement "if (param_9 != 0) goto LAB_0006b4e1;" (if "if") (parenthesized_expression "(param_9 != 0)" (( "(") (binary_expression "param_9 != 0" (identifier "param_9") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006b4e1;" (goto "goto") (statement_identifier "LAB_0006b4e1") (; ";"))) (labeled_statement "LAB_0006b561:\n    if (*param_6 == 0) goto LAB_0006b387;" (statement_identifier "LAB_0006b561") (: ":") (if_statement "if (*param_6 == 0) goto LAB_0006b387;" (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_0006b387;" (goto "goto") (statement_identifier "LAB_0006b387") (; ";")))) (} "}")))) (expression_statement "FUN_0001b250(iVar1);" (call_expression "FUN_0001b250(iVar1)" (identifier "FUN_0001b250") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" (identifier "FUN_0001b250") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (expression_statement "__file = pcVar4;" (assignment_expression "__file = pcVar4" (identifier "__file") (= "=") (identifier "pcVar4")) (; ";")) (labeled_statement "LAB_0006b3ab:\n  FUN_0001b250(__file);" (statement_identifier "LAB_0006b3ab") (: ":") (expression_statement "FUN_0001b250(__file);" (call_expression "FUN_0001b250(__file)" (identifier "FUN_0001b250") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";"))) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" (identifier "close") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

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_15,int var_14
                      )

{
  char *var_2;
  char *var_4;
  int var_8;
  int var_13;
  char *pcVar3;
  int *piVar4;
  type_4 pSVar5;
  type_3 ppsVar6;
  char *var_18;
  
  var_2 = var_1(pi_name,logtext);
  if (var_2 == (char *)0x0) {
    return 0;
  }
  var_4 = var_3(var_2);
  if (var_4 != (char *)0x0) {
    *logtext = var_4;
    var_5(var_2);
    return 0;
  }
  var_4 = var_6(var_2,"/lock",0);
  var_8 = var_7(var_4,0x242,0x180);
  if (var_8 < 0) {
    piVar4 = var_9();
    pcVar3 = var_10(*piVar4);
    pcVar3 = var_11("%s: open: %s",var_4,pcVar3);
    *logtext = pcVar3;
    var_5(var_2);
    var_5(var_4);
    return 0;
  }
  var_13 = var_12(var_8,2);
  if (var_13 < 0) {
    piVar4 = var_9();
    pcVar3 = var_10(*piVar4);
    pcVar3 = var_11("%s: flock(LOCK_EX): %s",var_4,pcVar3);
    *logtext = pcVar3;
    var_5(var_2);
    goto LAB_0006b3ab;
  }
  pcVar3 = var_11("%s/socket",var_2);
  *logtext = (char *)0x0;
  if (var_14 == 0) {
    if (var_15 != 0) {
LAB_0006b4e1:
      pSVar5 = var_16(pcVar3);
      ppsVar6 = var_17(pSVar5,upplug);
      var_18 = (*(*ppsVar6)->socket_error)(ppsVar6);
      if (var_18 == (char *)0x0) {
        var_5(*logtext);
        *logtext = pcVar3;
        *sock = ppsVar6;
        var_5(var_2);
        var_5(var_4);
        var_19(var_8);
        return 2;
      }
      var_5(*us_err);
      var_18 = (*(*ppsVar6)->socket_error)(ppsVar6);
      var_18 = var_11("%s: %s",pcVar3,var_18);
      *us_err = var_18;
      (*(*ppsVar6)->var_19)(ppsVar6);
      goto LAB_0006b561;
    }
LAB_0006b387:
    if ((*ds_err == (char *)0x0) && (*us_err == (char *)0x0)) {
                    /* WARNING: Subroutine does not return */
      var_20("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");
    }
  }
  else {
    pSVar5 = var_16(pcVar3);
    ppsVar6 = var_21(pSVar5,"",0,0,1,0,0,downplug,conf);
    var_18 = (*(*ppsVar6)->socket_error)(ppsVar6);
    if (var_18 == (char *)0x0) {
      var_5(*logtext);
      *logtext = pcVar3;
      *sock = ppsVar6;
      var_5(var_2);
      var_5(var_4);
      var_19(var_8);
      return 1;
    }
    var_5(*ds_err);
    var_18 = (*(*ppsVar6)->socket_error)(ppsVar6);
    var_18 = var_11("%s: %s",pcVar3,var_18);
    *ds_err = var_18;
    (*(*ppsVar6)->var_19)(ppsVar6);
    if (var_15 != 0) goto LAB_0006b4e1;
LAB_0006b561:
    if (*logtext == (char *)0x0) goto LAB_0006b387;
  }
  var_5(var_2);
  var_5(var_4);
  var_4 = pcVar3;
LAB_0006b3ab:
  var_5(var_4);
  var_19(var_8);
  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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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))))) (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: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (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) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (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: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (expression_statement (call_expression function: (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: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) 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 (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))) 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: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (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: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (expression_statement (call_expression function: (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: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) 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: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))))

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

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)

{
  int iVar1;
  int iVar2;
  char *__file;
  int iVar3;
  char *pcVar4;
  undefined4 uVar5;
  int *piVar6;
  
  iVar1 = FUN_0006ad30();
  if (iVar1 == 0) {
    return 0;
  }
  iVar2 = FUN_00065f10(iVar1);
  if (iVar2 != 0) {
    *param_6 = iVar2;
    FUN_0001b250(iVar1);
    return 0;
  }
  __file = (char *)FUN_0001ab20(iVar1,"/lock",0);
  iVar2 = open64(__file,0x242,0x180);
  if (iVar2 < 0) {
    piVar6 = __errno_location();
    pcVar4 = strerror(*piVar6);
    iVar2 = FUN_0001b030("%s: open: %s",__file,pcVar4);
    *param_6 = iVar2;
    FUN_0001b250(iVar1);
    FUN_0001b250(__file);
    return 0;
  }
  iVar3 = flock(iVar2,2);
  if (iVar3 < 0) {
    piVar6 = __errno_location();
    pcVar4 = strerror(*piVar6);
    iVar3 = FUN_0001b030("%s: flock(LOCK_EX): %s",__file,pcVar4);
    *param_6 = iVar3;
    FUN_0001b250(iVar1);
    goto LAB_0006b3ab;
  }
  pcVar4 = (char *)FUN_0001b030("%s/socket",iVar1);
  *param_6 = 0;
  if (param_10 == 0) {
    if (param_9 != 0) {
LAB_0006b4e1:
      uVar5 = FUN_00068360(pcVar4);
      piVar6 = (int *)FUN_00068400(uVar5,param_4);
      iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);
      if (iVar3 == 0) {
        FUN_0001b250(*param_6);
        *param_6 = (int)pcVar4;
        *param_5 = piVar6;
        FUN_0001b250(iVar1);
        FUN_0001b250(__file);
        close(iVar2);
        return 2;
      }
      FUN_0001b250(*param_8);
      uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);
      iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);
      *param_8 = iVar3;
      (**(code **)(*piVar6 + 4))(piVar6);
      goto LAB_0006b561;
    }
LAB_0006b387:
    if ((*param_7 == 0) && (*param_8 == 0)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("*logtext || *ds_err || *us_err","unix/uxshare.c",0x15c,"platform_ssh_share");
    }
  }
  else {
    uVar5 = FUN_00068360(pcVar4);
    piVar6 = (int *)FUN_0001e660(uVar5,&DAT_000712ce,0,0,1,0,0,param_3,param_2);
    iVar3 = (**(code **)(*piVar6 + 0x1c))(piVar6);
    if (iVar3 == 0) {
      FUN_0001b250(*param_6);
      *param_6 = (int)pcVar4;
      *param_5 = piVar6;
      FUN_0001b250(iVar1);
      FUN_0001b250(__file);
      close(iVar2);
      return 1;
    }
    FUN_0001b250(*param_7);
    uVar5 = (**(code **)(*piVar6 + 0x1c))(piVar6);
    iVar3 = FUN_0001b030("%s: %s",pcVar4,uVar5);
    *param_7 = iVar3;
    (**(code **)(*piVar6 + 4))(piVar6);
    if (param_9 != 0) goto LAB_0006b4e1;
LAB_0006b561:
    if (*param_6 == 0) goto LAB_0006b387;
  }
  FUN_0001b250(iVar1);
  FUN_0001b250(__file);
  __file = pcVar4;
LAB_0006b3ab:
  FUN_0001b250(__file);
  close(iVar2);
  return 0;
}

